i want make when i press XButton2 automaticly shoot with LButton How!! i mean To Call LButton
Code: Select all
#NoEnv
SendMode Input
_auto := true
~LButton::autofire()
+LButton::_auto := ! _auto
F1::ExitApp
autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
Sleep 350
mouseXY(0, 22)
Sleep 0
}
else
break
} ;; loop
} ;; if
} ;; autofire()
mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
[oh if i change LButton To XButton2 the Script will not shooting in game because the shooting in game used LButton only and i need to Xbutton2 to call LButton to shooting]
[moved to Gaming-section] BoBo