MasonMill Posted March 25, 2010 Share Posted March 25, 2010 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! Link to comment Share on other sites More sharing options...
Negative1 Posted March 25, 2010 Share Posted March 25, 2010 (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 = HANDControlGetFocus -------------------------------------------------------------------------------- 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 March 25, 2010 by Negative1 What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world. Link to comment Share on other sites More sharing options...
MasonMill Posted March 25, 2010 Author Share Posted March 25, 2010 That doesnt work, becasue it not a mouse cursor i guess? Link to comment Share on other sites More sharing options...
Negative1 Posted March 25, 2010 Share Posted March 25, 2010 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now