Sign in to follow this  
Followers 0
ThaSatelliteGuy

Need to get Cursor position(NOT MOUSE)

6 posts in this topic

I need to be able to get cursor position from an ANCIENT web terminal program. It gives it on the screen in the corner, so I COULD use a jimmy-rigged approach, but I would rather have a GET/SET type of command. I attached a scrnshot. Any help would be MOST appreciated since I am desperately trying to rid myself and my company of using this POS as much as we seem to have to!!!

Share this post


Link to post
Share on other sites



I need to be able to get cursor position from an ANCIENT web terminal program. It gives it on the screen in the corner, so I COULD use a jimmy-rigged approach, but I would rather have a GET/SET type of command. I attached a scrnshot. Any help would be MOST appreciated since I am desperately trying to rid myself and my company of using this POS as much as we seem to have to!!!

What does the AutoIt Info Window tell you about this control? Can you post the results so we can see what type of control it is?

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

What does the AutoIt Info Window tell you about this control? Can you post the results so we can see what type of control it is?

This is what it looks like with my mouse over top HOME button

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: DIRECTV Terminal Session

Class: java.awt.Frame

Size: X: 59 Y: 62 W: 888 H: 611

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 746 Y: 661

Cursor ID: 5

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0x000000 Dec: 0

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 616 Y: 537 W: 88 H: 18

Control ID: 38

ClassNameNN: Button38

Text: Home

Style: 0x5400000B

ExStyle: 0x00000000

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

Oh, and I just realized clicking the HOME button puts the cursor at upper left home

And next is what it looks like with my mouse out in the center:

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: DIRECTV Terminal Session

Class: java.awt.Frame

Size: X: 59 Y: 62 W: 888 H: 611

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 706 Y: 136

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0x7D9BE3 Dec: 8231907

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 0 W: 881 H: 483

Control ID:

ClassNameNN: SunAwtCanvas2

Text:

Style: 0x56000000

ExStyle: 0x00000000

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

Share this post


Link to post
Share on other sites

Java applet. Bummer... Maybe the IE folks can offer up some help for you.


Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Does the script in the help file under WinGetCaretPos do anything for you?

If not, you should be able to use PixelCheckSum to hunt for the cursor or to make a poor man's OCR on the info in the lower right.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

You may wanna try reading memory for it.


INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...

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  
Followers 0