LurchMan Posted May 14, 2009 Share Posted May 14, 2009 Hey everyone - This is my first actual program made in AutoIT (I use it mainly for just automation at work) so if it seems like the way I coded this was kinda out there and doesn't make sense, if I did something the hard way, please let me know. I'm still trying to learn the easy ways of programming . Well this is just a simple alarm clock that I created to help me wake up in the morning, and I decided you guys might find it useful also. All questions / comments welcome! To do (figure out): Snooze button - Didn't feel like taking the effort tonight to get this to work correctly Other than the snooze button I've done some pretty extensive testing on this and everything seems to function properly. --LurchAlarm_Clock.au3 Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
Achilles Posted May 14, 2009 Share Posted May 14, 2009 Hey everyone - This is my first actual program made in AutoIT (I use it mainly for just automation at work) so if it seems like the way I coded this was kinda out there and doesn't make sense, if I did something the hard way, please let me know. I'm still trying to learn the easy ways of programming .Well this is just a simple alarm clock that I created to help me wake up in the morning, and I decided you guys might find it useful also.All questions / comments welcome!To do (figure out):Snooze button - Didn't feel like taking the effort tonight to get this to work correctlyOther than the snooze button I've done some pretty extensive testing on this and everything seems to function properly.--LurchLooks pretty good... a few suggestions:Make the GUI a little more compactuse $CBS_DROPDOWNLIST (or something like that) so the user can't put numbers in the combo boxesuse soundplay() to play the music instead of the default (wmp in my case)Let the user chose a specific file instead of just a random one from a folderYour program is getting lots of errors from sciteWhy are you're default codes so long???Get rid of the tray icon (or do something with it)You might want to look at the AdLibEnable function, it would make snooze really easy, as well as checking the time, as well as incrementing the volume periodically.. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
LurchMan Posted May 14, 2009 Author Share Posted May 14, 2009 Thanks for the reply. The errors that Scite is getting are the warnings because I don't have all the variables for the set globally for the code GUI until it actually runs so it thinks that its not getting declared. I'll look into SoundPlay() tonight after work, and I guess I didn't know there was a setting so the user couldn't type in the combo box, thanks for letting me know. I'm planning on using the tray icon later so that after you set the alarm you can bring the GUI back up using the tray icon. The default codes were mainly just meant to be kind of a joke (even though they do work) Thanks for the comments. Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
jaberwacky Posted May 15, 2009 Share Posted May 15, 2009 The 'Set Code' window wouldn't do anything but float in midair. I clicked the combo boxes, unclicked the comboboxes, put some stuff in the custom box but nothing. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
LurchMan Posted May 15, 2009 Author Share Posted May 15, 2009 The 'Set Code' window wouldn't do anything but float in midair. I clicked the combo boxes, unclicked the comboboxes, put some stuff in the custom box but nothing.You mean the button wouldn't respond? Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
jaberwacky Posted May 16, 2009 Share Posted May 16, 2009 You mean the button wouldn't respond?Yeah, that's it! Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Armand Posted May 16, 2009 Share Posted May 16, 2009 is it just everyone's first program or what ?! (mine was too... check my sig ) [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
Yashied Posted May 16, 2009 Share Posted May 16, 2009 Very nice. I also did a timer. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
LurchMan Posted May 17, 2009 Author Share Posted May 17, 2009 Thanks guys...and yeah an alarm clock seemed to be the simplest thing that I could (attempt) to make..now I just need my next idea... and did anyone see anything that I could have done an easier way or anything? im trying to use you guys as a learning tool lol... Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. 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