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 


Please help.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Fri May 13, 2016 4:21 pm    Post subject: Please help. Reply with quote

1st question is how do you make a button which reattaches the process so instead of reopening the trainer you just press the button and it attaches again.

2nd question is would something like this work:
Code:
312788473=1
if(checkbox_getState(CETrainer.CECheckbox) == 312788473) then
autoAssemble([[
]])
else
autoAssemble([[
]])
end
end
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri May 13, 2016 6:09 pm    Post subject: Reply with quote

Code:
openProcess("game.exe")

312788473 is a numeric literal, not a variable name.
Otherwise, yes, you can perform a different autoAssemble based on your checkbox.
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sat May 14, 2016 2:38 am    Post subject: Reply with quote

Is it really just
Code:
openProcess("_____.exe")

I thought it would be something more.

3rd Question. how can I make it so if the process isn't found it would show message (Process not found) and if found then show message (Reattached successfully)?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat May 14, 2016 9:08 am    Post subject: Reply with quote

Code:
if openProcess("game.exe") then
  showMessage("woohoo")
else
  showMessage("damnit")
end
Back to top
View user's profile Send private message
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