2131Views5Replies

Author Options:

how can i get the cursor position using cmd? Answered

how can i get the cursor position using cmd?

Discussions

0
None
orksecurity

8 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
None
Fox-san48orksecurity

Answer 8 years ago

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

0
None
orksecurityFox-san48

Answer 8 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
None
lemonie

8 years ago

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

L

0
None
Jayefuu

8 years ago

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