Points of Required Attention™
Acmlmboard 2 Released
Github/GIT | @acmlmboard | IRC: #abdev
Chatting Places
IRC: #kafuka | Discord

Affiliates
Super Mario Bros. X | Kuribo64
Views: 5,329,918
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Calendar | Stats | Ranks | Online users | Search
07-18-18 06:35 PM
Guest: Register | Login

0 users currently in msg db 'Computer Address',0xa | 1 guest | 1 bot

Main - msg db 'Computer Address',0xa - I Wrote a Shitty Script!
Next newer thread | Next older thread


Trelior
Posted on 08-03-15 07:47 AM Link | ID: 86797
Global Moderator
Kafuka's resident sack of shit
Level: 110


Posts: 3870/4391
EXP: 14222286
Next: 186600

Since: 01-02-12
From: Brookville, PA

Last post: 6 days
Last view: 8 hours



This is my first time doing any "real" programming since I got out of school in 2009. It's not fantastic by any stretch, but I'm kinda proud of it.

It's a dumb little script in ahk to assist my auto clicker for a clicker game I'm playing. I'm doing the clicking in an outside program because I attempted to just let the script do it all, but it doesn't see to like to work as quickly.

Anyway, code dump (It's shitty, I'm sorry)
coordmode, mouse, client
MsgBox,, Trel's Clicker, Commands`nNumPad1:Summon Boss`nNumPad2: Activate buffs`nNumPad3: Activate Gold Fountain`nNumPad7: Activate Away Mode`nNumPad8: Deactivate Away Mode`nNumPad9: Exit Script

Away = 0

/*
NumPad0::
mousegetpos, x, y
tooltip, %x% %y%
settimer, removetooltip, 5000
return
*/

NumPad1:: ;Summon Boss
click 1200, 50
return

NumPad2:: ;Activate buffs
click 450, 675, 0
click 650, 675, 0
click 750, 675, 0
return

NumPad3:: ;Activate Gold Fountain
click 550, 675, 0
return

NumPad7::
Away = 1
Gosub Auto

NumPad8::
Away = 0
Gosub Auto

Auto:
If (Away = 1)
{
click 550, 675, 0
Goto Auto
}
else
{
Return
}
Return

Numpad9::
MsgBox,, Trel's Clicker, Script terminated
Sleep 1000
ExitApp
Return



Youtube | Twitch | Stream Archive




Next newer thread | Next older thread
Main - msg db 'Computer Address',0xa - I Wrote a Shitty Script!


Acmlmboard v2.5.4 (5/28/2018)
© 2005-2018 Acmlm, Emuz, et al.

Page rendered in 0.025 seconds. (700KB of memory used)
MySQL - queries: 55, rows: 456/489, time: 0.017 seconds.