Jump to content
Sign in to follow this  
AAM

need help

Recommended Posts

AAM

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?

Share this post


Link to post
Share on other sites
JLogan3o13

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


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
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
Sign in to follow this  

×