Jump to content

need help


Recommended Posts

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?

Link to comment
Share on other sites

  • Moderators

$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!

Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...