0% found this document useful (0 votes)
551 views8 pages

Ghost Clicker 0.1

This document contains the code for an auto clicker program with the following key capabilities: 1. Allows the user to set up to 10 click positions and number of clicks for each position. 2. Provides start and stop buttons to control the clicking process. 3. Can be set to continuously loop through the click positions.

Uploaded by

Ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
551 views8 pages

Ghost Clicker 0.1

This document contains the code for an auto clicker program with the following key capabilities: 1. Allows the user to set up to 10 click positions and number of clicks for each position. 2. Provides start and stop buttons to control the clicking process. 3. Can be set to continuously loop through the click positions.

Uploaded by

Ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

;Written By: Hellbent aka CivReborn

#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

Gui,Add,Button,x10 y10 w80 h20 gSet_Location,Set Window


Gui,Add,Edit,x+10 w200 h20 vTarget_Window ,% Target_Window
Gui,Add,Button,x+10 w80 h20 gUpdate_Window,Update

Gui,Add,Text,x10 ,Click Delay:


Gui,Add,Edit,x+10 w100 h20 vClick_Delay gSubmit_All
Gui,Add,CheckBox,x+20 vLoop_Clicker gSubmit_All,Loop

Gui,Add,Checkbox,x10 w40 vClicker_1 gSubmit_All,#1


Gui,Add,Button,x+10 w80 h17 gSet_Pos_1,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_1,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_1 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_2 gSubmit_All,#2


Gui,Add,Button,x+10 w80 h17 gSet_Pos_2,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_2,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_2 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_3 gSubmit_All,#3


Gui,Add,Button,x+10 w80 h17 gSet_Pos_3,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_3,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_3 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_4 gSubmit_All,#4


Gui,Add,Button,x+10 w80 h17 gSet_Pos_4,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_4,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_4 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_5 gSubmit_All,#5


Gui,Add,Button,x+10 w80 h17 gSet_Pos_5,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_5,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_5 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_6 gSubmit_All,#6


Gui,Add,Button,x+10 w80 h17 gSet_Pos_6,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_6,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_6 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_7 gSubmit_All,#7


Gui,Add,Button,x+10 w80 h17 gSet_Pos_7,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_7,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_7 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_8 gSubmit_All,#8


Gui,Add,Button,x+10 w80 h17 gSet_Pos_8,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_8,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_8 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_9 gSubmit_All,#9


Gui,Add,Button,x+10 w80 h17 gSet_Pos_9,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_9,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_9 gSubmit_All

Gui,Add,Checkbox,x10 w40 vClicker_10 gSubmit_All,#10


Gui,Add,Button,x+10 w80 h17 gSet_Pos_10,Set Pos
Gui,Add,Edit,x+10 w70 h17 vPos_10,
Gui,Add,Text,x+10 ,Number Of Clicks:
Gui,Add,Edit,x+10 w70 h17 number vNo_Clicks_10 gSubmit_All

Gui,Add,Button,x10 w120 h30 gHide_Window, Hide Window


Gui,Add,Button,x+10 w120 h30 gShow_Window,Show Window
Gui,Add,Button,x+10 w120 h30 ,

Gui,Add,Button,x10 w120 h30 ,


Gui,Add,Button,x+10 w120 h30 ,
Gui,Add,Button,x+10 w120 h30 ,

Gui,Add,Button,x10 w120 h30 gStart_Clicker,Start


Gui,Add,Button,x+10 w120 h30 gStop_Clicker,Stop
Gui,Add,Button,x+10 w120 h30 gReload,Reload
Gui,Add,Text,cRed x10 ,Start = numpad 1
Gui,Add,Text,cBlue x+10 , Stop = Numpad 2
Gui,Add,Text,cRed x10 , Hide Window = Numpad 3
Gui,Add,Text,cBlue x+10 ,Show Window = Numpad 4

Gui,Show,w400 h440,Ghost Clicker 0.1


return
GuiClose:
try
{
WinShow,%Target_Window%
}
ExitApp
Hide_Window:
NumPad3::
if(Target_Window!=null)
WinHide,%Target_Window%
return
Show_Window:
NumPad4::
WinShow,%Target_Window%
return

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
}

ControlClick,x%X1% y%Y1%,%Target_Window%,,,, NA x%X1% y%Y1%


Sleep,
%Click_Delay%
}
}
if(Clicker_2==1)
{
Loop, % No_Clicks_2
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X2% y%Y2%,%Target_Window%,,,, NA x%X2% y%Y2%


Sleep,
%Click_Delay%
}
}
if(Clicker_3==1)
{
Loop, % No_Clicks_3
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X3% y%Y3%,%Target_Window%,,,, NA x%X3% y%Y3%


Sleep,
%Click_Delay%
}
}
if(Clicker_4==1)
{
Loop, % No_Clicks_4
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X4% y%Y4%,%Target_Window%,,,, NA x%X4% y%Y4%


Sleep,
%Click_Delay%
}
}
if(Clicker_5==1)
{
Loop, % No_Clicks_5
{
if(Stop==1)
{

Clicker_Is_On:=0
return
}

ControlClick,x%X5% y%Y5%,%Target_Window%,,,, NA x%X5% y%Y5%


Sleep,
%Click_Delay%
}
}
if(Clicker_6==1)
{
Loop, % No_Clicks_6
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X6% y%Y6%,%Target_Window%,,,, NA x%X6% y%Y6%


Sleep,
%Click_Delay%
}
}
if(Clicker_7==1)
{
Loop, % No_Clicks_7
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X7% y%Y7%,%Target_Window%,,,, NA x%X7% y%Y7%


Sleep,
%Click_Delay%
}
}
if(Clicker_8==1)
{
Loop, % No_Clicks_8
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X8% y%Y8%,%Target_Window%,,,, NA x%X8% y%Y8%


Sleep,
%Click_Delay%
}
}
if(Clicker_9==1)
{
Loop, % No_Clicks_9
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X9% y%Y9%,%Target_Window%,,,, NA x%X9% y%Y9%


Sleep,
%Click_Delay%
}
}
if(Clicker_10==1)
{
Loop, % No_Clicks_10
{
if(Stop==1)
{

Clicker_Is_On:=0

return
}

ControlClick,x%X10% y%Y10%,%Target_Window%,,,, NA x%X10% y%Y10%


Sleep,
%Click_Delay%
}
}
}
}
}
}
Get_Click_Pos(ByRef X,ByRef Y)
{
isPressed:=0,i:=0
Loop
{
Left_Mouse:=GetKeyState("LButton")
MouseGetPos,X,Y,
ToolTip,Left Click Your Target Location To Set It
`n`nCurrent Location: `nX = %X%`nY = %Y%
if(Left_Mouse==False&&isPressed==0)
isPressed:=1
else if(Left_Mouse==True&&isPressed==1)
{
MouseGetPos,X,Y,
ToolTip,
break
}
}
}
Set_Window(Target_Window)
{
isPressed:=0,i:= 0
Loop
{
Left_Mouse:=GetKeyState("LButton")
WinGetTitle,Temp_Window,A
ToolTip,Left Click on the target window twice to set `n`n
Current Window: %Temp_Window%
if(Left_Mouse==False&&isPressed==0)
isPressed:=1
else if(Left_Mouse==True&&isPressed==1)
{
i++,isPressed:=0
if(i>=2)
{
WinGetTitle,Target_Window,A
ToolTip,
break
}
}
}
return Target_Window
}
*~LButton::
if(Clicker_Is_On==1)
{
Click,
}
return

*^Esc::
try
{
WinShow,%Target_Window%
}
ExitApp

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy