| View previous topic :: View next topic |
| Author |
Message |
deportivo5
Joined: 05 Sep 2008 Posts: 44
|
Posted: Mon Jan 05, 2009 3:32 am Post subject: detect timer |
|
|
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 |
|
 |
Guest
|
Posted: Mon Jan 05, 2009 5:36 am Post subject: |
|
|
| 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
|
Posted: Mon Jan 05, 2009 6:21 am Post subject: |
|
|
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 |
|
 |
|