python---pyautogui

# -*- coding: utf-8 -*-
import pyautogui
import time
print("解除现场引当")
#切换到网页
#pyautogui.moveTo(163,753,duration=0.2)
#pyautogui.click()
a = 344  
b = 1
c = 3
n1 = time.time()
count1 =0
while count1 < c:
    count = 0
    pyautogui.moveTo(163,753,duration=0.2)
    pyautogui.click()
    
    while count < b:
        pyautogui.moveTo(699,a,duration=0.3)
        pyautogui.click()
        
        pyautogui.moveTo(816,79,duration=0.3)
        pyautogui.click()
         
        pyautogui.moveTo(699,328,duration=0.3)
        pyautogui.click()
        pyautogui.press('enter') 
    #    pyautogui.moveTo(915,84,duration=0.2)
    #    pyautogui.click()
        count = count + 1
    else:
        print (count, " 大于或等于 5")
    #点击数据库
    pyautogui.moveTo(220,751,duration=0.1)
    pyautogui.click()
    #运行数据库
    pyautogui.press('f5')
    #复制品目编码
    pyautogui.moveTo(296,468,duration=0.1)
    pyautogui.click()
    pyautogui.hotkey('ctrl', 'c')
    #切换到网页
    pyautogui.moveTo(163,753,duration=0.1)
    pyautogui.click()
    #粘贴品目编码
    pyautogui.moveTo(287,197,duration=0.1)
    pyautogui.doubleClick()
    pyautogui.hotkey('ctrl', 'v')
    
    #点击数据库
    pyautogui.moveTo(220,751,duration=0.1)
    pyautogui.click()
    #复制线别编码
    pyautogui.moveTo(353,464,duration=0.1)
    pyautogui.click()
    pyautogui.hotkey('ctrl', 'c')
    #切换到网页
    pyautogui.moveTo(163,753,duration=0.1)
    pyautogui.click()
    #粘贴品目编码
    pyautogui.moveTo(235,243,duration=0.1)
    pyautogui.doubleClick()
    pyautogui.hotkey('ctrl', 'v')
    #刷新网页
    pyautogui.press('enter') 
    
#    #点击数据库
#    pyautogui.moveTo(220,751,duration=0.2)
#    pyautogui.click()
#    #复制条目次数
#    pyautogui.moveTo(401,468,duration=0.5)
#    pyautogui.click()
#    pyautogui.hotkey('ctrl', 'c')
    #切换到python
    pyautogui.moveTo(414,752,duration=0.2)
    pyautogui.click()
    #粘贴条目次数
#    pyautogui.moveTo(808,261,duration=0.2)
#    pyautogui.doubleClick()
#    pyautogui.hotkey('ctrl', 'v')
#    
    count1 = count1 + 1
else:
    print (count, " 大于或等于 6")

n2 = time.time()
n3 = n2-n1
print(n3)
#运行系统
#pyautogui.press('f5') 



#
#pyautogui.moveTo(415,758,duration=0.2)
#pyautogui.doubleClick()

#print("更新现场库存")    
##a =344   
#b = 1
#count = 0
#while count < b:
#    pyautogui.moveTo(77,282,duration=0.8)
#    pyautogui.click()
#    
#    pyautogui.moveTo(703,72,duration=0.8)
#    pyautogui.click()
#     
#    pyautogui.moveTo(862,75,duration=0.4)
#    pyautogui.click()
#     
##    pyautogui.moveTo(915,84,duration=0.05)
##    pyautogui.click()
#    count = count + 1
#else:
#    print (count, " 大于或等于 5")
#pyautogui.moveTo(1222,76,duration=0.8)
#pyautogui.click()   
#
#pyautogui.moveTo(28,336,duration=0.8)
#pyautogui.click()  
#
#pyautogui.moveTo(163,224,duration=0.8)
##pyautogui.click()  
#
##pyautogui.moveTo(163,224, duration=0.8)
#pyautogui.click(button = 'right')  
#
#pyautogui.moveTo(242, 317,duration=0.2)
#pyautogui.click()  
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值