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 


Override trainer form

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Tue May 17, 2022 3:07 am    Post subject: Override trainer form Reply with quote

How to override form, when i use CETrainer = GenerateTrainerForm() it doesn't work
P.S.: GenerateTrainerForm() returns form

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1251

PostPosted: Tue May 17, 2022 9:46 am    Post subject: Reply with quote

Code:
Destroy()
=nil

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Tue May 17, 2022 10:58 am    Post subject: Reply with quote

it doesn't show window, when i overriding it
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1251

PostPosted: Tue May 17, 2022 11:51 am    Post subject: Reply with quote

Frouk wrote:
it doesn't show window, when i overriding it


"Mind games!" Smile

After all, isn't the goal to override (Destroy)?

Unpack the action you're trying to do a little more.
We can probably add different ideas for use.

EDIT :
The Instructor window will remain open and the controls will be lost or unusable;

Code:
for i = 0, CETrainer.ComponentCount - 1 do
  --print(CETrainer.Component[i].Name)
  obj=CETrainer.Component[i]
  --obj.Visible=false -- or true
  obj.Enabled=false -- or true
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed May 18, 2022 12:23 am    Post subject: Reply with quote

Frouk wrote:
it doesn't show window, when i overriding it

*mean that window doesn't showing in taskbar

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1251

PostPosted: Wed May 18, 2022 10:36 am    Post subject: Reply with quote

Frouk wrote:
Frouk wrote:
it doesn't show window, when i overriding it

*mean that window doesn't showing in taskbar


It asks for information about Window.
And you want about the icon.
And I think it would have made your job easier to explain all this in the first place.

Test the form's taskbar view.
(Note: You may not see results with CT format, try with CTrainer or exe.)

Code:
CETrainer.ShowInTaskBar=stAlways --icon visible true
CETrainer.ShowInTaskBar=stNever --icon visible false

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed May 18, 2022 12:22 pm    Post subject: Reply with quote

it still doesn't show in taskbar even if i change ShowInTaskBar
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1251

PostPosted: Wed May 18, 2022 12:51 pm    Post subject: Reply with quote

Code:
CETrainer.ShowInTaskBar="stAlways"


If it does not appear even though you use it this way;

A suggestion from @DB; Make sure it's not blocked by the antivirus.

Another suggestion; If you are using an icon, change it or try without the icon. (if not .exe)

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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