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,134,717
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Calendar | Stats | Ranks | Online users | Search
04-26-18 08:47 PM
Guest: Register | Login

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

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
NO JERRY! I'M THE ONE WHO SUUUUUUUUUCKS!
Kafuka's resident sack of shit
Level: 109


Posts: 3870/4319
EXP: 13631067
Next: 328578

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

Last post: 46 days
Last view: 6 days



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



Black 2 Survivors

Youtube|Twitch|Layout in Limbo




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


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

Page rendered in 0.033 seconds. (593KB of memory used)
MySQL - queries: 55, rows: 451/0, time: 0.022 seconds.