Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 07/19/2022 in all areas

  1. UEZ

    The Matrix Uploaded

    I don't think I ever posted The Matrix here, so here's the upload: The Matrix v1.31.au3 ;coded by UEZ build 2018-10-20 #pragma compile(Icon, "c:\Program Files (x86)\AutoIt3\Icons\au3.ico") #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Run_Au3Stripper=y #Au3Stripper_Parameters=/so /pe ;/rm #AutoIt3Wrapper_Run_After=del /f /q "%scriptdir%\%scriptfile%_stripped.au3" #include <GDIPlus.au3> #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> #include "The Matrix Sound.au3" _GDIPlus_Startup() Global $hGUI, $iFP
    7 points
  2. To use DllCall() correctly, be aware of the following: The AutoIt DllCall() function can only be used to execute functions in dll-files implemented in unmanaged languages such as C, C++ and Pascal. The DllCall() function cannot be used to execute functions in .NET assembly dll-files implemented in managed languages such as C#, F# or VB.NET. Note that this isn't an AutoIt limitation or a limitation in the DllCall() function. It's a very general limitation when trying to mix any unmanaged programming language with managed code. AutoIt is an unmanaged programming language. Fortunately,
    4 points
  3. Your initial example, when sent to the POSTMAN Echo API, sends the form data correctly. Are you sure you are posting the correct script and error message? If so, then the problem is probably the format of the POST data. It would help if you provided more information about the API. The site doesn't have API examples? You could also try URL encoding your POST data before sending it. The second $sPostData in my example has the string URL encoded. Both ways produce the same result when sent to the POSTMAN Echo API. However, your API server may want the URL encoded string when special
    3 points
  4. Hello again. Here is the correct example: ;~ #AutoIt3Wrapper_UseX64=y _CreateISO() Func _CreateISO() Local $sSourceDirectory = @ScriptDir & "\Test" Local $sOutFileIso = @ScriptDir & "\MyFile.iso" Local $oFS = ObjCreate("IMAPI2FS.MsftFileSystemImage") $oFS .FreeMediaBlocks = 0 $oFS.VolumeName = "MyISOName" $oFS.Root.AddTree($sSourceDirectory, False) Local $oRImage = $oFS.CreateResultImage() Local $oImgStream = ObjCreateInterface($oRImage.ImageStream(), '{0000000c-0000-0000-C000-000000000046}', _ "D1 hres
    3 points
  5. *click* to avoid posts of people that don't read, which I know hardly happens, but still.......
    3 points
  6. Melba23

    Read Memory Value Issues

    StefanM, Looking at G Hub on Google, I see: Reading that gives me, quite legitimately IMO, reason to think that there might be a confliction with the forum rules on gaming threads. So, very politely, I asked for an explanation of just what you were doing so we could make a reasoned decision on whether this was the case. Reading your explanation, I am of the opinion that there is no conflict and the thread can remain open. But now we come to the next point. I also asked, again politely, that everyone else stay out of the discussion until the matter had been clarified. But our
    3 points
  7. Just released version 1.6.0.1
    3 points
  8. New version in first post Version: 2022.07.22 - Support scripts with the same name but different content in different directories.
    3 points
  9. i found the easiest way in my iconLVw.au3i insert this func to save the icon: Func _SaveToFile($sDLLName, $iIconId, $iWidth=32, $iHeight=32) ;ConsoleWrite($sDLLName & @TAB & $iIconId & @CRLF) Local $sFile = $sIconPath & '\' & StringReplace($sDLLName, '.dll', '_') & $iIconId & '.ico' ConsoleWrite($sFile & @CRLF) Local $hIcon = _WinAPI_ShellExtractIcon(@SystemDir & '\' & $sDLLName, $iIconId, $iWidth, $iHeight) _WinAPI_SaveHICONToFile($sFile, $hIcon) _WinAPI_DestroyIcon($hIcon) EndFunc
    2 points
  10. Here is a sample I converted from internet. It's a good start. Removed Edited. I removed the code. It's not working. I'll update with a new code later I think. Saludos
    2 points
  11. Here is a way to do it without using any external command (just use COM objects) #RequireAdmin ; Needed _NetSetCategory("LAN", 1) ; Sets the Private category to the network connection called "LAN" ; #FUNCTION# ==================================================================================================================== ; Name...........: _NetSetCategory ; Description....: Sets the category of a network. Changes made take effect immediately ; Syntax.........: _NetSetCategory($sNetworkId, $iNetCategory) ; Parameters.....: $sNetworkId - Name of the n
    2 points
  12. https://www.autoitscript.com/autoit3/files/beta/autoit/autoit-v3.3.16.1-rc1-setup.zip https://www.autoitscript.com/autoit3/files/beta/autoit/autoit-v3.3.16.1-rc1.zip 3.3.16.1 (xxx, 2022) (Release) AutoIt: - Fixed #3866: REGEXPCLASS broken in 3.3.16.0. - Fixed #3875: GUICtrlSetResizing() performance. - Fixed #3865: Image Control resizing behave as forced $GUI_DOCKWIDTH and $GUI_DOCKHEIGHT. - Fixed #3764: StringRegExp() crash with patterns that cause infinite recursion. - Fixed #3876: Hex Number Arithmetic is incorrect. - Fixed #3879: Dim Map to Array. UDFs: - Fixed #3867: C
    2 points
  13. Jos

    Read Memory Value Issues

    @Wisok, It seems you like to "push buttons" in a pretty unpleasant way and while at it insult us, so let me be strait and clear: This was your last post here for the coming 5 days during which period you can consider to either staying away or retuning to our forums and respecting our wishes. Jos
    2 points
  14. @MightyWeirdPlease confirm that the bug has been fixed. Is fixed. See next post. New version in first post Version: 2022.07.27 - Support scripts with space in username.
    2 points
  15. @oddssatisfy Have you tried reading the documentation for your platform? It should have everything you need. Also why did you post this in the AutoIt forum? Most people would not be familiar with this. It's automation for crypto-currencies
    2 points
  16. Here is a rewrite of Wards Curl UDF with the binary portion removed so that it can support external (updated) library's and add support for x64. I added quite a few new header constants and also have included the curl-ca-bundle certificate. I modified the first two "easy" examples to demonstrate using the ca-bundle to verify the SSL peer. I also added a new example showing how to download the certificate chain. The 7.82.0 version dlls are included but they can be replaced with updated versions as they come out in the future. You can find future releases here : https://curl.se/windows/
    2 points
  17. I want to extract a icon from shell32.dll and write it to a new file. Here my non-working script: #include <WinAPIIcons.au3> $hIcon = _WinAPI_LoadShell32Icon(71) ; the next statement writes only a hexalue (e.g. 0x01CB07C9)to the file ; how to write the icon to the file? FileWrite(@ScriptFullPath & ".ico", $hIcon) _WinAPI_DestroyIcon($hIcon) How to create the file? got it myself: #include <WinAPIGdi.au3> $hIcon = _WinAPI_LoadShell32Icon(71) _WinAPI_SaveHICONToFile(@ScriptFullPath & ".ico", $hIcon) _WinAPI_DestroyIcon($hIcon)
    2 points
  18. oh, no. I just tested what you posted and I'm like, hmm, makes a CD. Could it make a DVD, to put more than 600 megs. But that was the question. I thought maybe a "$oFS.MediaType = DVD_for_argumentum" and that was as simple as that.
    1 point
  19. Here is little optimized version: 1) In StringReplace use CaseSense=1 -> faster 2) StringReplace+StringStripWS do only if neccessary (just before Beep) -> less CPU load in main loop $sTextOld = '' While True If WinActive("[Title:Caja]") Then ;Check if POS Window is currently active. $sText = ControlGetText("Caja", "", "ThunderRT6TextBox21") ;Get data from "TOTAL Textbox" If $sText <> $sTextOld Then ;Beep if "TOTAL Textbox" value changes If Number(StringReplace(
    1 point
  20. Subz

    List tags or array

    Didn't really understand what you were asking, did you mean something like: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <GUIListView.au3> #include <WindowsConstants.au3> Local $iIndex, $sAction, $sCmd GUICreate("Form1", 332, 267, 192, 124) Local $idListview = GUICtrlCreateListView("Query|Ping|Reset", 10, 10, 250, 175) GUICtrlCreateListViewItem("server1qry|server1ping|service1reset", $idListview) GUICtrlCreateListViewItem("server2qry|server2ping|service2reset&qu
    1 point
  21. To check the values of $sTextOld and $sText before comparing, include some ConsoleWrite's. The <> operator itself should not be the problem. ; [...] $sTextOld = '' While True If WinActive("[Title:Caja]") Then ; Check if POS Window is currently active. $sText = ControlGetText("Caja", "", "ThunderRT6TextBox21"); Get data from "TOTAL Textbox" ConsoleWrite("-------------------------------------------------" & @CRLF) ConsoleWrite("TextOld = " & $sTextOld & @CRLF) Cons
    1 point
  22. Make sure you run in in 64-bit mode #AutoIt3Wrapper_UseX64=y ShellExecute("sysdm.cpl")
    1 point
  23. While ControlCommand("Title","","Button1","IsEnabled","") = 0 Sleep(250) Wend
    1 point
  24. Pls. have a look into the help file system, there you will also find an example: https://www.autoitscript.com/autoit3/docs/libfunctions/_FileListToArrayRec.htm
    1 point
  25. Hi, I need to admit that I cannot fix it The x64 works only if launch by Scite. perhaps the pb comes from a X86 process trying to retrieve info from a X64 process. This does not explain why the script launch directly by AutoIt3_x64.exe it does work as launch by Scite in X64 mode With the propose regression fix we will behave as the fix introduced In 2010 #1664 ticket Perhaps more experience developper can find a solution. Cheers
    1 point
  26. So we are waiting.
    1 point
  27. Kanashius

    Wallpaper UDF

    This UDF can be used to draw at the Desktop Wallpaper (Windows 8+) with GDI+ without using files. The example runs with 60-120fps at my machine, so the speed is acceptable. When the script exits, the original wallpaper is restored. Have fun :). PS: The UDF uses the window between the background and the icons, so it could be used to add an own child window at the desktop. Just look at the begin of __Wallpaper_Startup ($hWorkerW). Example: WallpaperUDF.au3 WallpaperUDF Example.au3
    1 point
  28. @Danp2 I used _WD_FindElement and _WD_ElementAction($sSession, $divExpand, 'click') to click the "Customised" PrintScaleType <option> since a shadow-root is involved here. It worked, expanded the <iron-collapse> to expose and made the "Print Scaling factor" <input> element visible. It even set the focus (cursor) onto the input element. Then, I was able to change the input by using ElementAction "CLEAR" and "VALUE". Thank you! 🙂 @mLipok I do not have one. If it helps, I will get round to creating one?
    1 point
  29. You are using the wrong handle. Winlist already gave you the handle, so there is no need to try to get the handle again. With the right handle your code will work, but browsers do not like to show changed titles, so even when the autoit code works, you will probably not see a changed title. If StringInStr($aList[$i][0], 'Eminem | Home') Then $hWnd = $aList[$i][1] MsgBox(Default, "WinGetTitle", WinGetTitle($hWnd, "")) WinSetTitle($hWnd, '', 'test test') ;But why doesn't it work? If @error then MsgBox(Default, Defau
    1 point
  30. @ZulYou can't interact with an element if is isn't visible, so you will need to deal with that before proceeding -- ; expand "more settings" Local $moreSettings_SR = _WD_GetShadowRoot($sSession, $_WD_LOCATOR_ByCSSSelector, "#container > print-preview-more-settings", $printPreviewSidebar_SR) Local $divExpand = _WD_FindElement($sSession, $_WD_LOCATOR_ByCSSSelector, "div", $moreSettings_SR, Default, True) _WD_ElementAction($sSession, $divExpand, 'click') Then you need to choose the "Custom" entry from the Select element to make the inp
    1 point
  31. Thank you for the geeky welcome 😉 Thank you @Danp2 as well for enlightening that the ElementOptionSelect method isn't supported in shadow root and chipping in with ideas. Appreciate it guys. I've incorporated the code changes as suggested and managed to get stuff to work for Print Destination, Paper Size and Scaling Type. I've hit a snag on the Scale Percentage as it is an input (type=number) and not a dropdown list. I tried to use SetElementValue to set the Scale Percentage input box it seems to not work. Probably I'm not doing it right? I'll attached the code snippet below (b
    1 point
  32. Use error checking for example: _FileReadToArray($vFile, $aFile) If @Error Then Exit MsgBox(4096, "Error", "Error reading file to Array")
    1 point
  33. No sarcasm intended... Really. In all seriousness, it isn't a function that I use regularly so I had forgotten about that restriction. It looks like there had been some recent movement on this over in the Chromium camp, so maybe it will be resolved before too much longer.
    1 point
  34. Version 1.1.0 released! Most important change is a fix to the byte padding, that previously made DllStructEx useless with unions and nested structs with external calls! 🎊
    1 point
  35. Try This: #include <File.au3> $s = FileRead("mp3.txt") $aReadUrl = StringRegExp($s, "(?:http).+(?=\w\/)+[!-~]+\.\w{3}", 3) If IsArray($aReadUrl) Then ;~ MsgBox(0, StringRegExpReplace($aReadUrl[0], ".*\/", ""), $aReadUrl[0]) InetGet($aReadUrl[0], StringRegExpReplace($aReadUrl[0], ".*\/", ""), "", 2) ;~ _ArrayDisplay($aReadUrl, "File Url List") EndIf
    1 point
  36. Search the help file for the term #forceref.
    1 point
  37. Set Criteria1 to "<>0" (including the ")
    1 point
  38. No. You only have to copy the interpreter AutoIt3.exe (or AutoIt3_x64.exe) to the respective computer. With that, you can start .au3 (or .a3x) files. @dersiniar Edit : The call can be made e.g. via a .cmd or a desktop shortcut. You can even pass command line parameters. Example (.cmd) : @echo off CLS cd %~dp0 Start "Info" /wait "AutoIt3.exe" "myscript.au3" -s -q
    1 point
  39. here it is.. auto-resize text : (I used a few line of code from Code128Auto.au3) #include <File.au3> #include <GUIConstantsEx.au3> #include <GDIPlus.au3> #include <StringSize.au3> #include "Zint.au3" $LabelWidth = 29 $LabelLenght = 90 $FontSize = 24 Global $pZB = ZBarcode_Create() If @error Then Exit MsgBox(16, "ERROR", "An error occured!" & @CRLF & "Error code = " & @error, 10) ;~ Global $t_zint_symbol = DllStructCreate($tag_zint_symbol, $pZB), $sText = "12340984576456789 ;-)" ;~ Global
    1 point
  40. ShellExecute(@ScriptDir & "\jvm\bin\java.exe","-jar " & @ScriptDir & "\learnLambda-1.0.jar", "", "", @SW_HIDE); or Run(@ComSpec & " /c " & ".\jvm\bin\java.exe -jar " & ".\learnLambda-1.0.jar", "", @SW_HIDE); Edit: @SW_HIDE belongs in the 5th parameter of ShellExecute.
    1 point
  41. Here is a program I have been working on since 2011, off and on. It started out in AutoIt, then I went through a C++ phase and converted the entire thing to C++ with wxWidgets, only to convert it back to my one true love (AutoIt) after only a few revisions. I tried to credit authors in the code whenever I pulled examples from the forums, but I apologize if I missed anyone. Simple IP Config This program allows you to view and change your local IP address, subnet mask, gateway, and DNS servers for any network adapter without having to click through all of the Windows dialogs and set
    1 point
  42. VIP

    Image Search UDF

    Version 2021.8.30.2

    6,896 downloads

    Use MouseClick() need: #RequireAdmin Dll is already integrated in UDF ! ; #INDEX# =============================================================== ; Title .........: ImageSearch ; AutoIt Version : 3.x ; Language ......: English ; Description ...: Check image Appears or Not and Return the position of an image on the desktop ; Author(s) .....: Dao Van Trong - TRONG.LIVE ; ======================================================================= ; #CURRENT# ============================================================= ; _ImageSearch ; _ImageSearch_Area ; _ImageSearch
    1 point
  43. DevMode

    ISN AutoIt Studio

    Hello I'm using isn autoit studio for a long time and tried to add some plugins, but the existing SDK is very limited So I modified the original code I added linking external files with the project I know that the file name appears in the project tree, but the file is not found in the project folder ADD Item in Context Menu for add new Linker Global $TreeviewContextMenu_Item_Linker = _GUICtrlCreateODMenuItem("Linker", $TreeviewContextMenu_Item8, $smallIconsdll, 998) ;Projektbaum aktualisieren add Event in _InputCheck Case $Treevie
    1 point
  44. pixelsearch

    Display png images

    Hi everybody I would like to thank UEZ for the great help he brought us concerning what follows : When I right click a row in the following ListView, the corresponding image should be displayed in a Splash Window and disappear as soon as the mouse moves. But as you can see below, nothing happens when the image is .png type (as stated in the help file, topics SplashImageOn and GUICtrlCreatePic) Now see how it works fine with jpg, gif or bmp : Gladly UEZ indicated not 1, but 2 different ways to solve this, allowing us to display png files using GDI+ Let's start with
    1 point
  45. water

    Task Scheduler

    Version 1.6.0.1

    1,110 downloads

    Extensive library to control and manipulate Microsoft Task Scheduler Service. Please check this site for the implementation status! Please check the History.txt file in the archive for the changelog. Please check the WIKI for details about how to use the UDF. BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort KNOWN BUGS (last changed: 2021-02-03) None Things to come (last changed: 2021-02-03) None
    1 point
  46. WHAT : is .NET Common Language Runtime (CLR) Framework The Common Language Runtime (CLR) is a an Execution Environment . Common Language Runtime (CLR)'s main tasks are to convert the .NET Managed Code to native code, manage running code like a Virtual Machine, and also controls the interaction with the Operating System. As part of Microsoft's .NET Framework, the Common Language Runtime (CLR) is managing the execution of programs written in any of several supported languages. Allowing them to share common object-oriented classes written in any of the languages. HOW : To access th
    1 point
  47. [BUGFIX VERSION] - 25 Jun 13 Fixed: A bug in AutoIt v3.3.6.1 could crash the UDF under certain circumstances - other releases do not show the same error. Small code change to prevent error in any release. Thanks to DatMCEyeBall for finding it. New UDF below and in zip. Previous versions: A recent topic dealt with the problem of the dotted focus lines which appear around controls - the most obvious ones are around sliders - and how to get rid of them. A bit of experimentation showed that these focus lines do not always appear. If there is a button in the GUI, th
    1 point
  48. Thanks mLipok! It worked for me too Adding an exception on Windows running the default Microsoft AV: Open Windows Defender Security Center. Click on the Virus & threat protection icon. Click on the link Virus & threat protection settings. Scroll down to Exclusions and click on the link Add or remove exclusions. Click on the button Add an exclusion. In the drop down menu select Folder. Navigate to "C:\Users\usrname\AppData\Local\AutoIt v3\Aut2exe". Click on the button Select folder.
    1 point
  49. DriveGet... "Removable"
    1 point
  50. I have built a pretty cool, chat bot that communicates like an uneducated 5 year old kid. It is pretty cool though. check it out. I hope you guys like it. after you chat with it, let me know what you think. Chat Bot.au3
    1 point
×
×
  • Create New...