Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Autohotkey Bot Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
guernica
Grandmaster Cheater Supreme
Reputation: 0

Joined: 20 Jun 2007
Posts: 1211

PostPosted: Mon Feb 01, 2010 8:58 pm    Post subject: Autohotkey Bot Script Reply with quote

I've been attempting to code a little bot in AutoHotkey for a private server of a certain game that I play. I decided to start with a really siMple function and then just adapt that for whatever I need once I get it working.

So, I started with Autoloot.

The Send command fucked things up pretty real bad. After a while of running the script, my attack and jump keys would just start sending like crazy, so I decided to look into PostMessage. Using PostMessage to replace Send, it's only sending the loot key to my chatbox when I go to type, but not picking up anything when I stand over items.

Help? here's my script...

Code:
SendMode Input

;Gui heading
Gui , Add, Text, w100 x0 y0 cBlue, FUNCTION
Gui , Add, Text, w100 x100 y0 cBlue, STATUS

;Auto Loot Gui
Gui , Add, Text, w100 x0 y15, Auto Loot(Insert)
AutoLootStatus:="OFF"
t=1
Gui , Add, Text, vAutoLootStatus w100 x100 y15, %AutoLootStatus%

;Show Gui
Gui , Show, w200 h100, Bot
Return

GuiClose:
ExitApp

;Auto Loot
AutoLootoff:
GuiControl ,, AutoLootStatus, Off
SetTimer , AutoLoot, off
t = 1
Return

AutoLooton:
GuiControl ,, AutoLootStatus, On
settimer , AutoLoot, 0
t = 0
Return

AutoLoot:
WinWaitActive , MxxxxSxxxx
MouseGetPos , , y
If (y < 570)
PostMessage , 0x100 , 0x5A,,, MxxxxSxxxx
Return

Insert::
If t = 1
GoTo , AutoLootOn
Else
GoTo , AutoLootOff
Return

_________________

georgezilka wrote:
im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ?
Back to top
View user's profile Send private message Send e-mail AIM Address
rooski
Master Cheater
Reputation: 0

Joined: 31 Oct 2007
Posts: 340
Location: Siberia

PostPosted: Wed Feb 03, 2010 12:18 pm    Post subject: Reply with quote

i think it has something to do with directinput, ive been having the same problem (send keys(on this forum)). i also tried this before , just with OCR and it couldnt even find any objects so HS was stopping me from botting. only bot i have seen that is succesful is NoNameBot , and that is a packet bot.

also were did u get your avatar from, who ever it is has made alot more and ive been looking for a specific one.
Back to top
View user's profile Send private message
guernica
Grandmaster Cheater Supreme
Reputation: 0

Joined: 20 Jun 2007
Posts: 1211

PostPosted: Sun Feb 07, 2010 2:55 am    Post subject: Reply with quote

but why would the game allow keys to be sent to the text fields but not to the gameplay, it makes no sense to me :/
eh still trying to figure it out

also, ask /b/ about the avatar

_________________

georgezilka wrote:
im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ?
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites