italiano40 Posted January 30, 2007 Posted January 30, 2007 goto hereto download the programit is a small scriptand give me feedback on this thread
FitzChivalry Posted January 30, 2007 Posted January 30, 2007 Post your code here, not on some other forum. What does your code do?
Bert Posted January 30, 2007 Posted January 30, 2007 (edited) are we that stupid? post your code here, and let us see what it does. We won't run it, but we will examine it. edit...it is called shutdown.au3. Cute. Now stop treating us like we are stupid and post your code. Edited January 30, 2007 by Volly The Vollatran project My blog: http://www.vollysinterestingshit.com/
Helge Posted January 30, 2007 Posted January 30, 2007 (edited) <code removed>Feedback : Consider dropping notepad as your editor and replace it with Scite4AutoIt3. Edited January 30, 2007 by Helge
italiano40 Posted January 30, 2007 Author Posted January 30, 2007 #include <Date.au3> $i=1 $p=0 $time2=InputBox("Time by Italiano40", "Enter in the time with AM or PM ie.12:00:00 AM") MsgBox(262145, "Time by Italiano40", $time2) while($i>0) if(_NowTime()=$time2) Then MsgBox(1,"Standby Script by Italiano40","Standby will start in 30 seconds", 30) ProgressOn("Standby Script by Italiano40", "The computer will standby in") While($p<100) sleep(1000) ProgressSet($p) $p=$p+3 WEnd ProgressOff() Shutdown(32) Exit EndIf WEnd my code, is to type in a time, and it will put ur computer into standby at that time.Shutdown.au3
Shevilie Posted January 30, 2007 Posted January 30, 2007 Well this MsgBox(262145, "Time by Italiano40", $time2) Have the function of what ?? Show what I just enteree ?? you should remove that and it didnt worked on my computer since im not using AM and PM so the _NowTime() will never give AM and PM _NowTime([$sType]) Parameters $sType Default: 3 = Display a time using the time format specified in your computer's regional settings. 4 = Display a time using the 24-hour format (hh:mm). 5 = Display a time using the 24-hour format (hh:mm:ss). Hope it helps Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
italiano40 Posted January 31, 2007 Author Posted January 31, 2007 Well thisMsgBox(262145, "Time by Italiano40", $time2)Have the function of what ?? Show what I just enteree ?? you should remove that and it didnt worked on my computer since im not using AM and PM so the _NowTime() will never give AM and PM Hope it helps thank you i will take that i will change it, it will probably be removed, butthe AM and PM function will stay because then the if statement that checks the timeis AM and PM is no tag on it will not work
Shevilie Posted January 31, 2007 Posted January 31, 2007 butthe AM and PM function will stay because then the if statement that checks the timeis AM and PM is no tag on it will not workIt can work Have a look at the UDF for date... and see if you can make it global (read the users default setting) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now