The libfunc does not function correctly with my system.
This is the Enhancement Suggestion section. I am trying to suggest a needed enhancement that would hopefully be included in one of the next versions of Macro Scheduler.
I am trying to be as clear as possible as to what enhancement I am suggesting. The feature I am suggesting is very feasible using probably nearly identical program coding as waitcursorchange.
In my mind, the logical process of a waitcursorchange> command is as follows:
Code: Select all
get cursor type
wait until cursor type is different
continue script if it is different
I am suggesting that Macro Scheduler invent a new command for one of their next versions. In my mind, the logical process that I need is as follows:
Code: Select all
get cursor type and store its value in a variable
You have suggested the following code for me to use and you have also stated that it doesn't always work. The following code does not detect cursor type changes in my firefox browser (when set as the foreground window) nor in my IE browser (when set as the foreground window):
wait>3
SetFocus>Firefox*
//within firefox window, move mouse to blank area that displays a normal cursor (Normal Select cursor)
MouseMove>10,413
wait>1
LibFunc>user32,GetCursor,Cursor1
wait>1
//within firefox window, move mouse over a button that causes my cursor to change to a (Link Select cursor)
MouseMove>301,278
wait>1
LibFunc>user32,GetCursor,Cursor2
wait>1
//compare the two cursor variables
If>Cursor1Cursor2
MessageModal>Cursor changes on mouse move
Else
MessageModal>No Change to Cursor
Endif
However, the above code works great at detecting the cursor change when I test it on the Macro Scheduler window in the foreground. For example: (setfocus>Macro Scheduler*)
WaitCursorChange> works perfectly as is however, I want to get cursor, just like waitcursorchange> apparently does, but without the wait.
I don't want macro scheduler to do two things at one time.
STEP 1:I want to get the cursor type and store the cursor type into var_1.
STEP2 :I then would like for macro scheduler to move my mouse
STEP 3:I want to get the cursor type and store the cursor type into var_2.
STEP 4:I want to compare the two cursor variables to see if they are the same or different.
The logical code would be as follows: (assume that this new feature would work such as this: GetCursorType>resultVariable)
Code: Select all
//get cursor type (the pixture of the mouse could be an hourglass, pointer, or whatever)
GetCursorType>var_1
//move the mouse somewhere else on the screen
MouseMove>%X%,%Y%
//get cursor type (the pixture of the mouse could be an hourglass, pointer, or whatever)
GetCursorType>var_2
//Compare the first cursor type with the second cursor type
If>var_1=var_2
//do something
else
//do something else
endif
When I use the firefox window or internet explore the LibFunc returns the exact same variable no matter what my cursor type is.
Cursor1 always equals 65553 no matter what my cursor type is at the time of checking it.
I don't want to wait until my cursor changes: (aka: WaitCursorChanged>Timeout)
I want to test and see if my cursor has changed with a feature that is not currently included in Macro Scheduler: (aka: GetCursorType>resultVar)
I shouldn't need two macros to do this simple function. I will test libfunc more and attempt to find out why it isn't functioning correctly. But at this present time, the LibFunc isn't functioning correctly with my system and I have tested it using a number of different applications.