Cod Posted September 21, 2023 Share Posted September 21, 2023 I am automating Eclipse IDE in a remote windows 10 system. I have used Windows Remote Desktop in Mac to connect to the windows system. In this automation, I need to search for "QueueManagers" in a SysTreeView32 and right-click it. There is another folder called "QueueManagersClusters" below QueueManagers. When I use RDP through Mac to connect to the windows system, I am able to click "QueueManagers" and right-click it. But when I use RDP through a Lenovo system to connect to the windows system, it clicks "QueueManagersClusters" instead of "QueueManagers". I have used the below code: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GuiTreeView.au3> WinActivate("eclipse-workspace - Trial/src/module-info.java - Eclipse IDE") Sleep(1000) Local $hWnd = ControlGetHandle("eclipse-workspace - Trial/src/module-info.java - Eclipse IDE", "", "SysTreeView321") ;MsgBox(0, "Handle", $hWnd) Sleep(1000) Local $searchText = "QueueManagers" $hItemFound = _GUICtrlTreeView_FindItem($hWnd, $searchText) ;MsgBox(0, "Result", $hItemFound) If $hItemFound Then Sleep(1000) _GUICtrlTreeView_ClickItem($hWnd, $hItemFound) _GUICtrlTreeView_ClickItem($hWnd, $hItemFound, "right") Send("{DOWN}") Send("{DOWN}") Send("{DOWN}") EndIf 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