Jump to content
Sign in to follow this  

ControlListView an right click?

Recommended Posts

hi all is there a way after you use ControlListView to sleect a item is there an way to have ControlListView do a right click i used window info tool x205 y is 89 but the mouse dos not go the the creact spot thanks gor all help

Dim $objshell;$test
$objshell = ObjCreate('shell.application')
WinWaitActive("Network Connections", "")
WinSetState("Network Connections","",@SW_MAXIMIZE)
$test = ControlListView("Network Connections", "FolderView","SysListView321","FindItem","Wireless Network Connection")
ControlListView("Network Connections", "FolderView","SysListView321","select",$test)
;ControlClick("Network Connections", "FolderView","SysListView321","right",1)
$pos = ControlGetPos("Network Connections", "FolderView","SysListView321")
;MsgBox(0, "Window Stats:", "POS: " & $pos[0] & "," & $pos[1]  )

Share this post

Link to post
Share on other sites

Controls use Client coords (Opt("MouseCoordMode", 2))

Personally, I would have tried ControlClick() with the "right" button option, or if as thatsgreat said, the Auto3Lib by PaulIA may have something even better.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post

Link to post
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
Sign in to follow this  

  • Create New...