Jump to content
Sign in to follow this  

Simple Example of _Timer_SetTimer

Recommended Posts



I did see the example in documentation but I have to self deprecate and say it's rather complicated for me.

I wondered if I could ask better programmers than me for simplification of and a simple example of the function: _Timer_SetTimer. I would be grateful for a bare bones example showing the essential basic action of this function.


Lee G.


Share this post

Link to post
Share on other sites

Hi, leegold. It would help to find out what portion of the example is throwing you off. Did you click on the Open Script button in the help file, and did it run okay for you? If the example ran okay, perhaps post what you're trying to do and we can help you troubleshoot.

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post

Link to post
Share on other sites

I'm not searching hard enough before I ask my questions. I found a simple example that works and that helps me see its usage. I know forum posters would have helped me "grok" the example in the documentation to much learn more. Thanks! For now this might suffice.

#include <Timers.au3>
$Form1_1 = GUICreate("Timerform", 419, 277, 206, 136)
Global $Timer1

$Timer1 = _Timer_SetTimer($Form1_1, 5000, "TimerTest")

While 1

Func TimerTest($hWnd, $Msg, $iIDTimer, $dwTime)
    #Forceref $hWnd   , $Msg   , $iIDTimer   , $dwTime

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