Jump to content

Remove application from taskbar


xShadowx
 Share

Recommended Posts

Yes.

Then here is a simple way. Write your script like this

Global $hww, $swintitle = "Untitled - Notepad";put the title of the window to hide here

RUn("programtorun.....;the program you want to run and hide

Hidewindow();hides the window, Ctrl F10 will bring it back to be visible

;rest of your script if anyting


Func HideWindow();
    
       sleep(500);delay to allow window to be created
    $hww = WinGetHandle($swintitle)
    Local $hGui1 = GUICreate('Parent');this is the 'holder' for hidden apps
     DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", $hGui1)
    
    HotKeySet("^{F10}", "showWindow")
EndFunc  ;==>HideWindow

Func showWindow()
    DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", 0)
EndFunc  ;==>showWindow
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

I did that, but it isnt hiding the window. Humm.

I don't know why it doesn't work. If I do this it works with NotePad.

Global $hww, $swintitle = "Untitled - Notepad";put the title of the window to hide here

RUn("Notepad.exe");programtorun.....;the program you want to run and hide

Hidewindow();hides the window, Ctrl F10 will bring it back to be visible

;rest of your script if anyting

while 1
    sleep(90)
WEnd

Func HideWindow();
    
       sleep(500);delay to allow window to be created
    $hww = WinGetHandle($swintitle)
    Local $hGui1 = GUICreate('Parent');this is the 'holder' for hidden apps
     DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", $hGui1)
    
    HotKeySet("^{F10}", "showWindow");Ctrl F10 to bring it back
EndFunc ;==>HideWindow

Func showWindow()
    DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", 0)
EndFunc ;==>showWindow
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Is there any other way to hide the taskbar button? Because that didnt work ether. :mellow:

If you mean that when you run that example the notepad icon still shows on the task bar then I don't know. I have XP Pro SP3.
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...