MasterMrK Posted December 10, 2009 Share Posted December 10, 2009 Ask yourself do ControlClick to use the command window, as in the structure required ControlClick Class or Instance that the Info Window is not used to obtain information of Class or Instance And also ask yourself two MouseClick command and command ControlClick also used to Click My question is can people say that high-level API commands, but do not have any examples. You do your best to help nhé. Thanks Link to comment Share on other sites More sharing options...
Nahuel Posted December 10, 2009 Share Posted December 10, 2009 Haha, what? "ask yourself"? I smell an online translator? Link to comment Share on other sites More sharing options...
MasterMrK Posted December 10, 2009 Author Share Posted December 10, 2009 (edited) sorry, I'm not good at English, should be with the help of google You do not make the teaser Edited December 10, 2009 by MasterMrK Link to comment Share on other sites More sharing options...
Nahuel Posted December 10, 2009 Share Posted December 10, 2009 Yes, well I'm sorry. I do not understand what you meant to ask at all. Link to comment Share on other sites More sharing options...
MasterMrK Posted December 11, 2009 Author Share Posted December 11, 2009 (edited) my mean is how to use ControlClick not get the parameters of it on the Info Window Tab Control (parameters such as the Class, Instance, ..) Edited December 11, 2009 by MasterMrK Link to comment Share on other sites More sharing options...
ASo51 Posted December 11, 2009 Share Posted December 11, 2009 (edited) You can't since the menu item "File" has no ControlID. You still can use MouseClick or MouseClickPlus. The Plus version supposedly can click into minimized windows without the need for controls. Have to check it out myself though. Thats actually why i am on the forumright now too and i had a good laugh reading the second post in this thread. MouseclickPlus: expandcollapse popup;=============================================================================== ; ; Function Name: _MouseClickPlus() ; Version added: 0.1 ; Description: Sends a click to window ; minimized. ; Parameter(s): $Window = Title of the window to send click to ; $Button = "left" or "right" mouse button ; $X = X coordinate ; $Y = Y coordinate ; $Clicks = Number of clicks to send ; Remarks: You MUST be in "MouseCoordMode" 0 to use this without bugs. ; Author(s): Insolence <insolence_9@yahoo.com> ; ;=============================================================================== Func _MouseClickPlus($Window, $Button = "left", $X = "", $Y = "", $Clicks = 1) Local $MK_LBUTTON = 0x0001 Local $WM_LBUTTONDOWN = 0x0201 Local $WM_LBUTTONUP = 0x0202 Local $MK_RBUTTON = 0x0002 Local $WM_RBUTTONDOWN = 0x0204 Local $WM_RBUTTONUP = 0x0205 Local $WM_MOUSEMOVE = 0x0200 Local $i = 0 Select Case $Button = "left" $Button = $MK_LBUTTON $ButtonDown = $WM_LBUTTONDOWN $ButtonUp = $WM_LBUTTONUP Case $Button = "right" $Button = $MK_RBUTTON $ButtonDown = $WM_RBUTTONDOWN $ButtonUp = $WM_RBUTTONUP EndSelect If $X = "" OR $Y = "" Then $MouseCoord = MouseGetPos() $X = $MouseCoord[0] $Y = $MouseCoord[1] EndIf For $i = 1 to $Clicks DllCall("user32.dll", "int", "SendMessage", "hwnd", WinGetHandle($Window), "int", $WM_MOUSEMOVE, "int", 0, "long", _MakeLong($X, $Y)) DllCall("user32.dll", "int", "SendMessage", "hwnd", WinGetHandle($Window), "int", $ButtonDown, "int", $Button, "long", _MakeLong($X, $Y)) DllCall("user32.dll", "int", "SendMessage", "hwnd", WinGetHandle($Window), "int", $ButtonUp, "int", $Button, "long", _MakeLong($X, $Y)) Next EndFunc Func _MakeLong($LoWord,$HiWord) Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF)) EndFunc OMG this was my first post. I've lost the uber power of invisibility. Edited December 11, 2009 by ASo51 Link to comment Share on other sites More sharing options...
MasterMrK Posted December 12, 2009 Author Share Posted December 12, 2009 thanks you so much . but I do not know how to use it, but I used include error. You can help me write a more complete code "^.^" 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