covaks Posted September 2, 2008 Share Posted September 2, 2008 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 More sharing options...
itmorr Posted August 19, 2009 Share Posted August 19, 2009 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 More sharing options...
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