Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
;Non-Intrusive Autoclicker, by Shadowspaz ;v2.1.1 #InstallKeybdHook #SingleInstance, Force DetectHiddenWindows, on SetControlDelay -1 SetBatchLines -1 Thread, Interrupt, 0 SetFormat, float, 0.0 toggle := false inputPresent := false mouseMoved := false settingPoints := false clickRate := 20 Mode := 0 pmx := 0 pmy := 0 totalClicks := 1 currentClick := 1 TempRateCPS := 50 TempRateSPC := 1 setTimer, checkMouseMovement, 10 setTimer, setTip, 5 TTStart = %A_TickCount% while (A_TickCount - TTStart < 5000 && !toggle) { TooltipMsg = Press (Alt + Backspace) to toggle autoclicker `n Press (Alt + Dash(-)) for options } TooltipMsg = !-:: IfWinNotExist, NIAC Settings { if settingPoints { toggle := false settingPoints := false actWin := TooltipMsg = } prevTC := totalClicks Gui, Show, w210 h160, NIAC Settings Gui, Add, Radio, x25 y10 gActEdit1 vmode, Clicks per second: Gui, Add, Radio, x25 y35 gActEdit2, Seconds per click: Gui, Add, Edit, x135 y8 w50 Number Left vtempRateCPS, % tempRateCPS Gui, Add, Edit, x135 y33 w50 Number Left vtempRateSPC, % tempRateSPC Gui, Add, Text, x30 y65, Total click locations: Gui, Add, Edit, x133 y63 w50 Number Left vtotalClicks, % totalClicks Gui, Add, Text, x0 w210 0x10 Gui, Add, Text, x27 y100, (Default is 50 clicks per second) Gui, Add, Button, x60 y117 gReset, Reset Gui, Add, Button, x112 y117 Default gSetVal, Set Gui, Font, s6 Gui, Add, Text, x188 y151, v2.1.1 if mode < 2 { GuiControl,, Mode, 1 GoSub, ActEdit1 } else { GuiControl,, Seconds per click:, 1 GoSub, ActEdit2 } } else WinActivate, NIAC Settings return ActEdit1: GuiControl, Enable, tempRateCPS GuiControl, Disable, tempRateSPC GuiControl, Focus, tempRateCPS Send +{End} return ActEdit2: GuiControl, Enable, tempRateSPC GuiControl, Disable, tempRateCPS GuiControl, Focus, tempRateSPC Send +{End} return Reset: toggle := false actWin := setTimer, autoClick, off currentClick := 1 GuiControl, Disable, Reset Gui, Font, s8 Gui, Add, Text, x54 y145, Click locations reset. return SetVal: Gui, Submit if mode < 2 clickRate := tempRateCPS > 0 ? 1000 / tempRateCPS : 1000 else clickRate := tempRateSPC > 0 ? 1000 * tempRateSPC : 1000 if totalClicks != %prevTC% { toggle := false actWin := setTimer, autoClick, off } GuiClose: if toggle { EmptyMem() setTimer, autoclick, %clickRate% } Gui, Destroy return !Backspace:: IfWinNotExist, NIAC Settings ; Only functional if options window is not open { toggle := !toggle if toggle { setTimer, setTip, 5 if (!actWin) ; actWin value is also used to determine if checks are set. If they aren't: { settingPoints := true ; Used to allow break if options are opened Loop, %totalClicks% { if totalClicks < 2 TooltipMsg = Click the desired autoclick location. else TooltipMsg = Click the location for point %A_Index%. toggle := false Keywait, LButton, D Keywait, LButton if !settingPoints ; Opening options sets this to false, breaking the loop return TooltipMsg = newIndex := A_Index - 1 MouseGetPos, xp%newIndex%, yp%newIndex% WinGet, actWin, ID, A } settingPoints := false } else ; If values ARE set (actWin contains data): { settingPoints := false setTimer, setTip, 5 TTStart = %A_TickCount% TooltipMsg = ##Autoclick enabled. } toggle := true EmptyMem() setTimer, autoclick, %clickRate% } else { setTimer, setTip, 5 TTStart = %A_TickCount% TooltipMsg = ##Autoclick disabled. setTimer, autoclick, off } } return setTip: StringReplace, cleanTTM, TooltipMsg, ## Tooltip, % cleanTTM if (InStr(TooltipMsg, "##") && A_TickCount - TTStart > 1000) TooltipMsg = if TooltipMsg = { Tooltip setTimer, setTip, off } return checkMouseMovement: if (WinExist("ahk_id" . actWin) || !actWin) ; If NIAC is clicking in a window, or the window isn't set, it's all good. { MouseGetPos, tx, ty if (tx == pmx && ty == pmy) mouseMoved := false else mouseMoved := true pmx := tx pmy := ty } else ; Otherwise, the target window has been closed. { Msgbox, 4, NIAC, Target window has been closed, `n Do you want to close NIAutoclicker as well? IfMsgBox Yes ExitApp else { actWin := toggle := false } } return autoclick: if !(WinActive("ahk_id" . actWin) && (A_TimeIdlePhysical < 50 && !mouseMoved)) { cx := xp%currentClick% cy := yp%currentClick% ControlClick, x%cx% y%cy%, ahk_id %actWin%,,,, NA currentClick := % Mod(currentClick + 1, totalClicks) } return ~*LButton up:: return #If WinActive("ahk_id" . actWin) && toggle $~*LButton:: MouseGetPos,,, winClick if winClick = %actWin% setTimer, autoclick, off Send {Blind}{LButton Down} return $~*LButton up:: IfWinNotExist, NIAC Settings setTimer, autoclick, %clickRate% Send {Blind}{LButton Up} return EmptyMem() { pid:= DllCall("GetCurrentProcessId") h:=DllCall("OpenProcess", "UInt", 0x001F0FFF, "Int", 0, "Int", pid) DllCall("SetProcessWorkingSetSize", "UInt", h, "Int", -1, "Int", -1) DllCall("CloseHandle", "Int", h) }
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
Decentralized Moneys
43 min ago | 0.42 KB
120 million in 5 years
1 hour ago | 0.12 KB
December smells like money
1 hour ago | 0.07 KB
Crypto Liquidity Pools
2 hours ago | 0.47 KB
Trustless Finance
2 hours ago | 0.51 KB
The Lunar Kitsune - Yohana Tsukiko
3 hours ago | 21.38 KB
Crypto profits are insane
3 hours ago | 0.12 KB
Decentralized Money
3 hours ago | 0.42 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!