Sign in to follow this  
Followers 0
Gillboss

How count time

9 posts in this topic

#1 ·  Posted (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 by Gillboss

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

no no no i need to count.. not wait..

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Thanks!!!! ProgAndy it work :D and not was in the help files..

Edited by Gillboss

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0