Jump to content
Sign in to follow this  
covaks

_GuiCtrlTreeView_FindItem fails

Recommended Posts

covaks

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?

Share this post


Link to post
Share on other sites
itmorr

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!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.