tried 1{rbutton} and mouse_button_left but it didn't work
Code: Select all
mouse_button_left := "1"
mouse_button_right := "f1"
#If WinActive(GMWI) ;IfWinActive Gw2-64.exe
LButton::
sendinput {rbutton}
if GetKeyState("RButton","P") and !Action_Camera_RMB
allow_key("LButton","down")
else if Check_Cursor(active_cursor) = 0 {
allow_key(mouse_button_left,"down")
Action_Camera_LMB := true
}
else
allow_key("LButton","down")
return
LButton up::
sendinput {rbutton up}
if Action_Camera_LMB {
allow_key(mouse_button_left,"up")
Action_Camera_LMB := false
}
else
allow_key("LButton","up")
return