Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/16/2024 in all areas

  1. Ah, i apologize. what i meant was to download the release for each of the dependencies, and their dependencies (basically manually resolving the dependency tree). But there is more steps for manually solving the dependencies. Since each dependency needs a linked folder to the parent folder (au3pm). The dependencies are currently not needed to run the main code, only the tests. If you wish to do it manually, you need the following steps: Add a new folder in the project, with the name "au3pm" download au3unit_v1.0.0, StringRegExpSplit_v1.0.0 and autoit_v3.3.16.1 extract each zip file to the au3pm folder rename the extracted "install" folder to "autoit" rename the extracted "au3unit-1.0.0" folder to "au3unit" rename the extracted "StringRegExpSplit-1.0.0" folder to "StringRegExpSplit" open up cmd.exe create a directory junction for au3unit with: mklink /J "D:\Users\Tester\Downloads\au3.DllStructEx-2.0.0\DllStructEx-2.0.0\au3pm\au3unit\au3pm\" "D:\Users\Tester\Downloads\au3.DllStructEx-2.0.0\DllStructEx-2.0.0\au3pm" create a directory junction for StringRegExpSplit with: mklink /J "D:\Users\Tester\Downloads\au3.DllStructEx-2.0.0\DllStructEx-2.0.0\au3pm\StringRegExpSplit\au3pm\" "D:\Users\Tester\Downloads\au3.DllStructEx-2.0.0\DllStructEx-2.0.0\au3pm" the unit tests should now work With the package manager it is: Download au3pm_v0.3.1 executable or build the exe manually open cmd.exe move working directory to the project via: cd /D "D:\Users\Tester\Downloads\au3.DllStructEx-2.0.0\DllStructEx-2.0.0\" install dependencies with: "D:\Users\Tester\Downloads\au3pm.exe" install the unit tests should now work Sadly i cannot upload a zip of my au3pm folder, as it is 31,7 MB in size and the directory junctions prevent archiving tools from working.
    1 point
  2. Oh no worries that is annoying but intentional 😅. the au3pm folder is the folder for my package manager au3pm. the au3pm.json (or au3pm-lock.json if available) file in a repository specifies the dependencies and the manager will resolve and download them to that folder. Every dependency except AutoIt will currently resolve to a commit hash or release on GitHub, so you could manually download the release and add it to that folder if you wanted You can see the steps my GitHub action script does, to make this work here: https://github.com/genius257/DllStructEx/blob/main/.github/workflows/test.yml#L26-L31 I've created a re-usable GitHub action that downlods the au3pm binary and then simple just runs the command(s) here: https://github.com/au3pm/au3pm-action/blob/main/action.yml Thread for the package manager:
    1 point
  3. v2.0.0 is now available. The parser is now a hand written solution, instead of using regex This fixes multiple issues, most notable crash with exit code c0000005, while trying to parse a variant tag. Array support has also been added, this is what has taken the most time 😅. NOTE: DllStructEx is no longer contained in a single file. I plan on using my package script solution later to generate and attach a bundled version to every release automatically, but my dung beetle project is still not ready for use. Also little fun info: Every push and pull request for this project repository now triggers unit tests via GitHub actions, to help me no to push failing code by accident
    1 point
  4. Hi. disable password expiration in global (UAC elevated execution is required): $result=shellexecutewait("net","accounts /maxpwage:unlimited")
    1 point
  5. Are you annoyed by the limitations of the standard Windows message dialog created by MsgBox? Would you like to have coloured backgrounds and text? To choose the justification and font? Do you want to be able to place the message box other than in the centre of the screen? Centred on your GUI, for example, or at a particular location on screen? What about having user-defined text on as many buttons as you need? And user-defined icons? Or a visible countdown of the timeout? Finally, would you like to choose whether the message box has a button on your already too-crowded taskbar? If the answer to any of these questions is "YES" then the ExtMsgBox UDF is for you! [NEW VERSION] 16 Feb 24 Changed: Some additional functionality added to the "TimeOut" parameter of _ExtMsgBox: - A positive integer sets the EMB timeout as before. - A negative integer will double the size of the countdown timer if it is used. - A colon-delimited string (eg: "10:5") will set the normal EMB timeout (first integer) and will also initially disable the EMB buttons for the required period (second integer). New UDF and examples in the zip. Older version changes: ChangeLog.txt As always, I realise nearly all of the DLL calls in these UDFs could be made by using commands in other UDFs like WinAPI.au3 - but as with all my UDFs (which you can find in my sig below) I am trying to prevent the need for any other include files. The UDF and examples (plus StringSize) in zip format: ExtMsgBox.zip Courteous comments and constructive criticisms welcome - guess which I prefer! M23
    1 point
  6. sylremo

    Taskbar problems

    Apologizing for bumping an old post, I just want to provide a cleaner snippet, which is more intuitive based on MSDOC's APPBARDATA: https://docs.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-appbardata ToggleTaskbarAutoHide() MsgBox(262144, '', 'Taskbar autohide toggled') ToggleTaskbarAutoHide() Func ToggleTaskbarAutoHide() Local Const $ABM_GETSTATE = 0x00000004 Local Const $ABM_SETSTATE = 0x0000000A Local Const $ABS_AUTOHIDE = 0x00000001 Local Const $ABS_ALWAYSONTOP = 0x00000002 Local $tAPPBARDATA = DllStructCreate('dword;int;uint;uint;int[4];int') DllStructSetData($tAPPBARDATA, 1, DllStructGetSize($tAPPBARDATA)) DllStructSetData($tAPPBARDATA, 2, WinGetHandle('[CLASS:Shell_TrayWnd]')) Local $iCurrentState = DllCall('shell32.dll', 'int', 'SHAppBarMessage', 'dword', $ABM_GETSTATE, 'ptr', DllStructGetPtr($tAPPBARDATA)) Local $iNewState = $iCurrentState[0] ? $ABS_ALWAYSONTOP : $ABS_AUTOHIDE DllStructSetData($tAPPBARDATA, 6, $iNewState) DllCall('shell32.dll', 'int', 'SHAppBarMessage', 'dword', $ABM_SETSTATE, 'ptr', DllStructGetPtr($tAPPBARDATA)) EndFunc
    1 point
×
×
  • Create New...