赞
踩
# _*_ coding:UTF-8 _*_
'''
本文在原程序的基础上做了修改补充,更加清晰易懂。
get_mouse_point():返回当前鼠标的值(x,y)
mouse_move(x,y):移动鼠标
mouse_click(x,y):单击
mouse_dclick(x,y):双击
put(str='',flag=0):flag默认为0,则表示输入的字符串,为1:字符要表示的是快捷组合按键,快捷键要用空格分开
'''
import win32api
import win32con
import win32gui
from ctypes import *
import time
VK_CODE = {
'backspace':0x08,
'tab':0x09,
'clear':0x0C,
'enter':0x0D,
'shift':0x10,
'ctrl':0x11,
'alt':0x12,
'pause':0x13,
'caps_lock':0x14,
'esc':0x1B,
'spacebar':0x20,
'page_up':0x21,
'page_down':0x22,
'end':0x23,
'home':0x24,
'left_arrow':0x25,
'up_arrow':0x26,
'right_arrow':0x27,
'down_arrow':0x28,
'select':0x29,
'print':0x2A,
'execute':0x2B,
'print_screen':0x2C,
'ins':0x2D,
'del':0x2E,
'help':0x2F,
'0':0x30,
'1':0x31
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。