Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/28/2022 in all areas

  1. Scheduler UDF A time-based task scheduler to run arbitrary tasks at set times in a day. Features Milli-second precision with reasonable accuracy Repeating tasks Run tasks even if scheduled time has elapsed (optional) Interruptible Project Home GitHub: https://github.com/TheDcoder/Scheduler.au3 --- Hello everyone, it's been a long time since I've made a new UDF I originally wanted to release this yesterday as my Christmas present to the AutoIt community but I couldn't find the time, so I'm releasing it today as a belated present Work on this was started many months ago but I got caught up with many things and couldn't find the time to clean this up and document everything. I made this UDF because I found myself implementing this in one way or the other in many projects, so I made it into a neat little package to release it to the general public, no need to reinvent the wheel and waste time on this. This implementation is very simple in my opinion and as a bonus I made it interruptible so that the user can exit out of the infinite event-loop. Enjoy and belated Merry Xmas! - TheDcoder
    1 point
  2. pixelsearch

    Strange ERROR box

    @Dan_555 I do same during the debugging phase, using an abbreviation in Scite Editor. In fact there are only 2 abbreviations (until now) in my abbrev.properties file : 1) 1st abbreviation : err err=If @error Then ConsoleWrite("Line #" & @ScriptLineNumber & "   @error = " & @error & @crlf)\n Typing err then Ctrl-b will replace the letters err with the following line in the script : If @error Then ConsoleWrite("Line #" & @ScriptLineNumber & "   @error = " & @error & @crlf) 2) 2nd abbreviation : b b=Local Static $iCounter = 0\n$iCounter += 1\nConsoleWrite("$iCounter = " & $iCounter & @crlf)\n Typing b then Ctrl-b will replace the letter b with the following 3 lines in the script : Local Static $iCounter = 0 $iCounter += 1 ConsoleWrite("$iCounter = " & $iCounter & @crlf) These 3 lines are often useful for me (used "as is" or as a frame) inside a function during the debugging phase. I choosed "b" because it's the easiest abbreviation to type : as you already got a finger placed on the b key, then you just need a finger from the other hand to be placed on the Ctrl key Guess which abbreviation I use most
    1 point
  3. Dan_555

    Strange ERROR box

    You could start to look if your script contains a message box with that message. I sometime place either a messagebox or console write lines in my script, for debugging purposes. Then i know where exactly the error happened...
    1 point
  4. Sounds very promising .... now I just need a need for it. Most of my life follows an internal subconscious schedule.
    1 point
  5. Thanks Yes, definitely. Windows Task Scheduler just runs your program, it's not integrated into your program itself unlike my UDF, which gives you full control over the schedule, not to mention that your program can still display a GUI and do stuff periodically with AdlibRegister while the main event loop is sleeping. None of that is possible with Windows Task Scheduler. The most important thing though, is the simplicity and independence, no need to bother messing with an external program and risk potential complications. Also it's just not a good look if you are developing a end-user GUI program and it doesn't have it's own schedule thing, instead you have to rely on the user or potentially other programs to not screw up whatever Task Scheduler settings need to be changed.
    1 point
  6. And Be sure to include plenty of these guys for JohnOne's amusement
    1 point
×
×
  • Create New...