Rodm00011
9 months agoOccasional Contributor
Wait for hourglass to turn to a pointer?
Im trying to determine if cursor is spinning (busy) or has changed back to pointer
the idea is
get_cursor_shape() // for example pointer
click button
while(get_cursor_shape == "Busy"){
delay("250");
get_cursor_shape()
}
in get_cursor_shape I am using
procID = Aliases.myApp.Id;
var pid = Win32API.GetWindowThreadProcessId(procID.Handle, null);
var tid = Win32API.GetCurrentThreadId();
Win32API.AttachThreadInput(pid, tid, true);
var crsr = Win32API.GetCursor();
but I consistently get a result of crsr = 65543
how can I check if mouse cursor is pointer or spinning wheel?