#coding=utf-8 ''' selenium ''' from selenium import webdriver as wd import time bc=wd.Chrome(executable_path='f:\\chromedriver') #bc=wd.Ie(executable_path='f:\\IEDriverServer') bc.get('https://www.sogou.com') #模拟键盘事件 from selenium.webdriver.common.ke…
public partial class Form1 : Form { public Form1() { InitializeComponent(); } [DllImport("USER32.DLL")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); //导入寻找windows窗体的方法 [DllImport("USER32.DLL")] publi…
这个也是做在线编辑用到的 选中文字快捷键.提高编辑效率 https://github.com/marquete/kibo 用法很简单 Examples var k = new Kibo(); Single or multiple key combinations k.down(['up', 'down'], function() { console.log('up or down arrow key pressed'); }).up('tab', function() { console.log…
var ele = document.getElementsByClassName('target_node_class')[0] //may have x and y properties in some browsers,But it always has left, top, right, and bottom properties. var rect = ele.getBoundingClientRect(); var touch = new Touch({ "identifier&qu…