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 


Script to make a message when found a word

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ddtank.
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 21

PostPosted: Sat Jan 21, 2012 7:34 pm    Post subject: Script to make a message when found a word Reply with quote

Hello,
I wanna make a script to display a message, or close the executable when a word appear in this executable.
Like display: "Stamina full again, you can train for 2h", when the word "fullstamina" appear.
Or close the executable when "ninjutsu" appear in the screen.
I can do it with CE lua?
Back to top
View user's profile Send private message
ddtank.
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 21

PostPosted: Tue Jan 24, 2012 8:40 pm    Post subject: Reply with quote

i need help :/
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Jan 25, 2012 2:53 am    Post subject: Reply with quote

Just find a way to see when that text is appearing and then we can help you
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ddtank.
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 21

PostPosted: Sun Jan 29, 2012 1:17 am    Post subject: Reply with quote

has a way to make the cheat engine closes with script ? I wish he closes with a hotkey.. with for example space. how i to do this? , please show me
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Jan 29, 2012 2:39 am    Post subject: Reply with quote

Code:

function myscript()
  closeCE()
end

if spacehk==nil then
  spacehk=createHotkey('myscript', VK_SPACE)
end

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ddtank.
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 21

PostPosted: Sun Jan 29, 2012 3:17 am    Post subject: Reply with quote

thank you for that.
I want when i press a hotkey, to open a txt file, example bla.txt
if I'm not mistaken it would be using this function?
strings_loadFromFile (list, filename)
I wanna scan for a text in the process and verify if some word of a file text appears. if someone can show me the function that i must try, would appreciate.
Back to top
View user's profile Send private message
ddtank.
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 21

PostPosted: Tue Jan 31, 2012 9:56 pm    Post subject: Reply with quote

have a way to do this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Jan 31, 2012 10:15 pm    Post subject: Reply with quote

The word or text will most likely be inside the process. The problem is finding out when that word is being shown on the display.

Try an optical character recognition application and use that to signal ce that it's being shown...

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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