Jump to content

Need to get Cursor position(NOT MOUSE)


Recommended Posts

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

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

Link to comment
Share on other sites

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]

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
 Share

  • Recently Browsing   0 members

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