Cha0sBG Posted April 19, 2008 Share Posted April 19, 2008 (edited) Hello I Have 2 Questions: 1: How can i add a label with the current time 2: How can i set a option wich i can add for example 20 and to read that is 20 mins and play a sound when those 20 mins are up Come on help the super noob Edited April 19, 2008 by Cha0sBG Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ¹ There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread. Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 19, 2008 Share Posted April 19, 2008 Hello I Have 2 Questions:1: How can i add a label with the current timeYou add a label with GuiCtrlCreateLabel(). Getting the time as a text string can be either the macros (i.e. @Hour, @Min) or functions like _Now(). See the help file.2: How can i set a option wich i can add for example 20 and to read that is 20 mins and play a sound when those 20 mins are upYou can read an input control, for example with GuiCtrlRead(), or use InputBox(). Again, see the help file. The time delay can be a Sleep(), or better, use TimerInit() and TimerDiff(). Again, see the help file.But first, read the help file. 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 Link to comment Share on other sites More sharing options...
Swift Posted April 19, 2008 Share Posted April 19, 2008 (edited) If super-noob needs help. Then super-noob needs to read the helpfile. For the label, I have used it by: Creating a label, and then using AdLibEnable("UpdateTime", "1000"), and then the time function looks like this: Func UpdateTime() $NowTime= @Hour&":"&@Min&":"&@Sec GUICtrlSetData($TheLabel, $NowTime) Edited April 19, 2008 by Swift Link to comment Share on other sites More sharing options...
Tomb Posted April 19, 2008 Share Posted April 19, 2008 see herean alarm clock i made recently Link to comment Share on other sites More sharing options...
Cha0sBG Posted April 19, 2008 Author Share Posted April 19, 2008 Swift Thanks About The Time Label your great and PSaltyDS i will check that Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ¹ There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread. Link to comment Share on other sites More sharing options...
Cha0sBG Posted April 19, 2008 Author Share Posted April 19, 2008 i will check that alarm clock Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ¹ There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread. Link to comment Share on other sites More sharing options...
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