Jump to content

dubd83

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by dubd83

  1. I am trying to click on a tab within an SWT_Window0. The problem is autoit can not see the tab's text and there is no controlid. I have tried using commands to obtain a handle and text with no luck. Any ideas on how to get control of this tab?
  2. Thanks for your post, I ended up using the following code. $treeView_hnd = ControlGetHandle($title, "", $window) $findItem = _GUICtrlTreeView_FindItem($treeView_hnd, "Scapa Test Trace - FullTest", True) _GUICtrlTreeView_ClickItem($treeView_hnd, $findItem, "Right") Sleep(200) Send("{DOWN 9}") Sleep(500) Send("{ENTER}") Sleep(500) ControlClick($abort_title, "", $abort_button)
  3. I am afraid that doesn't work. When I output $treeItem to a msgbox it returns 0 as in the item was not found. I tried the handle of the treeview itself and the handle of the context menu.
  4. I am working on an automation project and I am having issues finding documentation on selecting an item from a context menu, or a menu that appears upon a right click. I tried using the Send("{DOWN}") command as a workaround but it's not very redundant. Essentially I need to search the context menu for the string "Abort Text" and click that option. The class of the context menu is showing as CLASS:#32768. I have uploaded a portion of the context menu. If it helps I have the handle of the treeview where the first item is right clicked in order to make the treeview appear.
  5. Thanks for your response, I tried the following but still no luck. $treeView_hnd = ControlGetHandle($title, "", $window) $findItem = _GUICtrlTreeView_FindItem($treeView_hnd, "Scapa Test Trace - FullTest 20170605-11403", $bInStr = True) _GUICtrlTreeView_ClickItem($treeView_hnd, $findItem) Update, I failed to realize that the variable didn't need to be in the actual code. The following code worked. $treeView_hnd = ControlGetHandle($title, "", $window) $findItem = _GUICtrlTreeView_FindItem($treeView_hnd, "Scapa Test Trace - FullTest", True) _GUICtrlTreeView_ClickItem($treeView_hnd, $findItem)
  6. I am working on automating an application and need to be able to click on an item in a treeview. I can successfully select the item if I match the text perfectly but the problem is the text changes during each launch of the application. The end of the text takes on a date and state so the tail end of the control is always different. I am trying to figure out how to insert a wildcard so I can click on the treeview item regardless of what the date is. The following code clicks on what I need but doesn't have a wildcard in it so it only works once. $treeView_hnd = ControlGetHandle($title, "", $window) $findItem = _GUICtrlTreeView_FindItem($treeView_hnd, "Scapa Test Trace - FullTest 20170530-090754") _GUICtrlTreeView_ClickItem($treeView_hnd, $findItem)
×
×
  • Create New...