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 Hide UDF2 before i press command show UDF 2?

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

Joined: 07 Oct 2013
Posts: 18
Location: In Your Heart :P

PostPosted: Sat Oct 11, 2014 1:25 pm    Post subject: How to Hide UDF2 before i press command show UDF 2? Reply with quote

hello, i want to hide UDF2
and UDF2 will show if i press this button
how to it?



how to hide.png
 Description:
 Filesize:  529.97 KB
 Viewed:  10675 Time(s)

how to hide.png


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: Sat Oct 11, 2014 1:44 pm    Post subject: Reply with quote

There's a small bug in 6.4 where forms are visible by default.
To work arround that do the following:
before saving go into form editing mode for UDF2
Then open a lua engine window and execute "UDF2.Visible=false"
then close the form designer and save

that will prevent UDF2 from being visible when the table loads (you can also do that for UDF1 if you like)

As for the question to show it on buttonclick:
To your button's OnClick event hang a function that calls "UDF2.Visible=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
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sat Oct 11, 2014 1:50 pm    Post subject: Reply with quote

Before execute your Lua script,
1st close the form designer (the bar with 'file' menu) and all the form.

Then you need a function to show UDF2 that attached to CEButton1's OnClick event, ie. <oops! correction>
Code:
UDF1.FindComponentByName('CEButton1').OnClick = function(sender) UDF2.show() end
UDF1.show()
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: Sat Oct 11, 2014 3:23 pm    Post subject: Reply with quote

UDF1.FindComponentByName('CEButton1') can be replaced with UDF1.CEButton1

Also, in the form designer you can assign it the onClick as well (it has to be a global function then)

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

Joined: 07 Oct 2013
Posts: 18
Location: In Your Heart :P

PostPosted: Sat Oct 11, 2014 3:55 pm    Post subject: Reply with quote

Dark Byte wrote:
There's a small bug in 6.4 where forms are visible by default.
To work arround that do the following:
before saving go into form editing mode for UDF2
Then open a lua engine window and execute "UDF2.Visible=false"
then close the form designer and save

that will prevent UDF2 from being visible when the table loads (you can also do that for UDF1 if you like)

As for the question to show it on buttonclick:
To your button's OnClick event hang a function that calls "UDF2.Visible=true"

thank you ill try it
umm this is bug?
on CE 63 get the same bug?
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: Sat Oct 11, 2014 4:36 pm    Post subject: Reply with quote

6.3 doesn't have that, but it isn't really a bug. More a new feature without an easy way to control it (the visible state of forms is now saved as well, but there's no published property to let the form designer set it)
_________________
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
ErcHimA
Newbie cheater
Reputation: 0

Joined: 07 Oct 2013
Posts: 18
Location: In Your Heart :P

PostPosted: Sat Oct 11, 2014 7:42 pm    Post subject: Reply with quote

Thank you very much DB, Work perfect!


tes.CETRAINER
 Description:
my first trainer using multiple udf and multiple trainer

Download
 Filename:  tes.CETRAINER
 Filesize:  49.38 KB
 Downloaded:  558 Time(s)

Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Oct 12, 2014 2:12 pm    Post subject: Reply with quote

ErcHimA wrote:
thank you ill try it
umm this is bug?

Yes, reported here http://forum.cheatengine.org/viewtopic.php?p=5543422#5543422

It is fixed in revision 2624 (released CE6.4 is revision 2613)


If you want, here CE revision 2626, file "pure r2626.7z":
https://googledrive.com/host/0BwMAnE6mjogMTmpYMGstY1NPQnc
(there is readme for more details)

 

_________________
Back to top
View user's profile Send private message MSN Messenger
ErcHimA
Newbie cheater
Reputation: 0

Joined: 07 Oct 2013
Posts: 18
Location: In Your Heart :P

PostPosted: Sat Oct 18, 2014 7:59 am    Post subject: Reply with quote

mgr.inz.Player wrote:
ErcHimA wrote:
thank you ill try it
umm this is bug?

Yes, reported here http://forum.cheatengine.org/viewtopic.php?p=5543422#5543422

It is fixed in revision 2624 (released CE6.4 is revision 2613)


If you want, here CE revision 2626, file "pure r2626.7z":
https://googledrive.com/host/0BwMAnE6mjogMTmpYMGstY1NPQnc
(there is readme for more details)

 

thank you dude
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