Zvend Posted April 6, 2022 Posted April 6, 2022 @Jon So I ve been upgrading my softwares to v3.3.16.0 and nothing was working anymore. I am using couple of C Dlls within my autoit scripts. For this I need Pointer and structs logic. And whenever I am working in the address area i only use hex values. But now this is breaking everything. Here is my test: ;~ AutoIt v3.3.14.5 Const $OFFSET = -0x46 Local $pSomePointer = Ptr(0x3100000 + $OFFSET) ConsoleWrite("Pointer is: " & $pSomePointer & @CRLF) Out: Pointer is: 0x030FFFBA (Correct hex arithmetic) Newest Version: ;~ AutoIt v3.3.16.0 Const $OFFSET = -0x46 Local $pSomePointer = Ptr(0x3100000 + $OFFSET) ConsoleWrite("Pointer is: " & $pSomePointer & @CRLF) Out: Pointer is: 0x03100046 (Incorrect hex arithmetic) Will there be any fix soon for this? Thank you for reading Zvend Utils-For-AutoIt: C++ like Vectors in plain AutoIt Flag Arrays. (Use Booleans in a very efficient storage container with endless Indecies.) Prefixed Arrays. Name in progress. Auto resized Arrays for ID values. 0 reserved for its size. Callback Arrays. Name in progress. 2D Array for event based message callbacks. Dll. Load Dlls from a BinaryString and use its functions. Checks for Dll Validation (PE File Formats). Integer. Not sure about the name either. Simple Functions to convert Integers in different sized. UnitTest. A simple UDF providing UnitTests. Adjusted for github workflows. (Check repo)
Nine Posted April 6, 2022 Posted April 6, 2022 that works : Const $OFFSET = -(0x46) Local $pSomePointer = Ptr(0x3100000 + $OFFSET) ConsoleWrite("Pointer is: " & $pSomePointer & @CRLF) “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
Zvend Posted April 6, 2022 Author Posted April 6, 2022 yes that works for hardcoded offsets. i have a function in my Dll that passes me offsets which can be positive and negative. If $nOffset >= 0 Then ConsoleWrite("Offset is positive." & @CRLF) Else ConsoleWrite("Offset is negative." & @CRLF) EndIf I dont want to go through 42k lines and test everything if it is correct, bcs for me this is clearly a bug Utils-For-AutoIt: C++ like Vectors in plain AutoIt Flag Arrays. (Use Booleans in a very efficient storage container with endless Indecies.) Prefixed Arrays. Name in progress. Auto resized Arrays for ID values. 0 reserved for its size. Callback Arrays. Name in progress. 2D Array for event based message callbacks. Dll. Load Dlls from a BinaryString and use its functions. Checks for Dll Validation (PE File Formats). Integer. Not sure about the name either. Simple Functions to convert Integers in different sized. UnitTest. A simple UDF providing UnitTests. Adjusted for github workflows. (Check repo)
pixelsearch Posted April 6, 2022 Posted April 6, 2022 Could it be related to the fix concerning hexa leading spaces that @Jon solved in this post ? He needs to read the current thread because though -(0x46) works, it really needs to be fixed. Zvend 1
Moderators Melba23 Posted April 7, 2022 Moderators Posted April 7, 2022 Hi, Please open a bug report in Trac - that way the Devs will be sure to see it. M23 Zvend 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Zvend Posted April 7, 2022 Author Posted April 7, 2022 10 hours ago, Melba23 said: Hi, Please open a bug report in Trac - that way the Devs will be sure to see it. M23 I removed the solution mark and rather comment here, that I did open a ticket. If the ticket got accepted and fixed I will mark this as solved. Thanks for the advice, I absolutely did not see the ticket section. argumentum 1 Utils-For-AutoIt: C++ like Vectors in plain AutoIt Flag Arrays. (Use Booleans in a very efficient storage container with endless Indecies.) Prefixed Arrays. Name in progress. Auto resized Arrays for ID values. 0 reserved for its size. Callback Arrays. Name in progress. 2D Array for event based message callbacks. Dll. Load Dlls from a BinaryString and use its functions. Checks for Dll Validation (PE File Formats). Integer. Not sure about the name either. Simple Functions to convert Integers in different sized. UnitTest. A simple UDF providing UnitTests. Adjusted for github workflows. (Check repo)
Moderators Melba23 Posted April 7, 2022 Moderators Posted April 7, 2022 Zvend, No problem - thanks for bringing it to our attention. M23 Zvend 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now