 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ZARDOZ Guest
|
Posted: Wed Apr 20, 2005 10:37 pm Post subject: start/stop button help needed... |
|
|
| Code: | Gui, Show, x722 y387 h70 w100, UPDATER!
; Gui, +AlwaysOnTop +Disabled -SysMenu
Gui, Font, S10 cRed Bold, Verdana
Gui, Color, 000000
Gui, -Border
Gui, Add, Button, x15 y10 w72 h20, Start
Gui, Add, Button, x15 y36 w72 h20, Stop
Gui, Add, Button, x15 y62 w72 h20, Close
return
ButtonStart:
gui, submit, nohide
{
Loop
{
send, ^r!
sleep, 1
send, {enter}
sleep, 7000
}
return
}
ButtonStop:
gui, submit, nohide
{
Pause
}
return
ButtonClose:
gui, submit, nohide
{
ExitApp
}
return |
the Startbutton only work once.. if i press stop it doesnt work to press start again.. have to restart it..
"To pause or resume the entire script at the press of a key, assign a hotkey to the Pause command as in this example:
^!p::Pause ; Press Ctrl+Alt+P to pause. Press it again to resume."
but it doesnt work to press the stop either..
what am i doing wrong??
thanks
/newbie  |
|
| Back to top |
|
 |
ZARDOZ Guest
|
Posted: Wed Apr 20, 2005 10:48 pm Post subject: |
|
|
hmm.. didnt notice it before but it starts the loop when i start the script..
dont have to press the startbutton.. how do i make it not do that?
so the startbutton, and stop works without restart..
thanks again |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Wed Apr 20, 2005 11:11 pm Post subject: |
|
|
| Code: |
; Gui, +AlwaysOnTop +Disabled -SysMenu
Gui, Font, S10 cRed Bold, Verdana
Gui, Color, 000000
Gui, -Border
Gui, Add, Button, x15 y10 w72 h20, Start
Gui, Add, Button, x15 y36 w72 h20, Stop
Gui, Add, Button, x15 y62 w72 h20, Close
Gui, Show, x722 y387 h70 w100, UPDATER!
return
ButtonStart:
Loop
{
send, ^r!
sleep, 1
send, {enter}
sleep, 7000
}
return
ButtonStop:
Pause
return
GuiClose:
ButtonClose:
ExitApp
Pause::Pause, Toggle |
This is untested. I dont think the button to stop will work to Unpause it, Instead I have added a hotkey. Use the pause button to pause and unpause the script. _________________ my lame sig  |
|
| Back to top |
|
 |
ZARDOZ Guest
|
Posted: Wed Apr 20, 2005 11:49 pm Post subject: |
|
|
wanted a start and stop button for it but i cant figure it out hahah : )
i did it like this instead: | Code: | Gui, Show, x722 y387 h90 w160, UPDATER! :)
Gui, +AlwaysOnTop +Disabled -SysMenu
Gui, Font, S10 cRed Bold, Verdana
Gui, Color, 000000
Gui, -Border
Gui, Add, Text,, Högerklicka i`nBrowserfönstret för`natt Starta/Pausa`nUppdateringen...`n¯¯¯¯¯¯¯¯¯¯¯¯
Gui, Add, Button, x45 y80 w72 h20, Stäng
#NoTrayIcon
PAUSE
Loop
{
send, ^r!
sleep, 1
send, {enter}
sleep, 7000
}
return
Rbutton::PAUSE
ButtonStäng:
gui, submit, nohide
{
ExitApp
}
return |
just to rightclick to start/pause the loop now.. and only have a close button in the gui... works, and looks better then to have buttons that dont work haha : )
thank you anyways |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|