Quote:
I"m trying to figure out how to pass Lbutton and Rbutton clicks (and holds) to PPJoy button 1 and 2 holds. I tried.
LButton::
PPJ_SetButton(1,1) ; Set Button 1 True
Keywait, LButton ; Wait for button to be released
PPJ_SetButton(1,0) ; Set Button 1 False
Return
RButton::
PPJ_SetButton(2,1) ; Set Button 1 True
Keywait, LButton ; Wait for button to be released
PPJ_SetButton(2,0) ; Set Button 1 False
Return
But that just hijacked the mouse buttons, and they wouldn't work at all (which made closing the script and getting my mouse buttons back fun). I modified these lines off the example earlier with the a button. Can't figure out what it needs to be. I guess maybe it did work, but I still need the mouse button click to act as a mouse click.
Figured out part of the problem. I changed:
LButton::
MouseClick, left,,,,, D ; Left click Down
PPJ_SetButton(1,1) ; Set Button 1 True
Keywait, LButton ; Wait for button to be released
MouseCLick, left,,,,, U ; Left Click Up
PPJ_SetButton(1,0) ; Set Button 1 False
Return
Which works mostly for my application. I'm having problems with a non-ahk part of my setup now. When I click and hold the physical mouse button, it works as it should, but when I use another program to send a held mouse click, it behaves as if it only clicks and releases.