Sign in to follow this  
Followers 0
Maximilian0017

Removing the Shortcut tab for a files property window

2 posts in this topic

Hi,

After seeing the ANYGUI_Example_Notepad.au3 i was wondering if it would be possible to build a script that actively looks for file property windows and removes the Shortcut tab.

The search function didn't really help either and it seems that ANYGUI doesn't have anything to remove a tab.

Posted Image

(p.s. random properties window from the net)

Any idea's?

Share this post


Link to post
Share on other sites



Another question, is there some kind of event i can monitor for any kind of window being opened?, would like to remove Sleep(10) and have something that will take the least possible cpu time.

;AutoItSetOption("TrayIconHide",1) ; Hide tray icon
AutoItSetOption("WinTitleMatchMode",2) 

While 1
  Sleep(10)
  $var = WinList("[TITLE:Properties;CLASS:#32770]")
  For $i = 1 to $var[0][0]
    If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then
      DoSomething($var[$i][1])
    EndIf
  Next
WEnd

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

Func DoSomething($handle)
  MsgBox(0, "Details", "Title=" & $var[$i][0] & @LF & "Handle=" & $var[$i][1])
EndFunc

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