AAM Posted January 30, 2013 Posted January 30, 2013 Global $hCmdWnd, $aCmdPoss $hCmdWnd = WinGetHandle("[CLASS:Command Prompt]")If Not WinActive($hCmdWnd) Then WinActivate($hCmdWnd);$aCmdPos = WinGetPos($hCmdWnd) MouseClick("right", $aCmdPos[0] + 15, $aCmdPos[1] + 40, 1, 0);Send("{DOWN 4}{ENTER 2}") I took above script from somebody's post.In the mouse click can any body tell me how they calculate the x,y position?
Moderators JLogan3o13 Posted January 30, 2013 Moderators Posted January 30, 2013 $aCmdPos is getting the position of the Command Prompt Window in an x/y format ($aCmdPos[0] for x and $aCmdPos[1] for y), then calculating the position to click on from there. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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