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 


AutoPot without Keypress

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Unknovvn
How do I cheat?
Reputation: 0

Joined: 30 Aug 2013
Posts: 2

PostPosted: Fri Aug 30, 2013 6:05 am    Post subject: AutoPot without Keypress Reply with quote

Hello, As you all can see i am new here. I have been looking for something for a few days but i cant seem to find it or may be i am not typing the right thing when i am searching for it.

First off ..

I am newish to cheat engine, autoit .. but i am very interested to learn how to make a simple autopot which might seem easy for you guys so i am here for guidance. I dont want to be spoonfed i would rather be pointed to the right direction so i can learn how to do it.

OK..
So i have managed to make a autoit script with a hotkey to spam a key where my pot is. In this case i press 1 to spam the key 2 where i put my health pot.
Code:
Global $UnPaused
HotKeySet("1", "TogglePause")
HotKeySet("{ESC}", "Terminate")

While 1
    Sleep(100)
    ToolTip("Script is Paused",0,0)
WEnd

Func TogglePause()
    $UnPaused = NOT $UnPaused
    While $UnPaused
        ToolTip("Sending...",0,0)
        Send("{2}")
    WEnd

EndFunc

Func Terminate()
    Exit 0
EndFunc


What i want to achieve is to be able to use the healing item which i can find the address to using cheat engine.. And then get it to spam it until i tell it to stop without using any hotkey. So if i want to type in game i dont have to stop the script/bot.

I hope you guys understand. I dont know if its possible or not but i thought i would ask.
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Fri Aug 30, 2013 9:32 am    Post subject: Reply with quote

You could search for the boolean value that has the state of the chat box (open or closed). Then your script could check the state, and not send a keypress if it's open.

Would this work for you?
Back to top
View user's profile Send private message
Unknovvn
How do I cheat?
Reputation: 0

Joined: 30 Aug 2013
Posts: 2

PostPosted: Fri Aug 30, 2013 3:10 pm    Post subject: Reply with quote

Could you please say more about the boolean value its the first time i heard of it.
Is it within cheat engine? or something else?
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Mon Sep 02, 2013 11:47 pm    Post subject: Reply with quote

A boolean is a 1 byte value that is either true (1) or false (0).

So try searching for a value of 1 when the chat box is open.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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