The issue I have when I try to do the conversion myself is the line where data gets bit shifted into a variable. Something changed with the syntax that makes it not work anymore.
An example of this can be found here:
viewtopic.php?t=115894
Unfortunately, the author managed to solve the problem but failed to share the solution, so I still don't understand how to address the problem.
Would someone please explain how bit shifting has changed between v1 and v2 to break this code and whether there are any functions for reading and writing to memory that have already been converted?lightright wrote: ↑09 Apr 2023, 20:44Thank you for inspiring me with the post you linked to, I have created a working function based on it.
My use case is that I am trying to set the cursor position in the game Arcanum. The cursor is drawn directly onto the screen and is not a hardware cursor. The game uses relative movements to reposition the cursor, so performing an absolute mouse movement with AutoHotkey is impossible. I found the memory which holds the mouse x/y position, and want to read the current position, write a new one, perform a click, then restore the old one. And I need to read and write to the game memory to do it.
Thank you.
[Mod edit: Moved topic to 'Gaming' subforum.]