Rebinding Mouse clicks Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Mouse problem

Rebinding Mouse clicks

21 Mar 2017, 02:57

Can somebody help me fix my code, I can't seem to get Touhou to work with mouse controls. I tried to make M1 into Z and M2 into C but nothing works, can somebody help out here with what is going wrong with this.

Also, I'm not looking to make the character move with the mouse just the firing and use of bombs with Z and C

Code: Select all

#MaxHotkeysPerInterval 100
SetKeyDelay [, 1, 50, -1]
$lbutton::
Loop
{
if not GetKeyState("lbutton", "P")
break
Send, z
Sleep, 50
}
return
Mouse problem

21 Mar 2017, 09:23

Right, I got that so the code would then be

Code: Select all

#MaxHotkeysPerInterval 100
SetKeyDelay , 1, 50, -1
$lbutton::
Loop
{
if not GetKeyState("lbutton", "P")
break
Send, z
Sleep, 50
}
return
I'd really like to be able to get this to work on my own script, I used your script there UCR and it works with Touhou games + other bullet hell genre games, I'm just hoping to have it more simplified in one script directly what I need, I won't be needing to replace or need the whole UI that comes with UCR, Good work there though!
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Rebinding Mouse clicks  Topic is solved

21 Mar 2017, 09:46

You do not use SendPlay, so you do not need the last -1 in your SetKeyDelay

What "does not work" about the script? The keys do not do anything in game?
Do any AHK hotkey remappings work, or is it something about your loop?

Did you try running the AHK script as admin?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 119 guests