Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

Sendkeys to convert explicit disconnectors to regulars

$
0
0

I wrote the following shell script to convert hundreds of explicit disconnectors to regular disconnectors. Hopefully it can be used on the Joiner GUI if deleting the connector space is not a viable option, and the number of clicks is annoying. Documentation on sendkeys: http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send(v=vs.110).aspx

Set WshShell = WScript.CreateObject("WScript.Shell")

WScript.Sleep 3000  ‘you have 3 seconds to click on the row below which the loop will run

for i=1 to 10 ‘number of explicit disconnectors that need to be converted to regular

WshShell.SendKeys "{DOWN}"

WshShell.SendKeys "{ENTER}"

WshShell.SendKeys "%A"

WshShell.SendKeys "{E}"

WshShell.SendKeys "{DOWN}"

WshShell.SendKeys "{ENTER}"

next


Viewing all articles
Browse latest Browse all 4767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>