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

Terminate with operator key

$
0
0
Hello again!

I would like to use the follow script, except I would like to add an operator script. eg use ALT-ESC but I dont know how to code this in?

I would also like this script to run two programs and then terminate both with the same key combination, is this easily done?

HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"H:\remotedesktop.exe" /e "' & $CmdLine[1] & '"', "H:\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "remotedesktop.exe" )
Run ( '"H:\Interface\xbmc\XBMC.exe"' )
WinWait ( "XBMC" )
WinActivate ( "XBMC" )
Exit 0
EndFunc


Thanks for your help!

Updated!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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