jpm Posted December 1, 2004 Share 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? Link to comment Share on other sites More sharing options...
jpm Posted December 1, 2004 Author Share 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? Link to comment Share on other sites More sharing options...
jpm Posted December 1, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
jpm Posted December 2, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now