sharpharp Posted April 22, 2010 Share Posted April 22, 2010 Hi, I have written an autoit script, and converted it to an exe. When i run the exe, the exe appears in the Taskbar, how do i run the exe without the program appearing in the Taskbar??? I can used the notrayicon, which prevents it from appearing in the system tray, but I want my script to run silently, without appearing in the Taskbar. Any ideas? Thanks Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 22, 2010 Share Posted April 22, 2010 I hope you don't mind if I quote myself here. You need to set another window as the parent (last parameter of GuiCreate), like the desktop or the hidden autoit window. Here's example for both: GUICreate("Test1", 200, 100, -1, -1, -1, -1, WinGetHandle("Program Manager")) GUISetState() Do Sleep(10) Until GUIGetMsg() = -3 AutoItWinSetTitle("WeDontWantToHaveTheSameNameAsOtherScripts") GUICreate("Test2", 200, 100, -1, -1, -1, -1, WinGetHandle(AutoItWinGetTitle())) GUISetState() Do Sleep(10) Until GUIGetMsg() = -3 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
sharpharp Posted April 22, 2010 Author Share Posted April 22, 2010 I hope you don't mind if I quote myself here.Just placed your code in my script at the top, converted to an exe and ran it. It displays two test boxes and then run my code....I want to hide the taskbar icon for the exe... Do i need to insert my code somewhere in the code u have provided??? Link to comment Share on other sites More sharing options...
Hawkwing Posted April 22, 2010 Share Posted April 22, 2010 #NoTrayIcon The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
sharpharp Posted April 22, 2010 Author Share Posted April 22, 2010 #NoTrayIcon That only removes the SYSTEM TRAY ICON, not the Taskbar ICON which is what i am after Link to comment Share on other sites More sharing options...
Tvern Posted April 22, 2010 Share Posted April 22, 2010 Then AdmiralAlkex already gave you the answer. You need to modify your own script to in the way the example demonstrates, not just copy paste the example into your script. Link to comment Share on other sites More sharing options...
sharpharp Posted April 22, 2010 Author Share Posted April 22, 2010 Tvern - instead of upping your post count why don't u be helpful for a change? Some people are just so childish. This is a forum, so help instead of being sarcastic. I told you I already tried the code and it brings up a window. At which point do I enter my code in there? I simply want to hide the Taskbar icon. I tried entering my code in between the: GUICreate("Test1", 200, 100, -1, -1, -1, -1, WinGetHandle("Program Manager")) GUISetState() Do Sleep(10) CODE ENTERED HERE Until GUIGetMsg() = -3 But that did not work, so how about some help instead of snide remarks? Link to comment Share on other sites More sharing options...
trancexx Posted April 22, 2010 Share Posted April 22, 2010 Tvern - instead of upping your post count why don't u be helpful for a change? Some people are just so childish. This is a forum, so help instead of being sarcastic.You are an idiot. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
MHz Posted April 23, 2010 Share Posted April 23, 2010 Have a look at the GUICreate page in the help file. You may find some styles in particular that may help.This exstyle causes the GUI to hide from the taskbar.$WS_EX_TOOLWINDOW | Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog box that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by typing ALT+SPACE. 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