help with very simple script, do I need to read game memory or not?

Ask gaming related questions
mexican scientist
Posts: 4
Joined: 02 Jul 2020, 21:55

help with very simple script, do I need to read game memory or not?

02 Jul 2020, 22:26

I wrote a code that press the middle mouse button every 12 seconds; when the middle mouse button is pressed, the game activates "eagle eye" which is an enhanced vision for the game RDR2.
I am using a PS4 controller and keyboard interchangeably, and the "eagle eye" enhanced vision ends by either aiming with the mouse or aiming with the controller or by picking items with the mouse or with the controller.

Code: Select all

]::
loop {
sendinput, {MButton down}
sleep, 50
sendinput, {MButton up}
sleep, 12000
}
return
In my mind I have the code, but I don't know the syntax or if I would require reading the game's memory.

Code: Select all

if "eagle eye" is off AND user is not aiming, then wait 1 second and press MButton
Any help appreciated, thanks
Last edited by BoBo on 03 Jul 2020, 00:08, edited 1 time in total.
Reason: Moved to Gaming section.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 20 guests