Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

EMERGENCY! In A Bind!

$
0
0
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!
Attached File  Stronghold Script.au3   1.36K   3 downloads
[ 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.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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