Jump to content

Recommended Posts

Posted

[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?

Posted (edited)

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
Posted (edited)

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

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
×
×
  • Create New...