Leaderboard
Popular Content
Showing content with the highest reputation on 01/04/2023 in all areas
-
Yep, that's me, just keeping a bit of separation of projects I create under another name, though if you look into the code of some of them, you with find the creator listed as either TheSaint or (aka TheSaint). Basically these are projects I have done for the GOG community, and where I was unable to use my alias TheSaint, which was already in use by someone else. Eventually I decided it was smarter to have some separation between identities anyway, because the forum at GOG can be quite a cesspit much of the time, and I did not want to invite any trouble back here, as I tend to be rather outspoken at times. I have occasionally referenced some of those projects here in Chat. So if folk here think I have gone a bit quite with coding here, well aside from a whole swag of updates I have yet to upload for projects listed here, I have mostly been working on projects related to GOG. That said, I have been coding significantly less in the last 12 months or so, with not that many new projects, mostly just updating old ones. There is something to be said for not having all your eggs in one basket too. P.S. I am somewhat surprised it has taken this long for someone to twig about my parallel coding life ... kudos to you.2 points
-
Scheduler UDF - Run tasks according to a schedule in a day
phoenixhuynh09 reacted to TheDcoder for a topic
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! - TheDcoder1 point -
Try this if OK ? Win close from taskbar #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $ghost_gui = GUICreate("ghost_gui", 615, 437, 192, 124, $WS_POPUP, $WS_EX_TOPMOST) GUISetBkColor("0x0D1117") ; $COLOR WinSetTrans($ghost_gui, "", 80) GUISetState(@SW_SHOW, $ghost_gui) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd1 point
-
Au3toCmd -- Avoid false virus positives. (Version: 2022.09.01)
MightyWeird reacted to Skysnake for a topic
Your better AV products handle AutoIt very well. The cheaper / free stuff, like McAfee, Avast, Avira and some others all go nuts when they see AutoIt. Personally I use and recommend ESET NOD32.1 point -
1 point
-
Really? I don't think you should have done that bud, and it brings to mind the Chicken or the Egg question.1 point
-
1 point
-
Scheduler UDF - Run tasks according to a schedule in a day
TheDcoder reacted to SOLVE-SMART for a topic
Hi @TheDcoder, all good and understandable, thanks. In case I find useful and meaningful examples and will create a pull request in which I explain whats going on etc. So I would skip the usage of GitHub issue beforehand 😅 . I agree and like your mentioned advantages of this Scheduler.au3 UDF over "Windows Task Scheduler" or Cron(jobs) and their drawbacks 👍 . I will not push myself, don't worry, but I guess I want to contribute 😅 . Best regardsSven________________Stay innovative!1 point -
Scheduler UDF - Run tasks according to a schedule in a day
SOLVE-SMART reacted to TheDcoder for a topic
Hi @SOLVE-SMART, Yup, that's the quick and dirty script I wrote to test changes on the fly Sure, it's your choice, we can also discuss here. No one in particular, I just put it out for people who need to perform tasks according to a schedule everyday. Personally I'm using this in one of my work projects, I already created several variants of things like this for automation related work projects, so I made this comprehensive solution to cover all my bases in the future and avoid reinventing the wheel everytime I think the README is adequate, but I'm always open for suggestions. No worries, the aspect about accuracy is just a nice to have feature, that wasn't one of my primary goals. It's fine if you don't have an use for this at the moment cron is indeed similar to Windows Task Scheduler, but it also shares all of the drawbacks that I mentioned. Don't push yourself to find some use case, at the end of the day it's just a hobby project Having an example script is just another "nice to have" thing, it's not critical and I'm sure the person who wants to use this in a project can figure it out quite easily with the documentation... and maybe with a little bit of help from here1 point -
How to remove more space in a string and keep space before string ?
Trong reacted to pixelsearch for a topic
Hi everybody Why not a RegEx pattern with 2 capturing groups ? Local $sInput = ' AB C D ' Local $sPattern = '(\s*)(.*\S)' Local $aOutPut = StringRegExp($sInput, $sPattern, 3) ; 3 = array of global matches Local $sOutPut = $aOutPut[0] & StringStripWS($aOutPut[1], 4) ; 4 = strip double (or more) spaces between words ; ConsoleWrite($sOutPut & @crlf) ConsoleWrite(">" & $sOutPut & "<" & @crlf) ; line with delimiters during debug phase1 point -
Scheduler UDF - Run tasks according to a schedule in a day
TheDcoder reacted to SOLVE-SMART for a topic
Hi @TheDcoder, my first quick review is in progress 🧐 . What do you mean by: You are talking about Testing.au3, am I right? Could be possible that I can spent I bit of time to do this 😀 . But please don't necessarily expect it, I can not promise, but I will do my best . Some questions: Do you prefer the creation of a GitHub issue (where I describe what I want to do) before I come up with a PR? Who is your target/focus group? You talk about an example for the UDF, what about extending the README (by some instructions) for a wider user field? Necessary or more nice to have? Best regardsSven________________Stay innovative!1 point -
How to remove more space in a string and keep space before string ?
Trong reacted to SOLVE-SMART for a topic
Hi @VIP, sure, good point 👍 . I was only focusing on that specific example. Anyways, good improvement 😀 . Best regardsSven________________Stay innovative!1 point -
How to remove more space in a string and keep space before string ?
Trong reacted to SOLVE-SMART for a topic
Hi @VIP, not the elegantest way, but works fine 😅 : ConsoleWrite(_StripWhitespacesExceptPrefixedOnes(" A B C ") & @CRLF) Func _StripWhitespacesExceptPrefixedOnes($sString) Local Const $sRegExPattern = '(\s+).*?$' Local Const $iReturnMatchFlag = 1 Local Const $sPrefixSpaces = StringRegExp($sString, $sRegExPattern, $iReturnMatchFlag)[0] Local Const $iStripLeadingTrailingDoubleFlag = 7 Return $sPrefixSpaces & StringStripWS($sString, $iStripLeadingTrailingDoubleFlag) EndFunc Best regardsSven________________Stay innovative!1 point -
ScreenColorPicker snap color from screen with the mouse pointer
SOLVE-SMART reacted to ioa747 for a topic
You have right !! With HotKeySet the script flow was trapped in loop. I replace the code. Thank you very much for response and your suggestion!1 point -
ScreenColorPicker snap color from screen with the mouse pointer
ioa747 reacted to SOLVE-SMART for a topic
Hi @ioa747, what I like is the Loupe() and the general idea 👍 . What I don't like or at least just do not understand is, the HotKeySet("{END}", "ColorPicker") on line 35. Each time I press end, the picker image is freezed. Is this intended and if yes, why and for what? Besides that, good job 😀 . As I small suggestion regarding code improvement, I would say you could restructure your code a bit more. Best regardsSven________________Stay innovative!1 point -
At least the UDF section is very old and just a copy of our wiki. For an up2date UDF list I recommend the wiki1 point
-
That is covered in the wiki FAQ section (see link in my sig) You can't use _WD_LinkClickByText for this because this function is limited to <a> link elements. Your custom _WD_ClickElement should work as long as the xpath is correct.1 point
-
Looking for a PHP beautifier like Tidy for AU3
Skysnake reacted to SOLVE-SMART for a topic
Hi @Exit, hi @Skysnake, I am not sure if it's still worthy to answer here, but maybe someone is interested or maybe this is helpful for someone. You should have a closer look at this beautifier or even better (IMO) a VSCode extension like phpfmt - PHP formatter which provides several settings. Best regardsSven________________Stay innovative!1 point -
@dadLogI would also recommend taking a look at @Gianni's _HtmlTableGetWriteToArray. It is extremely efficient, and could possibly be used as a means to capture the desired data or at least serve as a starting point.1 point
-
Hello, you can use for printserver shared printer objects GPOs to distribute the printer settings. As well you can use the command line to handle (almost?) all the settings regarding printer configuration. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/rundll32-printui Google: rundll32 printui.dll Regards, Rudi.1 point
-
Basic auth on REST API the easy way ?
noellarkin reacted to billou95 for a topic
OK well... it seems that a full night of sleep is worth tens of hours of search, this code works for those searching for the solution :1 point -
A mini example.. #include <GUIConstants.au3> GUICreate("slider",220,100, 100,200) GUISetBkColor (0x00E0FFFF) ; will change background color $slider1 = GUICtrlCreateSlider (10,10,200,20) GUICtrlSetLimit(-1,200,0) ; change min/max value $button = GUICtrlCreateButton ("Value?",75,70,70,20) GUISetState() GUICtrlSetData($slider1,45) ; set cursor Do $n=GUIGetMsg() $Info=GUIGetCursorInfo() If $Info[4]=$slider1 And $Info[2] Then $Bool=True GUICtrLSetData($button,GUICtrlRead($slider1)) EndIf Until $n = $GUI_EVENT_CLOSE1 point