您的位置:首页 > 财经 > 产业 > 网易企业邮箱收不到邮件怎么回事_北京营销型网站建设方案_什么是广告营销_自助发稿

网易企业邮箱收不到邮件怎么回事_北京营销型网站建设方案_什么是广告营销_自助发稿

2024/12/23 19:09:24 来源:https://blog.csdn.net/weixin_73510682/article/details/142199502  浏览:    关键词:网易企业邮箱收不到邮件怎么回事_北京营销型网站建设方案_什么是广告营销_自助发稿
网易企业邮箱收不到邮件怎么回事_北京营销型网站建设方案_什么是广告营销_自助发稿
import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.Scanner;public class Tset1 {public static void main(String[] args) throws AWTException {/*GUI*/Robot robot = new Robot();Scanner scanner = new Scanner(System.in);System.out.println("点赞1,666 2");int i3 = scanner.nextInt();System.out.println("输入x坐标");int i1 = scanner.nextInt();System.out.println("输入y坐标");int i2 = scanner.nextInt();// 打印鼠标位置的屏幕坐标if (i3 == 1) {pointDz(i1, i2, robot);} else {/*扣666*/robot.delay(3000);System.out.println("鼠标移动到文本框");pointK666(i1, i2, robot);}}/*666*/private static void pointK666(int i1, int i2, Robot robot) {for (int i = 0; i < 10; i++) {robot.mouseMove(i1, i2);/*扣666*/robot.keyPress(KeyEvent.VK_6);robot.keyRelease(KeyEvent.VK_6);robot.keyPress(KeyEvent.VK_6);robot.keyRelease(KeyEvent.VK_6);robot.keyPress(KeyEvent.VK_6);robot.keyRelease(KeyEvent.VK_6);robot.keyPress(KeyEvent.VK_ENTER);robot.keyRelease(KeyEvent.VK_ENTER);robot.delay(1000);// 获取当前鼠标位置Point mouseLocation = MouseInfo.getPointerInfo().getLocation();System.out.println("Mouse Screen Coordinates: (" + mouseLocation.x + ", " + mouseLocation.y + ")");if (i1 != mouseLocation.x) {break;}}}/*点赞*/private static void pointDz(int i1, int i2, Robot robot) throws AWTException {for (int i = 0; i < 10; i++) {robot.mouseMove(i1, i2);/*按下*/robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);/*松开*/robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);robot.delay(1000);/*滚轮向下*///robot.mouseWheel(1);// 获取当前鼠标位置Point mouseLocation = MouseInfo.getPointerInfo().getLocation();System.out.println("Mouse Screen Coordinates: (" + mouseLocation.x + ", " + mouseLocation.y + ")");if (i1 != mouseLocation.x) {break;}Color pixelColor = robot.getPixelColor(i1, i2);System.out.println(pixelColor.getBlue());System.out.println(pixelColor.getRed());System.out.println(pixelColor.getGreen());}}
}

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com