Ghost Clicker 0.1
Ghost Clicker 0.1
#SingleInstance,Force
SetBatchLines, 200ms ;-1
SetMouseDelay,-1
Coordmode,Mouse,Client
SetTitleMatchMode, 2
SetControlDelay -1
DetectHiddenWindows On
i:=0,m:=0,j:=0
Target_Window:=null
Click_Delay:=0
Loop_Clicker:=1
global Stop:=0, Clicker_Is_On:=0
Gui,+AlwaysOnTop
Reload:
Reload
Set_Location:
Target_Window:=Set_Window(Target_Window)
GuiControl,,Target_Window,% Target_Window
return
Update_Window:
Gui,Submit,NoHide
return
Submit_All:
Gui,Submit,NoHide
return
Set_Pos_1:
Stop:=1
Get_Click_Pos(X1,Y1)
GuiControl,,Pos_1,%X1% %Y1%
return
Set_Pos_2:
Stop:=1
Get_Click_Pos(X2,Y2)
GuiControl,,Pos_2,%X2% %Y2%
return
Set_Pos_3:
Stop:=1
Get_Click_Pos(X3,Y3)
GuiControl,,Pos_3,%X3% %Y3%
return
Set_Pos_4:
Stop:=1
Get_Click_Pos(X4,Y4)
GuiControl,,Pos_4,%X4% %Y4%
return
Set_Pos_5:
Stop:=1
Get_Click_Pos(X5,Y5)
GuiControl,,Pos_5,%X5% %Y5%
return
Set_Pos_6:
Stop:=1
Get_Click_Pos(X6,Y6)
GuiControl,,Pos_6,%X6% %Y6%
return
Set_Pos_7:
Stop:=1
Get_Click_Pos(X7,Y7)
GuiControl,,Pos_7,%X7% %Y7%
return
Set_Pos_8:
Stop:=1
Get_Click_Pos(X8,Y8)
GuiControl,,Pos_8,%X8% %Y8%
return
Set_Pos_9:
Stop:=1
Get_Click_Pos(X9,Y9)
GuiControl,,Pos_9,%X9% %Y9%
return
Set_Pos_10:
Stop:=1
Get_Click_Pos(X10,Y10)
GuiControl,,Pos_10,%X10% %Y10%
return
Stop_Clicker:
numPad2::
Stop:=1
return
Start_Clicker:
numpad1::
Run_Auto_Clicker()
return
Run_Auto_Clicker()
{
global
Stop:=0
k:=1
Loop 10
{
if(Clicker_%k%=1&&Pos_%k%=null)
{
msgbox, set the position
return
}
k++
}
if(Target_Window!=null)
{
Clicker_Is_On:=1
if(Loop_Clicker==1)
{
Loop
{
if(Stop==1)
{
Clicker_Is_On:=0
return
}
if(Clicker_1==1)
{
Loop, % No_Clicks_1
{
if(Stop==1)
{
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
Clicker_Is_On:=0
return
}
*^Esc::
try
{
WinShow,%Target_Window%
}
ExitApp