Matz Posted September 25, 2006 Posted September 25, 2006 Hi. Is there anyway to open the properties window for a folder hidden, and get Hidden window text? I'm trying to get Space Restriction on a Novell network drive/folder. Autoit active window info displays all the hidden window text, this is some of the text. >>>> Hidden Window text <<<< Space Restricion: Unlimited Anyone got a tip?
Matz Posted September 26, 2006 Author Posted September 26, 2006 THis is what I came up with.. semi hidden... expandcollapse popup#include <Array.au3> #include <File.au3> Opt("WinTitleMatchMode", 2) Dim $array Run("explorer.exe f:\", "", @SW_HIDE) WinWaitActive("Usrvol") Send("{APPSKEY}") Send("r") WinWaitActive("Properties") Send("{SHIFTDOWN}") Send("{tab}") Send("{SHIFTUP}") Send("{RIGHT}") WinWaitActive("Properties", "LONG") $text = WinGetText("Properties") Send("!{F4}") $file = "c:\test.txt" _FileCreate ( $file ) FileOpen($file, 2) FileWrite($file, $text) FileClose($file) _FileReadToArray($file, $array) $i = 1 Do $check = $array[$i] $i = $i + 1 Until $check = "Space Available:" $space = $array[$i] $error = WinClose("Usrvol") ConsoleWrite($error & @LF) ConsoleWrite($space & @LF) MsgBox(0, "Space available", $space) I'm sure there is a better way to make text with linefeeds -> one line... But this one works... Matz
acastle Posted September 18, 2007 Posted September 18, 2007 Hi.Is there anyway to open the properties window for a folder hidden, and get Hidden window text?I'm trying to get Space Restriction on a Novell network drive/folder.Autoit active window info displays all the hidden window text, this is some of the text.>>>> Hidden Window text <<<<Space Restricion:UnlimitedAnyone got a tip? I needed the same thing and found that JRButils does this natively. There's a gui and cmd line tool. JRB Software specialises in producing utilities for managing NetWare. Here's a link to their site: JRBSoftware
PsaltyDS Posted September 19, 2007 Posted September 19, 2007 Autoit active window info displays all the hidden window text, this is some of the text. >>>> Hidden Window text <<<< Space Restricion: Unlimited WinGetText() will read all of the text, including hidden if you put Opt("WinDetectHiddenText", 1) in there: #include <guiconstants.au3> Global $WinDetectHiddenText = False Opt("GuiOnEventMode", 1) Opt("WinDetectHiddenText", $WinDetectHiddenText) $hGUI = GUICreate("WinDetectHiddenText Test", 400, 300) GUISetOnEvent($GUI_EVENT_CLOSE, "_Quit") GUICtrlCreateLabel("(Hit ESC to test...)", 10, 10, 380, 20, $SS_Center) GUICtrlCreateLabel("This is visible text.", 10, 80, 380, 20, $SS_Center) GUICtrlCreateLabel("This is hidden text.", 10, 110, 380, 20, $SS_Center) GUICtrlSetState(-1, $GUI_HIDE) GUISetState() HotKeySet("{ESC}", "_ShowText") While 1 Sleep(20) WEnd Func _ShowText() MsgBox(64, "WinDetectHiddenText = " & $WinDetectHiddenText, WinGetText($hGUI)) $WinDetectHiddenText = Not $WinDetectHiddenText Opt("WinDetectHiddenText", $WinDetectHiddenText) EndFunc ;==>_ShowText Func _Quit() Exit EndFunc ;==>_Quit Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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