Moderators SmOke_N Posted August 26, 2005 Moderators Posted August 26, 2005 sleep($data*1000) TrayTip("", "cas " & $data, 5) GUISetState(@SW_SHOW) Case $msg = $cancel3 ExitLoop GUICtrlSetState( -1, $GUI_DEFBUTTON) Try setting : GUICtrlSetState( -1, $GUI_DEFBUTTON) To: GUICtrlSetState( $ok2, $GUI_DEFBUTTON) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
SupraNatural Posted August 26, 2005 Posted August 26, 2005 (edited) Paste over your whole code with this: #include <GUIConstants.au3> AutoItSetOption ( "SendKeyDelay", 300 ) ;If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MyGUI", 274, 120,(@DesktopWidth-274)/2, (@DesktopHeight-120)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $text = GuiCtrlCreateEdit("", 10, 10, 250, 70) $Combo_4 = GuiCtrlCreateCombo("5", 10, 80, 110) $ok2 = GuiCtrlCreateButton("OK", 130, 80, 50, 20,$BS_defpushbutton) $cancel3 = GuiCtrlCreateButton("Cancel", 190, 80, 50, 20) GuiCtrlSetData($combo_4, "1|5|10|30|60|90|120", "1") while 1 GuiSetState() $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ok2 $data = GUICtrlRead($Combo_4) GUISetState(@SW_HIDE) sleep($data*1000) GUISetState(@SW_SHOW) Case $msg = $cancel3 ExitLoop EndSelect WEnd Exit Edited August 26, 2005 by SupraNatural Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!
danusko Posted August 26, 2005 Author Posted August 26, 2005 YES YES YES THATS IT THANKE YOU YUE HAVE a big patience with me ))))) I have next task but i dont want to misuse your great knowledges fyi i want to make little bubble in trey and in buble will be countdown to show this remind text ))) is it too hard?
Valuater Posted August 26, 2005 Posted August 26, 2005 SupraNatural said: Paste over your whole code with this:#include <GUIConstants.au3> AutoItSetOption ( "SendKeyDelay", 300 ) ;If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MyGUI", 274, 120,(@DesktopWidth-274)/2, (@DesktopHeight-120)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $text = GuiCtrlCreateEdit("", 10, 10, 250, 70) $Combo_4 = GuiCtrlCreateCombo("5", 10, 80, 110) $ok2 = GuiCtrlCreateButton("OK", 130, 80, 50, 20,$BS_defpushbutton) $cancel3 = GuiCtrlCreateButton("Cancel", 190, 80, 50, 20) GuiCtrlSetData($combo_4, "1|5|10|30|60|90|120", "1") while 1 GuiSetState() $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ok2 $data = GUICtrlRead($Combo_4) GUISetState(@SW_HIDE) sleep($data*1000) GUISetState(@SW_SHOW) Case $msg = $cancel3 ExitLoop EndSelect WEnd Exit<{POST_SNAPBACK}>he has been trying to say when he 1types in a message2tabs to the drop-down list and the default number 1 is there3press enterand it will work....what are you thinking you wrote a code for this before.... and now you took that part out... why???8)
SupraNatural Posted August 26, 2005 Posted August 26, 2005 (edited) @Valuater W/e it doesnt matter the fact is it works like he wants it. @danusko Nope not hard at all. Ill post it in a sec Edited August 26, 2005 by SupraNatural Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!
Valuater Posted August 26, 2005 Posted August 26, 2005 this will do the trick expandcollapse popup#include <GUIConstants.au3> AutoItSetOption ( "SendKeyDelay", 300 ) ;If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MyGUI", 274, 120,(@DesktopWidth-274)/2, (@DesktopHeight-120)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $text = GuiCtrlCreateEdit("", 10, 10, 250, 70) $Combo_4 = GuiCtrlCreateCombo("5", 10, 80, 110) $ok2 = GuiCtrlCreateButton("OK", 130, 80, 50, 20) GUICtrlSetState( -1, $GUI_DEFBUTTON) $cancel3 = GuiCtrlCreateButton("Cancel", 190, 80, 50, 20) GuiCtrlSetData($combo_4, "1|5|10|30|60|90|120", "1") while 1 GuiSetState() $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ok2 $data = GUICtrlRead($Combo_4) GUISetState(@SW_HIDE) for $x = $data to 1 Step -1 TrayTip("Time delay", "The delay will return in " & $x & " seconds ","1",1) sleep(1000) TrayTip("clears any tray tip","",0) Next GUISetState(@SW_SHOW) ;Case $msg = $Combo_4 ; $data = GUICtrlRead($Combo_4) ; GUISetState(@SW_HIDE) ; sleep($data*1000) ; GUISetState(@SW_SHOW) Case $msg = $cancel3 ExitLoop EndSelect WEnd Exit 8)
danusko Posted August 26, 2005 Author Posted August 26, 2005 gooood ))) a when i want to show the remind text at any moment after clicking on buble ???? is anything what you dont know?????
Valuater Posted August 26, 2005 Posted August 26, 2005 like this expandcollapse popup#include <GUIConstants.au3> AutoItSetOption ( "SendKeyDelay", 300 ) ;If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("MyGUI", 274, 120,(@DesktopWidth-274)/2, (@DesktopHeight-120)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $text = GuiCtrlCreateEdit("", 10, 10, 250, 70) $Combo_4 = GuiCtrlCreateCombo("5", 10, 80, 110) $ok2 = GuiCtrlCreateButton("OK", 130, 80, 50, 20) GUICtrlSetState( -1, $GUI_DEFBUTTON) $cancel3 = GuiCtrlCreateButton("Cancel", 190, 80, 50, 20) GuiCtrlSetData($combo_4, "1|5|10|30|60|90|120", "1") while 1 GuiSetState() $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $ok2 $data = GUICtrlRead($Combo_4) GUISetState(@SW_HIDE) for $x = $data to 1 Step -1 TrayTip("Time delay", "The delay will return in " & $x & " seconds ","1",1) $pos = MouseGetPos() If $pos[0] > @DesktopWidth - 260 And $pos[1] > @DesktopHeight - 90 Then TrayTip("clears any tray tip","",0) ExitLoop EndIf sleep(1000) TrayTip("clears any tray tip","",0) Next GUISetState(@SW_SHOW) ;Case $msg = $Combo_4 ; $data = GUICtrlRead($Combo_4) ; GUISetState(@SW_HIDE) ; sleep($data*1000) ; GUISetState(@SW_SHOW) Case $msg = $cancel3 ExitLoop EndSelect WEnd Exit Just place the mouse over the tray message box... and no, i am not the sharpest here, i am just a hobbiest... but thanks 8)
SupraNatural Posted August 26, 2005 Posted August 26, 2005 LoL, Gj Valuater I went to go eat and come back and bam its all done Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!
danusko Posted August 26, 2005 Author Posted August 26, 2005 mmmm good thanks you very much i go to sleep here is 22 P.M caf
Valuater Posted August 26, 2005 Posted August 26, 2005 your welcome...remember this was just fun for me... you cannot expect all "helpers" here to write your scripts for you....so Check out the help files first and show us your script (always) so we can see your efforts... thanks again 8)
w0uter Posted August 26, 2005 Posted August 26, 2005 OT but why do you guys use $msg = Guigetmsg() and then select why not just use switch Guigetmsg() . My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Valuater Posted August 27, 2005 Posted August 27, 2005 w0uter said: OT but why do you guys use $msg = Guigetmsg() and then selectwhy not just use switch Guigetmsg() .<{POST_SNAPBACK}>there is always something for me to learn here.... thanksand, i was following a script that was designed by Cammeronsdad8)
danusko Posted September 14, 2005 Author Posted September 14, 2005 hi everybody i find a bug with this skript when is msgbox restored (show), simply on desktop, i can not activate other windows why? thanks
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