Sign in to follow this  
Followers 0
firewalldevil

Msgbox with Button Click

11 posts in this topic

Hello,

i need a msgbox with a information "pause" and then i click a button ( go or contuine ) this script runs a go.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

just add a loop to keep the script running like

CODE
hotkeyset("button","function")

Do

your statements

Until

Func function()

exit

endfunc


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

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 ...

sooo Basically you need a hot key that pauses the script?

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

yes, sorry i am new with autoit ...

and when you press a "p" button ago this must run ago

Edited by firewalldevil

Share this post


Link to post
Share on other sites

Its already in the helpfile.... :P

; 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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites

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ß

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0