View previous topic :: View next topic |
Author |
Message |
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Sep 29, 2016 5:40 am Post subject: TrayIcon |
|
|
I forgot to document/explain this feature, oops.
Anyhow, the following code will add an icon in the system tray:
Code: |
ti=createComponentClass('TTrayIcon', getApplication())
ti.Icon=getMainForm().Logo.Picture.Graphic
ti.Hint="Something something bla"
ti.visible=true
ti.OnClick=function(sender) showMessage('WEEEEE') end
|
If you wish to use a better icon, create your own form, and load the image you wish in it's icon property
then instead of getMainForm().Logo.Picture.Graphic give formname.Icon
(getMainForm().Icon does not work)
some other useful properties for the trayicon object:
Code: |
BalloonFlags
BalloonHint
BalloonTimeout
BalloonTitle
PopUpMenu
Icon
Hint
Visible
OnClick
OnDblClick
OnMouseDown
OnMouseMove
OnMouseUp
OnPaint
|
_________________
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 |
|
|
HyberCode Cheater Reputation: 0
Joined: 17 Feb 2016 Posts: 40
|
Posted: Thu Sep 29, 2016 8:49 am Post subject: Re: TrayIcon |
|
|
Dark Byte wrote: |
Code: |
ti=createComponentClass('TTrayIcon', getApplication())
ti.Icon=getMainForm().Logo.Picture.Graphic
ti.Hint="Something something bla"
ti.visible=true
ti.OnClick=function(sender) showMessage('WEEEEE') end
|
[/code] |
thanks but apparently it doesn't work
cheat engine version 6.5.1
Description: |
|
Filesize: |
76.69 KB |
Viewed: |
4240 Time(s) |
|
Description: |
|
Download |
Filename: |
TrayIcon Example.CT |
Filesize: |
15.05 KB |
Downloaded: |
635 Time(s) |
Last edited by HyberCode on Thu Sep 29, 2016 10:25 am; edited 1 time in total |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Sep 29, 2016 9:27 am Post subject: |
|
|
ah ok, i tested it on a 6.5.1 build that was made after the release
anyhow, this works in the upcoming version
_________________
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 |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue Oct 04, 2016 12:41 pm Post subject: |
|
|
with the updated version at http://forum.cheatengine.org/viewtopic.php?t=595082 this will work
also, 6.6 has exposed the application Icon, which you can use for the tray icon, so you can use this code:
Code: |
ti=createComponentClass('TTrayIcon', getApplication())
ti.Icon=getApplication().Icon
ti.Hint="Something something bla"
ti.visible=true
ti.OnClick=function(sender) showMessage('WEEEEE') end
|
_________________
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 |
|
|
|