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 


Trainer and taskbar issue

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
ner0
Cheater
Reputation: 0

Joined: 10 Dec 2011
Posts: 32

PostPosted: Tue Jan 31, 2017 3:17 pm    Post subject: Trainer and taskbar issue Reply with quote

I've searched the forum for quite a while and was surprised to not find one mention to the issue I'm facing.

When I save my standalone trainer I notice two issues.
The first is that there is no icon whatsoever on the taskbar, even though I specifically selected one. This happens whether I select an icon or not, even if I use CE's default icon.
The second issue is that when I minimize my trainer, instead of minimizing to the taskbar it hovers in the bottom-left corner just above the start icon.

I don't think this is standard but I have no clue why this is happening.
I'm using Windows 10 x64, everything is pretty much default in terms of themes an all... any thoughts?

EDIT:
The trainer is fully programmed in LUA, forms included. Might there be any initialization that I'm not doing in LUA that would happen if I used the form editor?

Thanks!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25806
Location: The netherlands

PostPosted: Tue Jan 31, 2017 4:04 pm    Post subject: Reply with quote

yes, if you use the form editor the icons will be set to the trainer torm and setup some related stuff as well.
_________________
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
ner0
Cheater
Reputation: 0

Joined: 10 Dec 2011
Posts: 32

PostPosted: Tue Jan 31, 2017 4:16 pm    Post subject: Reply with quote

Dark Byte wrote:
yes, if you use the form editor the icons will be set to the trainer torm and setup some related stuff as well.

Yeah, I supposed that was the case.
Anyway, I think that I have worked around it by using the 'ShowInTaskBar' attribute which I wasn't aware of:
Code:
myForm.ShowInTaskBar = 'stAlways'


As for the icon I was already using a bit of code that I found on another thread which assigns an icon file previously attached to the table:

Code:
createForm()
  myForm = CreateForm()
  myForm.FormStyle = 'fsNormal'
  myForm.OnClose = function (sender) closeCE() return caFree end
  myForm.Height = 640
  myForm.Width = 480
  myForm.Caption = "My Trainer"
  myForm.centerScreen()
  myForm.ShowInTaskBar = 'stAlways'
  return myForm
end

function attachIcon(myForm, icoFile)
  local picture = createPicture()
  picture.loadFromStream(findTableFile(icoFile).Stream, 'ico')
  local bitmap = picture.getBitmap()
  myForm.Icon = bitmap
end

attachIcon(createForm(), 'trainer.ico')


*included createForm() to give context to attachIcon()

Thanks again!
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