Wolfshare 0 Posted October 6, 2010 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
AlmarM 22 Posted October 6, 2010 (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 October 6, 2010 by AlmarM MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Wolfshare 0 Posted October 6, 2010 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
PsaltyDS 39 Posted October 6, 2010 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
Wolfshare 0 Posted October 6, 2010 (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. Edited October 6, 2010 by Wolfshare Share this post Link to post Share on other sites
PsaltyDS 39 Posted October 6, 2010 Do it in the other topic you opened on this specific issue. 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
trung0407 0 Posted October 6, 2010 (edited) use partial match title WinActivate("Deposit file") for timer $tinit = TimerInit() ...do something If TimeDiff($tinit) > $a_duration Then ... do something Edited October 6, 2010 by trung0407 Share this post Link to post Share on other sites
AlmarM 22 Posted October 6, 2010 Also, try using WinGetTitle("Deposit"). MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Wolfshare 0 Posted October 7, 2010 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