Hello Me You Posted February 18, 2007 Share Posted February 18, 2007 (edited) I don't have to say anything, just see below: HotKeySet("^!x", "_exit") While 1 If WinExists("window1") Then Send("!n") EndIf If WinExists("window2") Then Sleep(1000) Send("something{ENTER}") EndIf WEnd Func _exit() $msg = MsgBox(1, "Exit Script", "Are you sure?") If $msg = 1 Then Exit ElseIf $msg = 2 Then ;??? What do I have to do to continue script? EndIf EndFuncoÝ÷ Øî±ëaÆ®¶sdgVæ2öWB b33c¶×6rÒ×6t&÷ÂgV÷C´WB67&BgV÷C²ÂgV÷C´&R÷R7W&SògV÷C² bb33c¶×6rÒFVà W@ VÇ6Tbb33c¶×6rÒ"FVà ²fÇC²fÇC²fÇC²fÇC²fÇC²fÇC²fÇC²fÇC²bFöâb33·B6çFærW&RÂæ÷FærvÆÂVç2ÂFR67&BvÆÂ6öçFçVRà VæD`¤VæDgVæ It is ok to leave it empty after "ElseIf $msg = 2 Then", but is there anything that I can do? Edited February 18, 2007 by Hello Me You Random Link to comment Share on other sites More sharing options...
BrettF Posted February 18, 2007 Share Posted February 18, 2007 Try this: HotKeySet("^!x", "_exit") While 1 If WinExists("window1") Then Send("!n") EndIf If WinExists("window2") Then Sleep(1000) Send("something{ENTER}") EndIf WEnd Func _exit() $msg = MsgBox(1, "Exit Script", "Are you sure?") If $msg = 1 Then Exit EndIf EndFunc Will contiue the script if cancel is pressed... hope it helps Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Hello Me You Posted February 19, 2007 Author Share Posted February 19, 2007 Yeah it works. Thank You Random 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