jpm 93 Posted December 1, 2004 I cannot manage to have the following workingAutoItSetOption("WinTitleMatchMode", 4) Run ( 'mmc.exe ' & @SystemDir & '\devmgmt.msc' ) WinWaitActive ( "Device Manager") $hWin=WinGetHandle("Device Manager") ControlSend($hWin,"","ToolbarWindow322","!vv"); show by connection ;ControlSend($hWin,"",4097,"!vv"); show by connection; NOT WORKING EITHER the second v is not received. is it a case where we cannot use ControlSend and we have to use Send? Share this post Link to post Share on other sites
jpm 93 Posted December 1, 2004 try...ControlFocus($hWin,"","ToolbarWindow322")ControlSend($hWin,"","ToolbarWindow322","!vv")Lar.<{POST_SNAPBACK}>That's working. Any idea why it is needed to work that way?Do we need to document how to controlsend to a menu/submenu? Share this post Link to post Share on other sites
jpm 93 Posted December 1, 2004 (edited) surprisingly enough justControlSend($hWin,"","ToolbarWindow322","{ALT}vv") ; show by connectionis working edited: evenControlSend($hWin,"","","{ALT}vv") ; show by connection Edited December 1, 2004 by jpm Share this post Link to post Share on other sites
jpm 93 Posted December 2, 2004 Now the question is why a second Controlsend need to wait? AutoItSetOption("WinTitleMatchMode", 4) Run ( 'mmc.exe ' & @SystemDir & '\devmgmt.msc' ) WinWaitActive ( "Device Manager") $hWin=WinGetHandle("Device Manager") ControlSend($hWin,"","ToolbarWindow322","{ALT}vw"); show hidden device Sleep(250) ; mandatory for next Controlsend (250 work on my system) ControlSend($hWin,"","ToolbarWindow322","{ALT}vv"); show by connection Share this post Link to post Share on other sites