Jump to content

WTL_LISTVIEW Problem Right Click Item


Recommended Posts

[CLASS:WTL_LISTVIEW; INSTANCE:2]

Hi, i need right click on item of a listview -> Select 3 (third) in "Menu of a item of a listview"

#RequireAdmin
$Total = ControlListView("Window1", "", "[CLASS:WTL_LISTVIEW; INSTANCE:2]", "GetItemCount")

For $i = 1 to $Total
ControlListView("Window1", "", "[CLASS:WTL_LISTVIEW; INSTANCE:2]", "Select", $i)
ControlClick("Window1", "", "[CLASS:WTL_LISTVIEW; INSTANCE:2]", "right", 1)
Next

But ControlClick only Open the Menu for me. Not click. Some other method?

Link to comment
Share on other sites

Ty man, but i already try it. Not work. The handle is correct but nothing happens. I think it is a more complex listview.

With click works but only can open the menu and not click on the third menu item

Any idea?

I retest and the same thing happened the original script. He opens the "menu item", but not click on anything

Edited by GordonFreeman
Link to comment
Share on other sites

Try this :

Global $hUltraISOWnd, $aPos, $aRet

$hUltraISOWnd = WinGetHandle("UltraISO")

$aPos = WinGetPos($hUltraISOWnd)

$aRet = DllCall("user32.dll", "int", "WindowFromPoint", "long", $aPos[0] + $aPos[2] - 15, "long", $aPos[1] + 140)
ControlClick($hUltraISOWnd, "", $aRet[0], "right", 1, 10, 21 + 10)

ControlSend($hUltraISOWnd, "", "", "{DOWN 3}{ENTER}")

Br, FireFox.

Edited by FireFox
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...