kuebk Posted January 9, 2007 Posted January 9, 2007 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.
Valuater Posted January 9, 2007 Posted January 9, 2007 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. Learn to use the search button ( top right corner )1http://www.autoitscript.com/forum/index.ph...st&p=2698652http://www.autoitscript.com/forum/index.ph...st&p=187623there are more too!!8)
xcal Posted January 9, 2007 Posted January 9, 2007 This was a good one, too.http://www.autoitscript.com/forum/index.ph...amp;#entry36748 How To Ask Questions The Smart Way
kuebk Posted January 9, 2007 Author Posted January 9, 2007 (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 January 9, 2007 by kuebk
Helge Posted January 9, 2007 Posted January 9, 2007 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.
Moderators SmOke_N Posted January 9, 2007 Moderators Posted January 9, 2007 (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 January 9, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now