Vastyrik Posted June 19, 2008 Share Posted June 19, 2008 Hello While 1 Sleep(20000) Send("{F1}") WEnd While 1 $coord = PixelSearch(0,20,1024,768,0x18555A) If Not @error Then MouseClick("left",$coord[0],$coord[1]) Sleep(15000) EndIf WEnd I want 2 whiles be executed at same time but there is only the first block that is executed. Link to comment Share on other sites More sharing options...
sandin Posted June 19, 2008 Share Posted June 19, 2008 $timer1 = TimerInit() AdlibEnable("_adlib1", 50) Func _adlib1() if TimerDiff($timer1) >= 20000 Then Send("{F1}") $timer1 = TimerInit() EndIf WEnd While 1 $coord = PixelSearch(0,20,1024,768,0x18555A) If Not @error Then MouseClick("left",$coord[0],$coord[1]) $timer2 = TimerInit() do Sleep(50) Until TimerDiff($timer2) >= 15000 EndIf Sleep(50) WEnd Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll 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