Doing an action without pressing 1 key

Ask gaming related questions (AHK v1.1 and older)
bugsbunny
Posts: 2
Joined: 13 Aug 2018, 04:28

Doing an action without pressing 1 key

13 Aug 2018, 05:05

hello,

complete noob in ahk here some days ago i started reading a bit about ahk and now i try to make a script for repetitive actions that doesnt harm the competitive spirit of the game

im not good at expressing my intention i hope some ppl will get what i mean.
In Rainbow Six are repetitive actions taking place every now and then.
like taking Rook armor for instance.

I want to write an ahk script that detects when armor is grabable and takes it without pressing a button.

i wanna use this function: https://autohotkey.com/boards/viewtopic.php?f=6&t=17834

("Although named FindText, it also works equally well at finding graphics. Other have suggest it should be called "FindMonochromePattern" credit to c4p on ahk)

for a reliable fast way to recognize when armor is placed in grabable range...




and thats my logic:

scan for the word armor and
when the Word is found on screen
press button 4 seconds




myb someone can give me tips how i can get started i thought about the if expression


if the "image"is found
(i wanna use the image put into string function for that
https://autohotkey.com/boards/viewtopic.php?f=6&t=17834 )
do Action (holding a key for example)
else return.


im glad about any input or help always willing to learn.

one question i have is how can i use the funtion i posted to scan only a certain area of my screen
i know how its done with imagesearch but i dont know how u do it with the functions i posted .
The script says :
So the search range is (X-W, Y-H)-->(X+W, Y+H).

but where do i set it up after i used the script to put my image into a string
i cant find the editable parameters.



i dont want to promote cheating i think its not harmfull to automate dull actions that have no direct impact on the competitive spirit of the game

also im happy if u can link me to sites were i can learn gaming related ahk ...
i dont really no how to start atm im just reading the documentation and read some scripts with ???? in my head...

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 55 guests