Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

如何用BCB寫一個這樣的程式??

0 views
Skip to first unread message

我是單身公害

unread,
Oct 11, 2001, 11:12:07 AM10/11/01
to

我想寫一個程式
可以把滑鼠移動的軌跡都存到一個檔案上
之後用程式repeat一次

我想問的重點在於如何讀取滑鼠的移動軌跡(每一個點)

其他的我知道如何寫...
請各位高手幫幫忙~~
--
[1;31mO [1;32mr [1;33mi [1;34mg [1;35mi [1;36mn [1;31m: [1;36m<不良牛牧場> [1;33mzoo.ee.ntu.edu.tw [1;32m(140.112.18.36) [m
[1;32mWelcome to SimFarm BBS [1;36m-- [m [1;31mFrom : [ [m140.112.251.160 [1;31m] [m

我怕熱訊

unread,
Oct 12, 2001, 4:02:00 AM10/12/01
to
※ 引述《OldS...@zoo.ee.ntu.edu.tw (我是單身公害)》之銘言:

> 我想寫一個程式
> 可以把滑鼠移動的軌跡都存到一個檔案上
> 之後用程式repeat一次
> 我想問的重點在於如何讀取滑鼠的移動軌跡(每一個點)
> 其他的我知道如何寫...
> 請各位高手幫幫忙~~

譬如在 Form上移動:

可� OnMouseMove 事件中記錄其 X Y 即可。


� void __fastcall TForm1::FormMouseMove(TObject *Sender, TShiftState Shift,
int X, int Y)
{
// X , Y 即滑鼠軌跡
}
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: itrifw.itri.org.tw

小若若

unread,
Oct 19, 2001, 10:02:32 AM10/19/01
to
你可以用 GetCursorPos 這個API來取得 Mouse 的座標, 全螢幕都有效哦.

POINT P;

GetCursorPos(&P); // 取得座標, 此時 P.x 和 P.y 就是你要的座標了.


"我是單身公害" <OldS...@zoo.ee.ntu.edu.tw> 撰寫於郵件
news:3ihWa8$0...@zoo.ee.ntu.edu.tw...

0 new messages