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 


How to enable a timer when pressing a button

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Matt GT
Newbie cheater
Reputation: 0

Joined: 21 Dec 2017
Posts: 14

PostPosted: Fri Feb 16, 2018 3:45 am    Post subject: How to enable a timer when pressing a button Reply with quote

How do i enable a CETIMER just by pressing a CEBUTTON or a CEPANEL
_________________
im a n00v at cheat engine
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: Fri Feb 16, 2018 3:48 am    Post subject: Reply with quote

give them an OnClick event, and in the onclick event have the code:
Code:

formname.cetimername.Enabled=true

_________________
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
Matt GT
Newbie cheater
Reputation: 0

Joined: 21 Dec 2017
Posts: 14

PostPosted: Fri Feb 16, 2018 4:07 am    Post subject: Reply with quote

Dark Byte wrote:
give them an OnClick event, and in the onclick event have the code:
Code:

formname.cetimername.Enabled=true


Thank you, How about when i press a button it opens a program

_________________
im a n00v at cheat engine
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Feb 16, 2018 6:39 am    Post subject: Reply with quote

In the OnClick event use shellExecute(path to program, 'argument string') or shellExecute(path to program, 'argument string', process's working directory, number for how to show) eg.

Code:
local cedir = getCheatEngineDir() -- program files if not launched as trainer else path to extracted trainer files
local SW_SHOWMAXIMIZED = 3
local SW_SHOWMINIMIZED = 2
shellExecute('notepad', 'celua.txt', cedir, SW_SHOWMAXIMIZED)
-- notepad will almost certainly be in the PATH so it'd be found, other programs may not and you'd need to provide
-- the full path, use os.getenv for environment variables eg. windir and userprofile
-- https://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

_________________
https://github.com/FreeER/ has a few CE related repos
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 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