Jump to content

I need beta test for my standby program


Recommended Posts

#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

Link to comment
Share on other sites

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).

:D Hope it helps :D

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Link to comment
Share on other sites

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

:D Hope it helps :D

thank you i will take that i will change it, it will probably be removed, but

the AM and PM function will stay because then the if statement that checks the time

is AM and PM is no tag on it will not work

Link to comment
Share on other sites

but

the AM and PM function will stay because then the if statement that checks the time

is AM and PM is no tag on it will not work

It 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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...