Sign in to follow this  
Followers 0
MasonMill

Finding the blinking cursor in a field

4 posts in this topic

Hi i want to be able to know if there is a field ready to be typed in, if no then press {ENTER} to open the field up to type. But it is not a mouse cursor so can you even find it? Thanks!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

since im not sure about the program you're using i'll take a stab in the dark try:

MouseGetCursor

--------------------------------------------------------------------------------

Returns the cursor ID Number for the current Mouse Cursor.

MouseGetCursor ( )

Parameters

None.

Return Value

Returns a cursor ID Number:

0 = UNKNOWN (this includes pointing and grabbing hand icons)

1 = APPSTARTING

2 = ARROW

3 = CROSS

4 = HELP

5 = IBEAM

6 = ICON

7 = NO

8 = SIZE

9 = SIZEALL

10 = SIZENESW

11 = SIZENS

12 = SIZENWSE

13 = SIZEWE

14 = UPARROW

15 = WAIT

16 = HAND

ControlGetFocus

--------------------------------------------------------------------------------

Returns the ControlRef# of the control that has keyboard focus within a specified window.

ControlGetFocus ( "title" [, "text"] )

Parameters

title Title of window to check.

text [optional] Text from window to check.

Return Value

Success: Returns the ClassNameNN of the control that has keyboard focus within a specified window.

Failure: Returns "" (blank string) and sets @error to 1 if window is not found.

good luck

-1

Edited by Negative1

What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites

That doesnt work, becasue it not a mouse cursor i guess?

Share this post


Link to post
Share on other sites

what about controlgetfocus() it didn't show up in my original post for whatever reason.


What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

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