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 


Lua minimize button help!

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

Joined: 03 Jun 2016
Posts: 14

PostPosted: Sat Jun 04, 2016 4:55 pm    Post subject: Lua minimize button help! Reply with quote

I'm make to trainer but need minimize button. somebody help pls.

same like;
function CEButtonClick(sender)
closeCE()
return caFree
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: Sat Jun 04, 2016 5:04 pm    Post subject: Reply with quote

???
Code:
getMainForm().hide()
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sat Jun 04, 2016 5:05 pm    Post subject: Reply with quote

Forms should already have a minimize button. If you want it to be completely hidden and not just collapsed when you click on it, set the form's ShowInTaskBar property to stAlways.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Cestra
Newbie cheater
Reputation: 0

Joined: 03 Jun 2016
Posts: 14

PostPosted: Sat Jun 04, 2016 6:00 pm    Post subject: Reply with quote

Zanzer wrote:
???
Code:
getMainForm().hide()


nothing happen.

ParkourPenguin wrote:
Forms should already have a minimize button. If you want it to be completely hidden and not just collapsed when you click on it, set the form's ShowInTaskBar property to stAlways.


I use border style None . I dont want full hide, yeah when I click on it, just show in taskbar. Tried ShowInTaskBar "stAlways" but nothing happened.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sat Jun 04, 2016 6:10 pm    Post subject: Reply with quote

Oh. Then make a button and set the form's WindowState property to wsMinimized:
Code:
function CEButton1Click(sender)
  UDF1.WindowState = "wsMinimized"
end

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Cestra
Newbie cheater
Reputation: 0

Joined: 03 Jun 2016
Posts: 14

PostPosted: Sat Jun 04, 2016 6:15 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Oh. Then make a button and set the form's WindowState property to wsMinimized:
Code:
function CEButton1Click(sender)
  UDF1.WindowState = "wsMinimized"
end



Yeah it's. Thank you very much Very Happy
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