Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



how to run batch file one time after 30 sec

Discussion on how to run batch file one time after 30 sec within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 11
Received Thanks: 0
how to run batch file one time after 30 sec

Hi,
I want run batch file one time after 30 sec
I try but all my scripts failed
Code:
#RequireAdmin
#NoTrayIcon 
While 1
    While fileExists(@ScriptDir&"\anyname.bat")
        run(@ScriptDir&"\anyname.bat")
    WEnd
    Sleep(30000)
WEnd
boy25 is offline  
Old 11/30/2019, 04:03   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 166
Quote:
Originally Posted by boy25 View Post
Hi,
I want run batch file one time after 30 sec
I try but all my scripts failed
Code:
#RequireAdmin
#NoTrayIcon 
While 1
    While fileExists(@ScriptDir&"\anyname.bat")
        run(@ScriptDir&"\anyname.bat")
    WEnd
    Sleep(30000)
WEnd
Of course it fails, it will run over and over and over and over again thats why is called while loop...

This will wait 30 secs and work once
Code:
sleep(30000)
if fileExists(@ScriptDir&"\anyname.bat") then
run(@ScriptDir&"\anyname.bat")
endif
This will execute the script every 30 secs
Code:
while sleep(30000)
if fileExists(@ScriptDir&"\anyname.bat") then
run(@ScriptDir&"\anyname.bat")
endif
wend
elmarcia is offline  
Old 11/30/2019, 19:56   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 11
Received Thanks: 0
thanks my sir
thanks very much
boy25 is offline  
Reply


Similar Threads Similar Threads
Editing even one number in Wpe and get DC after a few sec
12/20/2015 - Dekaron Private Server - 12 Replies
ok so i catch Wsa Send packet i try even only 1 number to change like 4A to 41 and then it sendts like 50 packets really fAST AND you are disconect from the server
HOOOOTTT!!!! Social Empires Cash hack (run run Run
04/02/2012 - Facebook - 10 Replies
Social Empires Cash Hack March 2012 - YouTube this is the link for cash hack finally it is completed don't say thanks , press it ;) New hacks coming Heyyy people some say it works and others it doesnt download teamviewer and i will explain it to you And don't forget to press Thanks ;) Contact me for everything
Crash after one sec in game
08/13/2010 - Dekaron - 9 Replies
Crash after one sec in game:(:confused: i have reinstall 2moons urar bypass and update it for 100 times now and still when i disable xigncode and log in and choose my char and supserver i crash after one second in the game, sometimes it doesnt even make the loading bar :S please can you help me out ? ;) i have windows XP, and its not my antie-virus ( norton) i have check it.
Fast Login on Sro (norm 10 sec now 0.5 sec)
04/13/2008 - SRO Hacks, Bots, Cheats & Exploits - 1 Replies
Hi, I got this from PH and he's got it from another cheat-forum Quote: _HOW TO:_ 1. Download Cheat engine from: Cheat Engine 2. Install Cheat engine.



All times are GMT +2. The time now is 12:30.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.