Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brief Cursor change
#1
is there a way to change the cursor briefly? i'd like to do this as a visual cue that the macro went off.
#2
I would try the following:

int hwnd=CreateWindowEx(0 "#32770" 0 ...) to create temporary window and make it active;
SetCapture(hwnd) to capture the mouse;
SetCursor(LoadCursor(0 IDC_WAIT));
wait;
SetCapture(0);
DestroyWindow(hwnd).
#3
Confusedhock:
WHEW!!! tried to make that work but couldn't fig out why i couldnt get the window to show up. Made some progress with MSDN's info but couldnt get there. then i realized osd baby!!!
:oops:

Code:
Copy      Help
str a b
double x y z
int px(xm) py(ym)
a="o"
b="Arial Black"
z=0.19
y=0.189
x=20
rep 2
,OnScreenDisplay("o" z px py b x 0x081EEF)
,wait y
,OnScreenDisplay("O" z px py b x 0x081EEF)
,wait y
#4
Quote:but couldn't fig out why i couldnt get the window to show up

forgot opt waitmsg 1 before wait. Without this, WM_PAINT and some other messages are not received.
#5
Tested. Using this method (SetCapture/SetCursor), cursor is changed only over that window or if mouse left button is pressed. Don't know other methods.


Forum Jump:


Users browsing this thread: 1 Guest(s)