2650Views5Replies

Author Options:

how can i get the cursor position using cmd? Answered

how can i get the cursor position using cmd?

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
orksecurity
orksecurity

10 years ago

In the old days, you were *sometimes* able to do this in a text window via ANSI escape-code sequences (the same kinds of sequences used to change text color and move the cursor). Not always. And, as I say, it works only on a text screen if it works at all.

I suspect you're trying to do something that's beyond the capabilities of the .cmd language. Might be time to learn how to program.

0
Fox-san48
Fox-san48

Answer 10 years ago

I was thinking cursor as in arrow (the one commonly mistaken as mouse by non-computer people)

0
orksecurity
orksecurity

Answer 10 years ago

Not unless you write or find a program which can be invoked from the batch file and which will leave the answer somewhere that the batch file can retrieve it from... at which point you might as well switch to a language which can talk to the GUI system directly.

0
lemonie
lemonie

10 years ago

What are you asking about? The question is really vague.

L

0
Jayefuu
Jayefuu

10 years ago

I don't know. But I've done it with AutoHotKey before. Very useful program.