toothyXdip Posted February 13, 2007 Share Posted February 13, 2007 ok so now i have a new problem it works but when i press a new key it doesnt do what i want to other keys to do. What it does is i set it to count down and when it goes to 0 it sends 0 once and the other hot keys will make it send b, z, and left mouse click untill it press the hotkey again. But now when i press the hotkey for the count down with the input box it and then press another it sends the "key" that hotkey does but still does the function of the countdown. Here is my script run it to see what im saying (have notepad up) like is said before i put the inputbox and the count down func when i pressed anyother hotkey it would press send a key over and over untill i pressed the hotkey again and one last thing i dont thing it really counts down by secounds (and i want it to) expandcollapse popup#include <GUIConstants.au3> Opt("GUIOnEventMode", 1) Global $F5OnOff Global $F6OnOff Global $F11OnOff Global $F10OnOff HotKeySet('{F5}', '_SendB') HotKeySet('{F6}', '_SendZ') HotKeySet('{F11}', '_SendLeftClick') HotKeySet("{F10}", "ToggleF10") GUICreate("Program (In Progress)",250,250, 100,200) GUISetBkColor (0x0066CC) GUICtrlSetOnEvent($GUI_EVENT_CLOSE, "onclick") GUICtrlCreateLabel("1. F5 Toggle Pressing B" & @CRLF & @CRLF & "2. F6 Toggle Pressing Z" & @CRLF & @CRLF & "3. F11 Toggle Auto Click Left" & @CRLF & @CRLF & "4. F10 Toggle Pressing 0 when" & @CRLF & @CRLF & "the timer counts down to zero", 50, 10) $delay = GUICtrlCreateInput("Enter Amount In Sec.", 55, 170, 110, 20) $Dummy = GUICtrlCreateDummy() GUICtrlSetOnEvent(-1, "Onexit") $button = GUICtrlCreateButton ("Close",75,200,70,20) GUICtrlSetOnEvent(-1, "onclick") GUISetState(@SW_SHOW) Sleep(5000) $delay = $delay * 1000 While 1 Sleep ($delay) If $F10OnOff Then Send('0') WEnd While 1 Sleep (10) If $F5OnOff Then Send('b') If $F6OnOff Then Send('z') If $F11OnOff Then MouseClick('Left') Wend Func ToggleF10() $F10OnOff = NOT $F10OnOff EndFunc Exit ; Functions ---------------------- Func onclick() GUICtrlSendToDummy($Dummy) EndFunc Func OnExit() Exit EndFunc Func _SendB() $F5OnOff = Not $F5OnOff EndFunc Func _SendZ() $F6OnOff = Not $F6OnOff EndFunc Func _SendLeftClick() $F11OnOff = Not $F11OnOff EndFunc If you know my problem plz tell me THANKS! THANKS! ---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝'''║'''╝╝║'''║......║'''║'''║'''║'''''''''║'''''''''║'''║---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''╝''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝ Link to comment Share on other sites More sharing options...
/dev/null Posted February 13, 2007 Share Posted February 13, 2007 your first while loop will never end, so your second while loop will never be executed! __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
toothyXdip Posted February 13, 2007 Author Share Posted February 13, 2007 your first while loop will never end, so your second while loop will never be executed!what can i do to fix this ---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝'''║'''╝╝║'''║......║'''║'''║'''║'''''''''║'''''''''║'''║---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''╝''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝ Link to comment Share on other sites More sharing options...
BALA Posted February 13, 2007 Share Posted February 13, 2007 what can i do to fix thisProbably add and ExitLoop command in there somewhere [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com Link to comment Share on other sites More sharing options...
/dev/null Posted February 13, 2007 Share Posted February 13, 2007 what can i do to fix thismake ONE loop? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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