Sign in to follow this  
Followers 0
Amol

Hide window from taskbar

3 posts in this topic

Hi,

I have just started using autit v3 scripts.

I want to :

a. hide a particulat application window

b. as well as hide it from taskbar.

I was able to do (a). But no success with (;).

Can anybody give me sample code for hiding window from taskbar ?

Thanks,

Amol

Share this post


Link to post
Share on other sites



well you can use this program originally made by cool0403 but he was banned forever , anyways he made this program that hides any windows from the taskbar

here is the code

#NoTrayIcon
#NoTrayIcon
#Region Compiler directives section

#Compiler_OutFile=C:\Documents and Settings\Geico\Desktop\exe\WindowsHider.exe
#Compiler_Prompt=n                                

#Compiler_Icon=C:\Documents and Settings\Geico\Desktop\icons\icons for my exe\winhider.ico                    
#Compiler_Compression=4                           
#Compiler_Allow_Decompile=y                       
#Compiler_PassPhrase=                             

#Compiler_Res_Comment=I basically used this tool whenever I was playing games or watching naughty stuff or when I was doing hacking shit.
#Compiler_Res_Description=Hides windows from the taskbar.
#Compiler_Res_Fileversion=1                 

#Compiler_Res_LegalCopyright=Dominguez 

#Compiler_Res_Field=Created by|Erik Dominguez  
#Compiler_Res_Field=Email|cool_0403@hotmail.com    
#Compiler_Res_Field=About me| Well there isn't very much to say about me. I started programing when i was 14 with simple stuff like qbasic and visual basic. I am 100% Mexican and I was born in El Paso, Texas. This program was practically made because I didn't like doing math so i needed to make a program that will do math for me.Well am not very good at writing autobiographys in fact i suck, lol.If you know a way to improve this program please feel free to contact me.
#Compiler_Run_AU3Check=y                         
#endregion
Opt("WinTitleMatchMode", 2)
HotKeySet("{esc}","escape")
HotKeySet("{f3}","show")
Hotkeyset("{f2}","hide")
HotKeySet("{f1}","windows2hide")
HotKeySet("^!#h","help")
HotKeySet("^!#a","author")
HotKeySet("^!e", "endallselectedwindows") 
HotKeySet("^!a","hideallwindows")
HotKeySet("^!s","showallwindows")
HotKeySet("^!d","endallwindows")

Global $maxwin
Global $morewindows
Global $windows = 1
Global $var 
Global $i 
func escape()
    exit 0
    EndFunc
func windows2hide()
$windows = InputBox("Windows Hider","Type the name of the window  you want to hide","")

EndFunc
Func show()
  
 
$morewindows = StringSplit($windows,",")
$morewindowsplus1 = $morewindows[1] + 1
For $maxwin = 2 to $morewindowsplus1

$var = WinList($morewindows[$maxwin])
For $i = $morewindows[$maxwin] to $var[0][0]

  If $var[$i][0] <> "" AND isitvisible($var[$i][1]) Then
    WinSetState($var[$i][1],"",@SW_SHOW)
EndIf
Next
Next   

EndFunc
Func hide()
$morewindows = StringSplit($windows,",")
$morewindowsplus1 = $morewindows[1] + 1
For $maxwin = 2 to $morewindowsplus1


$var = WinList($morewindows[$maxwin])

For $i = $morewindows[$maxwin] to $var[0][0]

  If $var[$i][0] <> "" AND isitvisible2($var[$i][1]) Then
    WinSetState($var[$i][1],"",@SW_hide)
  EndIf
Next
Next

EndFunc
Func isitvisible($handle)
  
  If Bitand( WinGetState($handle),  2) Then 
    Return 0
  Else
    Return 1
  EndIf

EndFunc
Func isitvisible2($handle)
  
  If Bitand( WinGetState($handle),  2) Then 
    Return 1
  Else
    Return 0
  EndIf

EndFunc
Func endallselectedwindows()
  
 
$morewindows = StringSplit($windows,",")
$morewindowsplus1 = $morewindows[1] + 1
For $maxwin = 2 to $morewindowsplus1

$var = WinList($morewindows[$maxwin])
For $i = $morewindows[$maxwin] to $var[0][0]

  If $var[$i][0] <> ""  Then
    WinKill($var[$i][1])
EndIf
Next
Next
RegDelete("HKEY_CURRENT_USER\Software\Windows Hider")
EndFunc
Func hideallwindows() 
$var = WinList()    
For $i = 1 to $var[0][0]
  
   If $var[$i][0] <> "" AND IsItVisible2($var[$i][1]) Then
     RegWrite("HKEY_CURRENT_USER\Software\Windows Hider",$var[$i][1],"REG_SZ",$var[$i][0])
     EndIf
If $var[$i][0] <> "" AND IsItVisible2($var[$i][1]) Then
    WinSetState($var[$i][1],"",@SW_HIDE)
EndIf
Next
EndFunc

Func showallwindows() 
$s = 0
While 1
$s = $s + 1

$var = RegEnumVal("HKEY_CURRENT_USER\Software\Windows Hider", $s)
 $win2read = RegRead("HKEY_CURRENT_USER\Software\Windows Hider",$var)
 WinSetState($win2read,"",@SW_SHOW)
if $win2read = "" then ExitLoop

WEnd

EndFunc
Func endallwindows()
    $var = WinList()

For $i = 1 to $var[0][0]
  
  If $var[$i][0] <> "" Then
WinKill($var[$i][1])
EndIf
Next
EndFunc
Func help()
    MsgBox(0,"Instructions:","This is a very easy program to use.This program hides windows from the taskbar and from Windows Task Manager." & @CRLF & @CRLF & "Instructions:" & @CRLF & "1.To hide all windows press ""Ctrl + Alt + a""" & @CRLF & "2.To show back again all windows press ""Ctrl + Alt + s""" & @CRLF & "3.To hide the windows you want press ""F1"" then first input the number of different windows you want to hide followed by a comma then after you have input your window you must always have a comma in between names  ex:""2,Untitled - Notepad,Microsoft Internet Explorer"", you see? If you want to hide 2 windows you first input the number 2 then input the title of the first Window then place a comma and input the second window." & @CRLF & "4.Then to hide them press ""F2""." & @CRLF & "5.Then to show them you press ""F3""." & @CRLF & "6.You could also close all of the windows you selected by pressing ""Ctrl + Alt + e""." & @CRLF & "7.If you want to hide end all of the windows you have open then press ""Ctrl + Alt + d""." & @CRLF& "8.To end this program simply press ""ESC""." & @CRLF& @CRLF & "Warning: If you close the windows you won't be able to get them back again and if anytime you press ""ESC"" you will automatically close this program.") 
    
    EndFunc
Func author()
    MsgBox(0,"Created by: Erik Dominguez","This program was created  by: Erik Dominguez , this program took me a while to make like about 2 to 3 hours , but overall I think it was worth it." & @CRLF & "This program saved my ass a couple times so am actually glad that I made this program, it was intentionally made for personal use, but I figured that other people could use this too.")
EndFunc

While 1
Sleep(1)
WEnd

Share this post


Link to post
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
Sign in to follow this  
Followers 0