Sign in to follow this  
Followers 0
Wolfshare

Timer (for script restart)

9 posts in this topic

Hello guys ;)

I have one qeuestion :)What command i should use to make a timer which will restart my script. Tried

Or ($t = 60
but that doesn't work.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

A little bit more code could help. ;)

EDIT: Also, I think you might want to look at TimerInit, TimerDiff functions.

Or even the _Timer_ UDF.

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

A little bit more code could help. ;)

EDIT: Also, I think you might want to look at TimerInit, TimerDiff functions.

Or even the _Timer_ UDF.

One sec, i'll ask why that doesn't work, why the Google Chrome not activing? ://
WinActivate("Deposit file -„Google Chrome“")

Share this post


Link to post
Share on other sites

Does the title of that window really have the goofy tick marks around 'Google Chrome'?

And what does that have to do with the original topic?

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Does the title of that window really have the goofy tick marks around 'Google Chrome'?

And what does that have to do with the original topic?

;)

it's in the same script :) Wait i'll show you screen shot of title.

post-59586-12863798961864_thumb.jpg

Edited by Wolfshare

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

use partial match title

WinActivate("Deposit file")

for timer

$tinit = TimerInit()
...do something 
If TimeDiff($tinit) > $a_duration Then ... do something
Edited by trung0407

Share this post


Link to post
Share on other sites

Also, try using WinGetTitle("Deposit").


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

use partial match title

WinActivate("Deposit file")

for timer

$tinit = TimerInit()
...do something 
If TimeDiff($tinit) > $a_duration Then ... do something

Thanks you alot, winactivate is working.

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