kaotkbliss Posted January 7, 2013 Share Posted January 7, 2013 I have not used it yet, but you may be able to make use of BlockInput() then. Just be sure to change the flag on BlockInput when you want the user to be able to use the keyboard again. FileInstall("C:\MH.exe",@ScriptDir&"\MH.exe") BlockInput(1) Run('MH.exe') $sTitle="MH v 1" WinWait("MH v 1") ControlClick($sTitle,"", "&OK >") Send("{Enter}") $sTitle1="Expedition Complete!" WinWait("Expedition Complete!") ControlClick($sTitle1,"", "&OK >") Send("{Enter}") FileDelete(@ScriptDir&'\MH.exe') BlockInput(0) 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 7, 2013 Author Share Posted January 7, 2013 Thanks working great, in between i need to terminate (quit) or kill this process like. have to use any shortcut key ? FYI - We have excute this installtion on server environment. Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 7, 2013 Share Posted January 7, 2013 You may possibly need 2 scripts then. 1 to control the HotKeySet() to start and close the script, and the main script. Once you kill the script, then it can't perform any more actions. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 8, 2013 Author Share Posted January 8, 2013 Please how can i execute 2 script at the time or else shall i enter my coding after the while 1 function, will it work? There is option to hide the "MH.exe" tool while extract from autoit.exe? Global $timer = TimerInit() HotKeySet( "{ESC}", "_quit" ) While 1 ;Your stuff Sleep(25) WEnd Func _quit() If TimerDiff($timer) < 1000 Then Exit Else $timer = TimerInit() EndIf EndFunc ;==>_quit Link to comment Share on other sites More sharing options...
Deena Posted January 8, 2013 Author Share Posted January 8, 2013 I have got some tips, we can use to ctrl+alt+end open task manager to terminate the MH.exe process, while i'm terminate the process what ever the extract file "MH.exe" avaliable in the location. Here there is any provision to delete the file "MH.exe" while i'm terminating?Thanks again for your help Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 8, 2013 Share Posted January 8, 2013 You only need MH.exe killed, not the whole script? in that case, I tend to use ProcessKill() as it's sure to completely end the process although I think ProcessClose() is the cleaner way 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 8, 2013 Author Share Posted January 8, 2013 Yes your right, i need to kill & delete the MH.exe not whole. Could you please guide with coding Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 8, 2013 Share Posted January 8, 2013 all you have to do is right before your FileDelete() add in a ProcessClose() or ProcessKill() 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now