key with 2 actions

Ask gaming related questions (AHK v1.1 and older)
giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

key with 2 actions

Post by giusar » 08 Aug 2022, 07:49

theres a game where scroll down already has an action but i want to set to something else. how do i make it so that it wont do both actions when i scroll?

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 08 Aug 2022, 08:09

Welcome to this AutoHotkey forum! A hotkey would be good for that goal.

Code: Select all

WheelDown::
Send x
Return
Explained: Hotkeys

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 08 Aug 2022, 08:27

i mean that when i made a hotkey for it, the game will still do its original action and press the key that i set

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 08 Aug 2022, 08:37

Tips for games: viewtopic.php?f=7&t=11084

You can post your script below. Does it work in Notepad (as a test there)?

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 08 Aug 2022, 08:49

it works in notepad. its just to change scroll to left click

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 08 Aug 2022, 09:21

Code: Select all

WheelDown::Click
If it works in Notepad but not in your game, you can have a look at the tips.

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 08 Aug 2022, 09:23

i know but as i said the game will also do its original action

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 08 Aug 2022, 09:45

I know, but as I said, you can have a look at the tips.

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 08 Aug 2022, 10:08

they dont seem to work. its an offline game

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 08 Aug 2022, 16:41

Have you tried running as admin as noted there?

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 08 Aug 2022, 23:42

i did

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 09 Aug 2022, 03:49

Please post your revised script.

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 09 Aug 2022, 04:18

was there something to change? i didnt do anything to it

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 09 Aug 2022, 04:31

OK. So you are saying that with this script run as admin, your game processes both the wheel action and the click, right?

giusar
Posts: 8
Joined: 08 Aug 2022, 06:45

Re: key with 2 actions

Post by giusar » 09 Aug 2022, 04:46

yes. admin doesnt matter

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: key with 2 actions

Post by mikeyww » 09 Aug 2022, 05:00

I'm not sure why you would see both actions in this case, unless there is a software or hook conflict. One suggestion is to search the forum for your specific game, to see if others have already posted the solution. That's about all I know on this one! Best of luck.

Post Reply

Return to “Gaming Help (v1)”