Ashishp_1
15 years agoContributor
Mouse cursor
Hi,
I have problem to do it...(In Testcomplete7 )
1) How Can I move mouse cursor?
2)How can I get mouse cursor Image?(eg..arrow, hand,etc) If it return any number...its ok.
3)If mouse cursor is related to my application , not with OS(System. using CLR bridge). Then How can I detect that?
Note: See I am holding down ctrl key and moving mouse over some objects, that time it changes cursor image over different positions.I want to catch all that images......In this scenario I want to move cursor to different positions and checking what is image at that position.
I tried ....its not helpful
var HomeWindow=Aliases["HomeWindow"]; ///this window may be any window.. have some objects.
var pid = Win32API.GetWindowThreadProcessId(HomeWindow.Handle, null);
var tid = Win32API.GetCurrentThreadId();
Win32API.AttachThreadInput(pid, tid, true);
var crsr = Win32API.GetCursor();
Win32API.AttachThreadInput(pid, tid, false);
Could anyone help me? Waiting for your valuable support.
Thanks
Ashish
I have problem to do it...(In Testcomplete7 )
1) How Can I move mouse cursor?
2)How can I get mouse cursor Image?(eg..arrow, hand,etc) If it return any number...its ok.
3)If mouse cursor is related to my application , not with OS(System. using CLR bridge). Then How can I detect that?
Note: See I am holding down ctrl key and moving mouse over some objects, that time it changes cursor image over different positions.I want to catch all that images......In this scenario I want to move cursor to different positions and checking what is image at that position.
I tried ....its not helpful
var HomeWindow=Aliases["HomeWindow"]; ///this window may be any window.. have some objects.
var pid = Win32API.GetWindowThreadProcessId(HomeWindow.Handle, null);
var tid = Win32API.GetCurrentThreadId();
Win32API.AttachThreadInput(pid, tid, true);
var crsr = Win32API.GetCursor();
Win32API.AttachThreadInput(pid, tid, false);
Could anyone help me? Waiting for your valuable support.
Thanks
Ashish
