Jump to content

Msgbox with Button Click


Recommended Posts

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

Link to comment
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

Link to comment
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 ...

Link to comment
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?
Link to comment
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
Link to comment
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?

Link to comment
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
Link to comment
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ß

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...