社区
VB基础类
帖子详情
提问:点击鼠标左键的次数
LichKingSZ
2002-08-05 10:51:52
我想记录下系统运行中,用户的点击鼠标左键的次数(是在整个操作系统下点击的都要记下来),用什么API函数?
...全文
126
7
打赏
收藏
提问:点击鼠标左键的次数
我想记录下系统运行中,用户的点击鼠标左键的次数(是在整个操作系统下点击的都要记下来),用什么API函数?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lvlvlvlylyly
2002-08-18
打赏
举报
回复
http://218.244.44.6/cns.dll?fw=cm2&name=%CA%F3%B1%EA%B9%B3%D7%D3
这是我给你找的,不过好象没有VB的缘码!
你还是自己先熟悉一下HOOK的原理吧!
lvlvlvlylyly
2002-08-18
打赏
举报
回复
不过好象还是有个函数可以判断鼠标的状态的!
我再找找!
没想到你还在等!我都忘了!
你每次来的时候可以点“将帖子提前”这样就有好多新人可以看到你的帖子了
lvlvlvlylyly
2002-08-18
打赏
举报
回复
你要的功能只有通过HOOK实现!
做一个鼠标钩子拦截鼠标消息,如果鼠标有你想要的动作就用一个值保存起来,然后再将此消息传给系统!
建议你去查找一下关于钩子函数的资料!
一两句话说不清楚的!
不好意思!让你久等了!
lvlvlvlylyly
2002-08-05
打赏
举报
回复
这个其实是个键盘记录程序,键盘记录可以记下鼠标动作,并且区分左右键
我回去看看!
LichKingSZ
2002-08-05
打赏
举报
回复
不是的,我要记的不是VB工程本身的点击,是操作系统的,这个不用API可以的?
lily0000000
2002-08-05
打赏
举报
回复
定义一个全局变量
在任何一个控件(包括窗体)的KeyPress事件中判断是否是左键点击,是,则:全局变脸的值+1;否,则不加。用不着API
LichKingSZ
2002-08-05
打赏
举报
回复
好的,麻烦啦
成功后我给你200分
PAT甲级 1044 Shopping in Mars (25分)
PAT甲级 1044 Shopping in Mars (25分) 这种狗屎的,只卡一个点,又不知道这个点是什么数据什么情况,还要自己取揣测,真难受! 本人代码附上 采用前后指针法,暴力解题! #include <iostream> #include <map> #include <vector> #include <algorithm> #include <cstring> #include <string> using names
PAT甲级.1044. Shopping in Mars (25)
题意 Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M). When making the payment, the chain can be cut at any position
PAT 甲级 1044 Shopping in Mars (25 分)
1044 Shopping in Mars (25 分) Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the cha...
1044 Shopping in Mars (25 分)-PAT甲级
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can be cut at any position for only once and some of the diamonds are taken off the
PAT A 甲级 1044 Shopping in Mars (25分)
1044 Shopping in Mars (25分) 吐槽 怎么又是火星人?你们比小明还事多。 思路 逻辑蛮简单的,成块找可行的组合就行。用遍历的话,一个循环遍历头,里面套一个循环遍历尾,判断这个头尾能不能行,复杂度O(n2)。 然而超时。 不过解决方法也还算简单。先找到以1为头的第一个可行组合,然后移到2为头时判断去掉1是否还够大,够则成为新方法,不够则把尾往后移到够大,然后判断和已有的最小支...
VB基础类
7,788
社区成员
197,583
社区内容
发帖
与我相关
我的任务
VB基础类
VB 基础类
复制链接
扫一扫
分享
社区描述
VB 基础类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章