var
x,y : integer;
begin
x := 100;
y ;= 100;
SetCursorPos(x,y);
sendmessage(handle,WM_LBUTTONDBLCLK,0,0);
end;
x,y : integer;
begin
x := 100;
y ;= 100;
SetCursorPos(x,y);
sendmessage(handle,WM_LBUTTONDBLCLK,0,0);
end;
解决方案 »
- UpdateBatch與post有何不同?
- 小弟刚学delphi,请大虾指点一下!!!
- 请问如何联结有密码的access数据库文件
- 大虾门进来看看!!!!!!!!!! (问题解决马上给分!!)
- 一个棘手的问题以前从没遇到过,请大家帮个忙?谢谢了!
- 操作系统题(求救!)
- 谁能给我讲讲SendMessage()函数。
- *****************帮我看看这段简单程序的代码*****************
- 如何隐藏主窗体?part2
- IE外壳扩展的程序
- 有一个按钮,软件自动将鼠标移动到一个指定坐标,并双击它。(在windows窗口中,不是在自己并身的软件上)
- listview1.Items[s].Caption;为什么出错,该怎样写?
begin
SetCursorPos(Button2.Left+Left+25,Button2.Top+Top+35);
sendmessage(Button2.Handle,WM_LBUTTONDown,0,0);
end;procedure TForm1.Button2MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
showmessage('mouse down');
end;
这条命令只是按下了鼠标左键,没有弹出来。
mouse_event( MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0 );
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
mouse_event( MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0 );
我成功了。自己解决了。