当前位置:网站首页>Simulate mouse click
Simulate mouse click
2022-07-03 10:02:00 【Master Hao】
void MainWindow::clicked()
{
// QMouseEvent *mEvnPress;
// QMouseEvent *mEvnRelease;
// mEvnPress = new QMouseEvent(QEvent::MouseButtonPress, pos, Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
// QApplication::sendEvent(QWidget::focusWidget(),mEvnPress);
// mEvnRelease = new QMouseEvent(QEvent::MouseButtonRelease, pos, Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
// QApplication::sendEvent(QWidget::focusWidget(),mEvnRelease);
HWND hq = FindWindow(L"LWnd_3668379641", L" Blue snow in love - The return of the king beta ");
if (hq != NULL)
{
int x=100,y=100; // Define bench marks
while(true)
{
Sleep(100);
::SendMessage(hq, WM_LBUTTONDOWN, 0, MAKELPARAM(200,200));
Sleep(200);
::SendMessage(hq, WM_LBUTTONUP, 0, MAKELPARAM(200,200));
}
}
else
{
qDebug() << QString::fromLocal8Bit(" No corresponding window found ");
}
}
边栏推荐
- 单片机现在可谓是铺天盖地,种类繁多,让开发者们应接不暇
- Fundamentals of Electronic Technology (III)__ Chapter 1 resistance of parallel circuit
- Mobile phones are a kind of MCU, but the hardware it uses is not 51 chip
- When you need to use some functions of STM32, but 51 can't realize them, 32 naturally doesn't need to learn
- Stm32 NVIC interrupt priority management
- 新系列单片机还延续了STM32产品家族的低电压和节能两大优势
- 当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
- 干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
- The 4G module designed by the charging pile obtains NTP time through mqtt based on 4G network
- Emballage automatique et déballage compris? Quel est le principe?
猜你喜欢

Idea remote breakpoint debugging jar package project

学历是一张通行证,门票,你有了它,可以踏入更高层次的环境里

There is no specific definition of embedded system

干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己

Not many people can finally bring their interests to college graduation

51 MCU tmod and timer configuration

学习开发没有捷径,也几乎不存在带路会学的快一些的情况
![[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)](/img/19/5dc152b3fadeb56de50768561ad659.jpg)
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)

一个可执行的二进制文件包含的不仅仅是机器指令

03 FastJson 解决循环引用
随机推荐
Exception handling of arm
2312、卖木头块 | 面试官与狂徒张三的那些事(leetcode,附思维导图 + 全部解法)
Openeuler kernel technology sharing - Issue 1 - kdump basic principle, use and case introduction
Screen display of charging pile design -- led driver ta6932
Do you understand automatic packing and unpacking? What is the principle?
[Li Kou brush question notes (II)] special skills, module breakthroughs, classification and summary of 45 classic questions, and refinement in continuous consolidation
Pymssql controls SQL for Chinese queries
yocto 技術分享第四期:自定義增加軟件包支持
My 4G smart charging pile gateway design and development related articles
学历是一张通行证,门票,你有了它,可以踏入更高层次的环境里
Project cost management__ Plan value_ Earned value_ Relationship among actual cost and Countermeasures
03 fastjason solves circular references
Basic knowledge of communication interface
Project cost management__ Cost management technology__ Article 7 completion performance index (tcpi)
Simple use of MySQL (addition, deletion, modification and query)
01仿B站项目业务架构
STM32 interrupt switch
How does the memory database give full play to the advantages of memory?
LeetCode - 673. 最长递增子序列的个数
LeetCode - 919. 完全二叉树插入器 (数组)