Jump to content
Sign in to follow this  
italiano40

I need beta test for my standby program

Recommended Posts

italiano40

goto here

to download the program

it is a small script

and give me feedback on this thread

Share this post


Link to post
Share on other sites
FitzChivalry

Post your code here, not on some other forum. What does your code do?

Share this post


Link to post
Share on other sites
Bert

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 by Volly

Share this post


Link to post
Share on other sites
Helge

<code removed>

Feedback : Consider dropping notepad as your editor and replace it with Scite4AutoIt3.

Edited by Helge

Share this post


Link to post
Share on other sites
italiano40

#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

Share this post


Link to post
Share on other sites
Shevilie

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

Share this post


Link to post
Share on other sites
italiano40

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

Share this post


Link to post
Share on other sites
Shevilie

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.