Gillboss Posted April 14, 2008 Share Posted April 14, 2008 (edited) How count time in while..? What commands..? Thanks! edit: why it not wait 10 secs and then move the mouse? $Time1 = TimerInit() If $Time1 > 100000 Then MouseMove(512,384) $Time1 = 0 EndIf Edited April 14, 2008 by Gillboss Link to comment Share on other sites More sharing options...
Monamo Posted April 14, 2008 Share Posted April 14, 2008 How count time in while..?What commands..?Thanks!TimerInit() and TimerDiff() in the helpfile should handle it. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
Gillboss Posted April 14, 2008 Author Share Posted April 14, 2008 (edited) its good?: while (1) $Time1 = TimerInit() If $Time1 > 100000 Then MouseMove(512,384) Sleep(500) $Time1 = 0 $Time1 = TimerInit() EndIf wend Edited April 14, 2008 by Gillboss Link to comment Share on other sites More sharing options...
Shevilie Posted April 14, 2008 Share Posted April 14, 2008 That would be easier While (1) Sleep(100000) MouseMove(512,384) Sleep(500) WEnd Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Gillboss Posted April 14, 2008 Author Share Posted April 14, 2008 no no no i need to count.. not wait.. Link to comment Share on other sites More sharing options...
Gillboss Posted April 14, 2008 Author Share Posted April 14, 2008 why it not wait 10 secs, and then move the mouse? $Time1 = TimerInit() If $Time1 > 100000 Then MouseMove(512,384) $Time1 = 0 EndIf Link to comment Share on other sites More sharing options...
weaponx Posted April 14, 2008 Share Posted April 14, 2008 why it not wait 10 secs, and then move the mouse? $Time1 = TimerInit() If $Time1 > 100000 Then MouseMove(512,384) $Time1 = 0 EndIf 1000 = 1 second 10,000 = 10 seconds 100,000 = 100 seconds Link to comment Share on other sites More sharing options...
ProgAndy Posted April 14, 2008 Share Posted April 14, 2008 while (1) $Time1 = TimerInit() If $Time1 > 100000 Then MouseMove(512,384) Sleep(500) $Time1 = 0 $Time1 = TimerInit() EndIf wendoÝ÷ ÛMúN)×¥·§z÷«ÝtÓM4"wrh¢¨ºÇjw°N)+Z®Úh{T±ëaÆ®¶sbb33cµFÖSÒFÖW$æB´&Vf÷&R7F'FærFRÆö÷§vÆR¢bFÖW$Ffbb33cµFÖSfwC²FVâ´æVVG2FÖW&FfbFòvWBFRVÆ6VBFÖP¢Ö÷W6TÖ÷fRS"Ã3B¢6ÆVWS£²b33cµFÖSÒ´æ÷BæVVFV@¢b33cµFÖSÒFÖW$æB¢VæD`§vVæ *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Gillboss Posted April 14, 2008 Author Share Posted April 14, 2008 (edited) Thanks!!!! ProgAndy it work and not was in the help files.. Edited April 14, 2008 by Gillboss 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