Jump to content

_GuiCtrlTreeView_FindItem fails


covaks
 Share

Recommended Posts

I'm trying to automate some things in the remote desktops mmc snap in, and I get an error when I try to use _GuiCtrlTreeView_FindItem..

#include <GuiTreeView.au3>

opt("WinTitleMatchMode",2)

$hWnd = WinGetHandle("Remote Connections")
$hTree = ControlGetHandle($hWnd,"","SysTreeView321")

WinActivate($hWnd)

$ret = _GUICtrlTreeView_FindItem($hTree ,"Server")

When I run this, MMC crashes, and a message box pops up saying "_WinAPI_ReadProcessMemory: Access is denied". Does anyone know why this is happening?

Link to comment
Share on other sites

  • 11 months later...

I'm trying to automate some things in the remote desktops mmc snap in, and I get an error when I try to use _GuiCtrlTreeView_FindItem..

#include <GuiTreeView.au3>

opt("WinTitleMatchMode",2)

$hWnd = WinGetHandle("Remote Connections")
$hTree = ControlGetHandle($hWnd,"","SysTreeView321")

WinActivate($hWnd)

$ret = _GUICtrlTreeView_FindItem($hTree ,"Server")

When I run this, MMC crashes, and a message box pops up saying "_WinAPI_ReadProcessMemory: Access is denied". Does anyone know why this is happening?

Hi

I'm trying to do the exact same thing!

I have come up with the same code, but I get a different, more generic windows error. This happens on Windows XP using the MMC RDP snapin.

Has anyone automated MMC RDP with autoit?

Thanks!

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...