firewalldevil Posted August 7, 2008 Posted August 7, 2008 Hello, i need a msgbox with a information "pause" and then i click a button ( go or contuine ) this script runs a go.
Zedna Posted August 7, 2008 Posted August 7, 2008 CONCEPT: Create your own GUI form (Koda Form Designer can help you) with all desired labels/buttons/other controls. In your script invoke this GUI and button in your GUI will swith on/off global variable which is tested in main script. Resources UDF ResourcesEx UDF AutoIt Forum Search
firewalldevil Posted August 7, 2008 Author Posted August 7, 2008 Hello Zedna i have take this way: $answer5 = MsgBox(4, "-------- Info Auto_Fox ---------", "Info") If $answer5 = 7 Then Send("+!c") EndIf but i have another Problem. in my script i have only 7 hotkey funktions, when i start this script, this script go down all the hotkeyfunkion, but don´t wait for a hotkey, when it goes to the end of this script it exit it. I need a funktion that wait for a hotkey. I hope you understand me
2words4uready Posted August 7, 2008 Posted August 7, 2008 Hello Zednai have take this way:$answer5 = MsgBox(4, "-------- Info Auto_Fox ---------", "Info")If $answer5 = 7 Then Send("+!c")EndIfbut i have another Problem.in my script i have only 7 hotkey funktions, when i start this script, this script go down all the hotkeyfunkion, but don´t wait for a hotkey, when it goes to the end of this script it exit it.I need a funktion that wait for a hotkey.I hope you understand mejust add a loop to keep the script running likeCODEhotkeyset("button","function")Doyour statementsUntilFunc function()exitendfunc
firewalldevil Posted August 7, 2008 Author Posted August 7, 2008 so ... i have a point to go in my script, but now i need a "wait / Pause" Funktion. on of my hotkey are a "p" when i press it, it goes to the wait funktion. on this pint i need are wait funktion, when i press this "p" button a go it must run. 1x press p go to wait when i press it twice it must run a go oh god my english ist so bad ...
2words4uready Posted August 7, 2008 Posted August 7, 2008 so ...i have a point to go in my script, but now i need a "wait / Pause" Funktion.on of my hotkey are a "p" when i press it, it goes to the wait funktion. on this pint i need are wait funktion, when i press this "p" button a go it must run.1x press p go to waitwhen i press it twice it must run a gooh god my english ist so bad ...sooo Basically you need a hot key that pauses the script?
firewalldevil Posted August 7, 2008 Author Posted August 7, 2008 (edited) yes, sorry i am new with autoit ... and when you press a "p" button ago this must run ago Edited August 7, 2008 by firewalldevil
BrettF Posted August 7, 2008 Posted August 7, 2008 Its already in the helpfile.... ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc 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!
firewalldevil Posted August 7, 2008 Author Posted August 7, 2008 oh thanks ! when i go to this funktion my script go out of this funktion bevor, it´s don´t remeber where is the reenterpoint. funk save this make a save funktion all 10 sec, but when i press this Pause Button it dont remeber that it was on this save funktion. I have a another funktion it calls "go" when it press the puase button it must remeber that it was on this "go" funktion. Hove can i do that?
2words4uready Posted August 7, 2008 Posted August 7, 2008 oh thanks !when i go to this funktion my script go out of this funktion bevor, it´s don´t remeber where is the reenterpoint.funk save this make a save funktion all 10 sec, but when i press this Pause Button it dont remeber that it was on this save funktion. I have a another funktion it calls "go" when it press the puase button it must remeber that it was on this "go" funktion.Hove can i do that?post this same post in your language! Maybe i will be able to understand it
firewalldevil Posted August 7, 2008 Author Posted August 7, 2008 Hallo, ich habe 2 Funktionen, wenn ich die Pause Funktion drücke verläßt die Routine die Schleife und befindet sich im Pause Modus. Wie kommt ich wieder in die Schleife in der ich vorher war? Ich müsste den genauen Punkt wieder finden. Hoffe du hast mich verstanden. Gruß
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