andygo 1 Posted May 4, 2010 (edited) hello, i want to do this: _Timer_SetTimer($maingui, 1000, "blink") if msgbox (68, "test", "test", 0, WinGetHandle ($hi)) = 6 Then $i = 0 _Timer_KillAllTimers($maingui) func blink() GuiSetState(@sw_hide, $area) sleep(500) GuiSetState(@sw_show, $area) endfunc if a special button is clicked in my maingui a msgbox pops up. during the msgbox i want my gui blinking. but the code above dont work. could someone help me? Edited May 4, 2010 by andygo Share this post Link to post Share on other sites
funkey 128 Posted May 4, 2010 Is the return value of the MsgBox important? Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Share this post Link to post Share on other sites
andygo 1 Posted May 4, 2010 SOLVED, sorry i just forgot the timer-func variables.... Share this post Link to post Share on other sites
funkey 128 Posted May 4, 2010 In case you don't need the return value of the MsgBox you don't need the Timer-functions. Global $i = 0 AdlibRegister("_Blink", 100) Local $str = "Local $x = MsgBox(64, 'Test', 'Hello!!')" Run('"' & @AutoItExe & '" /AutoIt3ExecuteLine "' & $str & '"') While 1 Sleep(2000000) WEnd Func _Blink() ToolTip($i) $i += 1 EndFunc Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Share this post Link to post Share on other sites
funkey 128 Posted May 4, 2010 In case you don't need the return value of the MsgBox you don't need the Timer-functions. Global $i = 0 AdlibRegister("_Blink", 100) Local $str = "Local $x = MsgBox(64, 'Test', 'Hello!!')" Run('"' & @AutoItExe & '" /AutoIt3ExecuteLine "' & $str & '"') While 1 Sleep(2000000) WEnd Func _Blink() ToolTip($i) $i += 1 EndFunc Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Share this post Link to post Share on other sites
andygo 1 Posted May 4, 2010 thank you funkey, i will test your solution too. Share this post Link to post Share on other sites