AutoHotkey Community

It is currently May 26th, 2012, 1:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: detect timer
PostPosted: January 5th, 2009, 4:32 am 
Offline

Joined: September 5th, 2008, 3:34 am
Posts: 44
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 6:36 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 7:21 am 
Offline

Joined: September 5th, 2008, 3:34 am
Posts: 44
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, BrandonHotkey, Exabot [Bot], Maestr0, patgenn123, poserpro and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group