GAM Posted July 24, 2011 Posted July 24, 2011 (edited) Hi All, I have trying to select an object in the 'systlistview32' but not sucessful Can somebody tell on how to select the objects in 'Syslistview32'? Am attaching my UI on which am working, please somebody pitch in here? The window info gives like his... Thanks GAM expandcollapse popup--------------- WINDOW INFO -------------------------- >>>> Window <<<< Title: On-Access Scan Properties Class: #32770 Position: 136, 129 Size: 586, 601 Style: 0x94C800CC ExStyle: 0x00050101 Handle: 0x00030300 >>>> Control <<<< Class: SysListView32 Instance: 5 ClassnameNN: SysListView325 Name: Advanced (Class): [CLASS:SysListView32; INSTANCE:5] ID: 102 Text: List1 Position: 8, 8 Size: 108, 520 ControlClick Coords: 43, 100 Style: 0x5001E80C ExStyle: 0x00000204 Handle: 0x000602D8 >>>> Mouse <<<< Position: 190, 266 Cursor ID: 2 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< These tabs affect all applications. Scan &Boot sectors &Floppy during shutdown General E&nable on-access scanning at system startup Scan time Ma&ximum archive scan time (seconds): 15 Spin1 &Enforce a maximum scanning time for all files &Maximum scan time (seconds): 45 Spin1 &Processes on enable Heuristic network check for suspicious files &Sensitivity level: Very low List1 Tab1 OK Cancel &Apply &Help >>>> Hidden Text <<<< Specify how to respond when a threat is detected. When a threat is found: &Perform this action first: Clean files automatically I&f the first action fails, then perform this action: Delete files automatically Prevents access to files that have been detected. The location of the quarantine folder is configured on the 'General' tab under 'General Settings'. When an unwanted program is found: P&erform this action first: Clean files automatically If &the first action fails, then perform this action: Delete files automatically The location of the quarantine folder is configured on the 'General' tab under 'General Settings'. Specify what items to exclude from scanning. What not to scan Exclude disks, files, and folders (0) &Exclusions... Specify what items will be scanned. Scan Files &When writing to disk Whe&n reading from disk &On network drives O&pened for backup What to scan All fil&es Defa&ult + additional file types (0) Specified file t&ypes only (0) Also s&can for macros in all files Addi&tions... &Specified... Heuristics Find un&known unwanted programs and trojans &Find unknown macro threats Compressed files Scan inside archives (e.g. .&ZIP) &Decode MIME encoded files Unwanted programs detection Detect unwanted p&rograms These tabs affect the Low-Risk Processes listed below. Use these settings for processes that have a low risk of introducing or spreading a potential threat. &Static List1 A&dd... &Remove Specify how to respond when a threat is detected. When a threat is found: &Perform this action first: Clean files automatically I&f the first action fails, then perform this action: Delete files automatically Prevents access to files that have been detected. The location of the quarantine folder is configured on the 'General' tab under 'General Settings'. When an unwanted program is found: P&erform this action first: Clean files automatically If &the first action fails, then perform this action: Delete files automatically The location of the quarantine folder is configured on the 'General' tab under 'General Settings'. Specify what items to exclude from scanning. What not to scan Exclude disks, files, and folders (0) &Exclusions... Specify what items will be scanned. Scan Files &When writing to disk Whe&n reading from disk &On network drives O&pened for backup What to scan All fil&es Defa&ult + additional file types (0) Specified file t&ypes only (0) Also s&can for macros in all files Addi&tions... &Specified... Heuristics Find un&known unwanted programs and trojans &Find unknown macro threats Compressed files Scan inside archives (e.g. .&ZIP) &Decode MIME encoded files Unwanted programs detection Detect unwanted p&rograms These tabs affect either all processes or those processes not listed as High-Risk or Low-Risk Processes. &Configure one scanning policy for all processes. C&onfigure different scanning policies for high-risk, low-risk, and default processes All on-access scanning is performed using the same policy options. List1 Specify how to respond when a threat is detected. When a threat is found: &Perform this action first: Clean files automatically I&f the first action fails, then perform this action: Delete files automatically Prevents access to files that have been detected. The location of the quarantine folder is configured on the 'General' tab under 'General Settings'. When an unwanted program is found: P&erform this action first: Clean files automatically If &the first action fails, then perform this action: Delete files automatically The location of the quarantine folder is configured on the 'General' tab under 'General Settings'. Specify what items to exclude from scanning. What not to scan Exclude disks, files, and folders (0) &Exclusions... Specify what items will be scanned. Scan Files &When writing to disk Whe&n reading from disk &On network drives O&pened for backup What to scan All fil&es Defa&ult + additional file types (0) Specified file t&ypes only (0) Also s&can for macros in all files Addi&tions... &Specified... Heuristics Find un&known unwanted programs and trojans &Find unknown macro threats Compressed files Scan inside archives (e.g. .&ZIP) &Decode MIME encoded files Unwanted programs detection Detect unwanted p&rograms These tabs affect the High-Risk Processes listed below. Use these settings for processes that have a high risk of introducing or spreading a potential threat. &Static List1 A&dd... &Remove Configure the logging of scanning activity. Specify the information to be captured for each log entry. Log file &Enable activity logging and accept the default location for the log file or specify a new location. &View Log %DEFLOGDIR%\OnAccessScanLog.txt &Browse... Limit the si&ze of log file &Maximum log file size (MB): 1 Spin1 &Log file format: Unicode (UTF8) What to log in addition to scanning activity &Session settings Sessi&on summary &Failure to scan encrypted files &User name Notify local users when detections occur and specify what actions can be taken. Messages for local users &Show the messages dialog box when a threat is detected and display the specified text in the message. Acc&ept the default message or type a new message. VirusScan Alert! Actions available to user &Remove messages from the list &Clean files &Delete files Block connections from remote computers that have files with potential threats or unwanted programs in a shared folder. Message &Send the specified message to the network user when a threat is detected. &Type a custom message Block &Block the connection when a threat is detected in a shared folder. &Unblock connections after (minutes) 10 Bl&ock the connection when a file with a potentially unwanted program is detected in a shared folder. Scan JavaScript and VBScript scripts that are executed by the Windows Scripting Host. WSH is used by Internet Explorer and Outlook. If an unwanted script is detected it is not allowed to execute. ScriptScan E&nable scanning of scripts &ScriptScan exclusions: A&dd... &Edit... &Remove Cookies S&can cookie files Tab1 ---------------------------- Edited July 24, 2011 by Jos added code tags Neil
GAM Posted July 24, 2011 Author Posted July 24, 2011 My objective here is to select "GENERAL SETTINGS" and "ALL PROCESSES" objects that are shown on the left side of the image. Neil
Moderators Melba23 Posted July 24, 2011 Moderators Posted July 24, 2011 GAM,Please edit your first post to put [code] before and [/code] after the "WINDOW INFO" stuff - then you get a nice scrolling window and people might begin to look at your problem. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
dragan Posted July 24, 2011 Posted July 24, 2011 (edited) is this working? #include <GUIListView.au3> $hWnd = ControlGetHandle("On-Access Scan Properties","","SysListView325") _GUICtrlListView_SetItemSelected($hWnd, 0) MsgBox(0, 'pause', '1st item in your list should be selected now') _GUICtrlListView_SetItemSelected($hWnd, 1) MsgBox(0, 'pause', '2nd item in your list should be selected now') Edited July 24, 2011 by dragan
GAM Posted July 24, 2011 Author Posted July 24, 2011 I have tried this - "_GUICtrlListBox_ClickItem($hWnd, 1, "left", True)', this helped in getting the focus on the control but not specifically on the object inside the controls. I thought posting this would help. Neil
dragan Posted July 24, 2011 Posted July 24, 2011 (edited) ok, try this just to see if you can get all items from the list (just to make sure that you can get list's handle):expandcollapse popup#include <GUIListView.au3> #include <Array.au3> $hWnd = ControlGetHandle("On-Access Scan Properties","","SysListView325") $arr = _GUICtrlListView_GetContents($hWnd) _ArrayDisplay($arr) ;=============================================================================== ; ; Function Name: _GUICtrlListView_GetContents ; Description:: Captures Contents of a SysListView32 Contrl Into an Array ; Parameter(s): $hWnd - Handle to the control ; Requirement(s): #include <GUIListView.au3> ; Return Value(s): Success - Array with ListView Contents ; Failure - 0 ; Author(s): Paul Wilson (spudw2k) ; ;=============================================================================== Func _GUICtrlListView_GetContents($hWnd) $iCol = _GUICtrlListView_GetColumnCount($hWnd) If $iCol = 0 Then Return 0 Dim $arrListView[1][$iCol] For $i = 0 to $iCol-1 Local $Col=_GUICtrlListView_GetColumn($hWnd,$i) $arrListView[0][$i]=$Col[5] Next $Col = 0 $iRows = _GUICtrlListView_GetItemCount($hWnd) For $i = 0 to $iRows-1 Redim $arrListView[UBound($arrListView)+1][$iCol] $arrListView[UBound($arrListView)-1][0]=_GUICtrlListView_GetItemText($hWnd,$i) For $j = 1 To $iCol-1 $arrListView[UBound($arrListView)-1][$j]=_GUICtrlListView_GetItemText($hWnd,$i,$j) Next Next $arrListView[0][0] = UBound($arrListView)-1 Return $arrListView EndFunc ;==>_GUICtrlListView_GetContentsedit: p.s. you can also try: #include <GUIListView.au3> $hWnd = ControlGetHandle("On-Access Scan Properties","","SysListView325") _GUICtrlListView_ClickItem($hWnd, 1) Edited July 24, 2011 by dragan
GAM Posted July 24, 2011 Author Posted July 24, 2011 Thanks dragan, I will have a look into it and update this thread. Thank for the help!!!! Neil
monoscout999 Posted July 25, 2011 Posted July 25, 2011 (edited) ok, try this just to see if you can get all items from the list (just to make sure that you can get list's handle): ... If that work with the windows start menu then it should work with you SysListView32 Class control. EDIT: Also works with the desktop. Edited July 25, 2011 by monoscout999
leunamme Posted November 16, 2011 Posted November 16, 2011 This works even when the workstation is locked expandcollapse popupAutoItSetOption ( "SendKeyDelay", 1000 ) $strComputer = "." $objWMIService = ObjGet("winmgmts:" & $strComputer & "rootdefault") $colEvents = $objWMIService.ExecNotificationQuery _ ("SELECT * FROM RegistryValueChangeEvent WHERE Hive='HKEY_LOCAL_MACHINE' AND " & _ "KeyPath='SOFTWAREMcAfeeVSCoreOn Access ScannerMcShieldConfigurationDefault'" & _ "AND ValueName='bScanOutgoing'") while 1 $var = RegRead("HKEY_LOCAL_MACHINESoftwareMcAfeeVSCoreOn Access ScannerMcShieldConfigurationDefault", "bScanOutgoing") if $var = 1 THEN Run('C:Program FilesMcAfeeVirusScan Enterpriseshcfg32.exe') WinWait("On-Access Scan Properties") ControlSend("On-Access Scan Properties", "", 103,"!e") sleep(500) ControlSend("On-Access Scan Properties", "", 137,"!x") sleep(500) ControlSend("On-Access Scan Properties", "", 139,"999") sleep(500) ControlClick("On-Access Scan Properties", "", 102,"left",1,52,129) sleep(500) ControlClick("On-Access Scan Properties", "", 163,"left",1,89,13) sleep(500) ControlSend("On-Access Scan Properties", "", 127,"!n") sleep(500) ControlSend("On-Access Scan Properties", "", 1093,"!p") sleep(500) ControlSend("On-Access Scan Properties", "", 1097,"!z") sleep(500) ControlSend("On-Access Scan Properties", "", 1098,"!d") sleep(500) ControlSend("On-Access Scan Properties", "", "","{ENTER}") EndIf $objEvent = $colEvents.NextEvent sleep (1000) WEnd
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