Sign in to follow this  
Followers 0
kuebk

How can I keep my GUI only in trayicon

6 posts in this topic

Hey!

I want to keep my script with GUI only in tray icon not on taskbar, and when I press minimize it will minimize to tray icon.

Thanks in advance for help. :)


Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

Thanks, but I want it to be in tray whole time. While it is not minimised I want it to be shown on screen and in tray only, not in taskbar. :)

Edited by kuebk

Share this post


Link to post
Share on other sites

There's nothing magical happening in any programs when you, as you say, minimize them to the traybar.

It's not like you shrink the GUI and push it down and into the traybar. Detect the minimize-event using

GUIGetMsg or OnEvent mode. Hide and show the GUI using GUISetState. Create a tray-menu using the

tray-functions, such as TrayCreateItem, so that you can tell the script to show the GUI again.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

$WS_EX_TOOLWINDOW = 0x00000080;Included in the GUIConstants.au3
$gui = GUICreate("Example", 200, 100, -1, -1, -1, $WS_EX_TOOLWINDOW)
GUISetState()
While GUIGetMsg() <> -3
WEndoÝ÷ ØGb´    Ýmçè­ì¨ºËZ®ÛÊ)තÉ÷öÜ(®H§«z+ìZ^¡øhÃ*.ªê-(!¶«¨µÚ"µ«­¢+Ø%¹±Õ±Ðí
½¹ÍѹÑ̹ÔÌÐì)=ÁÐ ÅÕ½ÐíQÉå5¹Õ5½ÅÕ½Ðì°Ä¤(ÀÌØí]M}a}Q==1]%9=ôÁàÀÀÀÀÀÀàÀí%¹Õ±¥¸Ñ¡U%
½¹ÍѹÑ̹ÔÌ(ÀÌØíÕ¤ôU%
ÉÑ ÅÕ½ÐíáµÁ±ÅÕ½Ðì°ÈÀÀ°ÄÀÀ°´Ä°´Ä°´Ä°ÀÌØí]M}a}Q==1]%9=¤(ÀÌØí5¥¸ôQÉå
ÉÑ%Ñ´ Ìäí5¥¹¥µ¥éÌäì¤(ÀÌØí5àôQÉå
ÉÑ%Ñ´ Ìäí5᥵¥éÌäì¤(ÀÌØíá¥ÐôQÉå
ÉÑ%Ñ´ Ìäíá¥ÐÌäì¤)U%MÑMÑÑ ¤)]¡¥±Ä(%MÝ¥Ñ QÉåÑ5Í ¤($%
ÍÀÌØí5¥¸($$%U%MÑMÑÑ¡M]}!%°ÀÌØíÕ¤¤($%
ÍÀÌØí5à($$%U%MÑMÑÑ¡M]}M!=°ÀÌØíÕ¤¤($%
ÍÀÌØíá¥Ð($$%á¥Ð(%¹MÝ¥Ñ (%MÝ¥Ñ U%Ñ5Í ¤($%
Í´Ì($$%á¥Ð(%¹MÝ¥Ñ )]¹

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0