mikelee33 Posted January 23, 2009 Posted January 23, 2009 Is there a switch to add a pause after this runs? I just want the command window to prompt "Press any key to continue..." so the user knows what to do next. Many thanks. RunWait ( @comspec & ' /k ' &$prog &' '&$option&' ' &GUICtrlRead($file))
FireFox Posted January 23, 2009 Posted January 23, 2009 @mikelee33 #Include <IsPressed_UDF.au3> Opt('WinTitleMatchMode', 2) RunWait(...yourcode) ControlSend($prog, '', '', 'press anykey to continue...') While 1 If _IsAnyKeyPressed() Then ;do something EndIf WEnd Cheers, FireFox.
mikelee33 Posted January 23, 2009 Author Posted January 23, 2009 @mikelee33 #Include <IsPressed_UDF.au3> Opt('WinTitleMatchMode', 2) RunWait(...yourcode) ControlSend($prog, '', '', 'press anykey to continue...') While 1 If _IsAnyKeyPressed() Then ;do something EndIf WEnd Cheers, FireFox. Thank you, I'll try it right now!
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