如何单击屏幕上的坐标? [英] How to click on a coordinate on a screen?

查看:63
本文介绍了如何单击屏幕上的坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个想要在屏幕上单击的程序;假设我的屏幕是X x Y像素,我想让我的程序发送点击以进行协调(x,y).任何语言都是可以接受的,但最好是Ruby,Java或Python:)

I have a program that wants to be able to click on the screen; say my screen is X by Y pixels, I want to make my program send clicks to coordinate (x, y). Any language is acceptable, but preferably Ruby, Java, or Python :)

最好在Windows上,Ubuntu是另一种可能性.

Preferably on Windows, Ubuntu is another possibility.

感谢您的帮助.

推荐答案

我会简短回答您的问题,但我相信这里的文章比我解释的要好得多,并且会带来更多好处.它使用Java语言编写,并遍历了适用于输入模拟的Robot类,主要适用于诸如技术演示之类的事情,其中​​Robot类替代了实际的用户输入.它的深度很短,而且很容易阅读.希望你喜欢!

I would give a short answer to your question, but I believe that this article here explains things a lot better than I would and would be much more beneficial. It's in Java and goes over the Robot class which is good for input simulations, mainly for things such as tech demos where the robot class substitutes for real user input. It's fairly in depth, short, and is a really easy read. Hope you enjoy!

这篇关于如何单击屏幕上的坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆