以文本方式查看主题

-  蓝色快车PB俱乐部论坛  (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspindex.asp)
--  PowerBuilder MIS编程  (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspbbs.asp?boardid=1)
----  定义外部函数出错Mouse_Event  (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspdispbbs.asp?boardid=1&rootid=3338&id=4202)


--  作者:mylzzlcc
--  发布时间:2005/10/14 13:11:20

--  定义外部函数出错Mouse_Event
需要移动鼠标,定义一函数     SUBROUTINE Mouse_Event(long dwflag,long dx,long dy,long cbutton,long dwextra) LIBRARY "User32.dll"  
然后应用:
int lflag
lflag = 7 //1 = 移动鼠标指针, 7 = 按下左按钮, 25 = 按下右按钮
mouse_event(lflag,-80,-50,0,0)
  返回BAD  runtiming function   ***********************

不知道怎么了。
我用另一个函数移动鼠标         SetCursorPos(x,y)没有问题,可是我想移动之后,点击鼠标,怎么办?


--  作者:dahaidao
--  发布时间:2006/10/24 19:47:46

--  
我也遇到了同样的问题

">