caocat Posted August 3 Share Posted August 3 I have created a program that alarms at a fixed time. However there was an error. Sometimes active, sometimes inactive. Sometimes at the same time the bell rings twice. Please help me edit the code. Thank you. RingAlarm.au3 Link to comment Share on other sites More sharing options...
Nine Posted August 3 Share Posted August 3 (edited) When you post code, please use the method shown in the link. Your statement is badly written If @WDAY= 2 or 3 or 4 or 5 or 6 or 7 It should be If @WDAY= 2 or @WDAY=3 or @WDAY=4 or @WDAY=5 or @WDAY=6 or @WDAY=7 Or even better If @WDAY >= 2 And @WDAY <= 7 Or simpler If @WDAY <> 1 Edited August 3 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
caocat Posted August 3 Author Share Posted August 3 Thank you. I will pay close attention next time. 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