Help making script for game

Ask gaming related questions (AHK v1.1 and older)
degiagiya
Posts: 1
Joined: 11 Jun 2018, 16:23

Help making script for game

11 Jun 2018, 16:36

Hey guys,

Basically, I saw there was a way to make a text document and make a script to bind a mouse button to a keyboard key. Basically, I want to connect my middle button on mouse (the scroll wheel click) to another key to use when I play fortnite. An example key I would want to use would be L. Can someone help me know what to type in the text file to get it to do this. Once I got that, I just download autohotkey and make the .txt file .ahk and to run it I just double click on the program. Is there anyone that could help me out and possibly confirm that that is what I need to do to get this to work. Also, if there is a way to do this without using autohotkey I am all ears. Also, I would like to not download a text file but just type it out myself that would be better. I just don't like downloading things unnecessarily.
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Help making script for game

14 Jun 2018, 03:35

Hallo,
try:

Code: Select all

MButton::l
I don't know if the script works in Fortnite
Try in an editor window first.
Shade4Real

Re: Help making script for game

16 Jun 2018, 00:37

Edited Rohwedder's script, this will have a higher chance of working. Sendinput is more accurate. Hope this helps any. :thumbup:

Code: Select all

$MButton::
Sendinput, a
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 135 guests