AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

detect timer

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
deportivo5



Joined: 05 Sep 2008
Posts: 44

PostPosted: Mon Jan 05, 2009 3:32 am    Post subject: detect timer Reply with quote

hi guys,

i need help.

im doing a program like msn.
however, im trying to create a ahk script timer that will allow me to take the time that is required for logging in.

how do i go abt it?

it will be useful for my future troubleshooting.

thanks in adv.
_________________
I have lost friends, some by death... others through sheer inability to cross the street.
Virginia Woolf (1882 - 1941),

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Jan 05, 2009 5:36 am    Post subject: Reply with quote

Code:
script_begin:
StartTime := A_TickCount  ;Start timer here.

; put your code (or call the subroutine or function) to be timed here

ElapsedTime := A_TickCount - StartTime   ;Monitor timer here
MsgBox,  %ElapsedTime% milliseconds have elapsed.
Back to top
deportivo5



Joined: 05 Sep 2008
Posts: 44

PostPosted: Mon Jan 05, 2009 6:21 am    Post subject: Reply with quote

thank you guest.

but.. the timer stops once i finish running my ahk scripts rite?
my plan was to use ahk script to auto log-in to the msn.
upon the computer sends an "enter" input to start the log-in,
the timer starts clocking the time. and it stops once it detects that the msn have been successfully logged in.

i was tinking of a loop with a imagesearch.
but this will slow down my computer and thus making the reading inaccurate.
any other ideas?
_________________
I have lost friends, some by death... others through sheer inability to cross the street.
Virginia Woolf (1882 - 1941),

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group