Trying to restore a NAS server from a backup. Somehow there are at least two encryption keys on the backup set. Trying to create a script that will cycle between the two keys until the restore is complete. Essentially need it to loop between the two keys every time the window becomes active.
I know this is bad form to not spend more time learning and trying things on my own, but I'm really in a bind here to get this done!
I've tried the While, WEnd statements, but never really used them before and don't understand what I was doing wrong. I essentially got caught in an endless loop and couldn't get out!
Please help!
Stronghold Script.au3 1.36K
3 downloads
I know this is bad form to not spend more time learning and trying things on my own, but I'm really in a bind here to get this done!
I've tried the While, WEnd statements, but never really used them before and don't understand what I was doing wrong. I essentially got caught in an endless loop and couldn't get out!
Please help!
![Attached File](http://aut1.autoit-cdn.com/forum/public/style_extra/mime_types/au3.png)
[ autoit ]
#region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc #endregion --- Internal functions Au3Recorder End --- _WinWaitActivate("Encrypting Key Request","") Send("password1") MouseClick("left",382,435,1) Send("password2") MouseClick("left",382,435,1) ;;I need a loop in here that cycles back and forth between the two passwords each time the window becomes active. ;;I also need a way to manually break the loop incase neither password/key works...so something else can be tried.