Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/11/2023 in all areas

  1. I see at least 2 issues with your translation: According to the documentation, $secretkey should not be a part of $plaintext. It is used for the HMAC hash. Your _Crypt_HashData() is doing a SHA_256 hash NOT an HMAC SHA256 hash. I'm not sure if the Crypt UDF, as it currently stands, even has the ability to do HMAC hashing. The _Crypt_HashData() function certainly does not. The CryptoNG UDF, namely _CryptoNG_HashData(), has that capability. (See example below)
    2 points
  2. I don't know if you are like me, but I am always searching for that specific code I wrote over the years, but cannot find it. It was way too exhausting to look at 1k+ scripts. And Windows Explorer is not the best tool to do such exploration. So I made this little script that save me tons of time. Hope you will find it useful too. You can adjust default search folders and type of files you want to search for, but you can also change it at runtime. To use multiple filters separate them with ";" Let me know if you have any suggestion to enhance the tool. Version 2023-12-27 * Code revision : 3.3.16.1 now required Version 2023-05-10 * Sets children flag on first drawn list Version 2021-04-06 * Context menu modified to allow clipping file name and line content Version 2020-11-21 * Allows only 1 running instance of the script * Added right-click support on Tray to exit script Version 2020-06-29 * Added Copy File Name to context menu (helps to copy include files names) Version 2020-04-22 * Added icons to main buttons * Added informative box to describe progress and results of a search * Increased robustness of the GUI * Open Button enabled only under the right conditions * Added Tooltip on filter field to describe how to enter multiple criteria * Forced a minimum Window size Version 2020-04-18 * Added support of Context Menu in Tree View * Added support of Tray * Minimizes on Tray Version 2020-04-12 * Added DPI awareness * Added Enter Key functionality to start a search Version 2020-04-09 * Changed base size of the GUI to make it wider * Made the window resizable * Added Reset button * Shown busy cursor more appropriately * Corrected bug of first line displayed Thanks all for your input. SearchContent.au3
    1 point
  3. 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
  4. The current code can accept {sleep 500} as well without change. But if you intend to use the same separator pair (curly brackets {}) for BOTH AutoIt statements AND Send special syntaxes, then you'll have to test the string content against all of the special syntaxes listed in Send() help. Very cumbersome! Better use a distinct separator for AutoIt statements and leave {} alone. Choose it so that it can't reasonably occur in texts nor in statements. You have the full Unicode BMP (around 64k codepoints) to choose from, but restricting to a number of ASCII everyone can compose easily seems a good idea, like ~ # | ^ % § < > ¤ Example with # #include <GUIConstants.au3> AutoItSetOption("MustDeclareVars", 1) Opt("GUIOnEventMode", 1) Global $aGUI = GUICreate("", 300, 100) Global $Text_Field = GUICtrlCreateEdit("#sleep 150#Hello#MouseClick('left',100,100)# world#MouseClick('left',200,200)#.#send({TAB})#", 0, 0, 300, 100, $ES_MULTILINE+$WS_VSCROLL) GUISetOnEvent($GUI_EVENT_CLOSE, "GUI_Events") GUISetOnEvent($GUI_EVENT_MINIMIZE, "GUI_Events") GUISetOnEvent($GUI_EVENT_RESTORE, "GUI_Events") GUISetState(@SW_SHOW,$aGUI) HotKeySet("{F1}", "F1_HotKey") While 1 Sleep(10) Wend Func GUI_Events() Select Case @GUI_CtrlId = $GUI_EVENT_CLOSE Exit EndSelect EndFunc Func F1_HotKey() Local $Text_To_Send = GUICtrlRead($Text_Field) Local $Array_Of_Text_To_Send = StringRegExp($Text_To_Send,"([^#]*)(#[^#]*#)*", 3) For $s In $Array_Of_Text_To_Send If StringLeft($s, 1) = "#" Then Execute(StringRegExpReplace($s, "#", "")) Else Send($s) EndIf Next EndFunc Using # (for instance) as the sole separator is even easier than dealing with a pair.
    1 point
  5. Sort of "you can check out anytime you like, but you can never leave" Oops, that's already copyrighted
    1 point
  6. Expression tester with pattern breakdown is here: https://regex101.com/r/483ZUH/1
    1 point
  7. Try the changed posted version
    1 point
  8. Sorry, this resulted from running the code. I've restored it in the post above. When run, it sends string to the point where the mouse was set in the previous loop. Unfortunately this " world" text deleted the For line in Scite!
    1 point
  9. Try this version : Func F1_HotKey() Local $Text_To_Send = GUICtrlRead($Text_Field) Local $Array_Of_Text_To_Send = StringRegExp($Text_To_Send,"([^{]*)({[^}]*})*", 3) For $s In $Array_Of_Text_To_Send If StringLeft($s, 1) = "{" Then Execute(StringRegExpReplace($s, "[{}]", "")) Else Send($s) EndIf Next EndFunc
    1 point
  10. following @argumentum suggestions i made an example #include <Array.au3> Local $aArray[101] $aArray[0] = 100 For $i = 1 To $aArray[0] $aArray[$i] = $i & ".txt" Next _ArrayShuffle($aArray, 1) _ArrayDisplay($aArray, "BEFORE") _FixIt($aArray) _ArrayDisplay($aArray, "AFTER") Func _FixIt(ByRef $Array) _ArrayColInsert($Array, 1) ; Now a 2D array For $i = 1 To $Array[0][0] $Array[$i][1] = StringFormat("%010s", $Array[$i][0]) Next ;~ _ArrayDisplay($Array, "2D array") _ArraySort($Array, 0, 1, 0, 1) _ArrayColDelete($Array, 1) Return $Array EndFunc ;==>_FixIt
    1 point
×
×
  • Create New...