Jump to content

How can I keep my GUI only in trayicon


kuebk
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • Moderators

$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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...