ZenKensei Posted January 3, 2005 Share Posted January 3, 2005 Group, I created a script to perform various functions on servers within my network. The script stays running until I exit the script, meaning I have a GUI up all the time. With that in mind, is it possible to hide the task bar icon and rely only on the system tray icon to bring the script back to the forefront (as the active window)? When I click on the icon in the system tray, I have only 'script paused' or 'exit' as an option and neither brings the script window back to the forefront of the desktop. Was just wondering if this was possible to do. Thanks, ZK Link to comment Share on other sites More sharing options...
Developers Jos Posted January 3, 2005 Developers Share Posted January 3, 2005 Group, I created a script to perform various functions on servers within my network. The script stays running until I exit the script, meaning I have a GUI up all the time. With that in mind, is it possible to hide the task bar icon and rely only on the system tray icon to bring the script back to the forefront (as the active window)? When I click on the icon in the system tray, I have only 'script paused' or 'exit' as an option and neither brings the script window back to the forefront of the desktop. Was just wondering if this was possible to do.Thanks,ZK<{POST_SNAPBACK}>Just add an Extended Style called $WS_EX_TOOLWINDOW like:GUICreate("Timer",120, 50,-1,-1,-1,$WS_EX_TOOLWINDOW) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
HighGuy Posted January 4, 2005 Share Posted January 4, 2005 Just add an Extended Style called $WS_EX_TOOLWINDOW like:GUICreate("Timer",120, 50,-1,-1,-1,$WS_EX_TOOLWINDOW)<{POST_SNAPBACK}>Is there a way to change the extended style after GUICreate? I know there is a GUICtrlSetStyle for Controls? What about a GUISetStyle(windowID, style [,exStyle]) for the GUI itself? Link to comment Share on other sites More sharing options...
jpm Posted January 4, 2005 Share Posted January 4, 2005 Is there a way to change the extended style after GUICreate? I know there is a GUICtrlSetStyle for Controls? What about a GUISetStyle(windowID, style [,exStyle]) for the GUI itself?<{POST_SNAPBACK}>No Link to comment Share on other sites More sharing options...
Holger Posted January 4, 2005 Share Posted January 4, 2005 @JP: No? ... yes: you could try something like this: #include <GUIConstants.au3> $gui = GUICreate("Timer",120, 50,-1,-1,-1,$WS_EX_TOOLWINDOW) $GWL_EXSTYLE = -20 GUISetState() Sleep(3000) DllCall("User32.dll","int","SetWindowLong","hwnd",$gui,"int",$GWL_EXSTYLE,"long",0) GUISetState(@SW_HIDE) GUISetState(@SW_SHOW) Sleep(3000) Ok, it's not the best way but possible Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
jpm Posted January 4, 2005 Share Posted January 4, 2005 @JP: No? ... yes:you could try something like this:#include <GUIConstants.au3> $gui = GUICreate("Timer",120, 50,-1,-1,-1,$WS_EX_TOOLWINDOW) $GWL_EXSTYLE = -20 GUISetState() Sleep(3000) DllCall("User32.dll","int","SetWindowLong","hwnd",$gui,"int",$GWL_EXSTYLE,"long",0) GUISetState(@SW_HIDE) GUISetState(@SW_SHOW) Sleep(3000)Ok, it's not the best way but possible <{POST_SNAPBACK}>Thanks Holger, I just answer no from Gui Function.It true now we have this fantastic escape (DllCall). I am afaid sometime of what will append with bad use of this fonction. Link to comment Share on other sites More sharing options...
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