Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e676449

Browse files
committed
修复bug
1 parent f009066 commit e676449

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1493
-5475
lines changed

.idea/deployment.xml

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adb微信加好友/data/dump.xml

Lines changed: 77 additions & 407 deletions
Large diffs are not rendered by default.

adb微信加好友/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"""
55
@author: libuda
6-
@file: main.py
6+
@file: 远程服务器文件监控.py
77
@time: 2019/12/5 15:59
88
"""
99
import traceback

adb微信加好友/phone_number.xls

0 Bytes
Binary file not shown.

adb微信加好友/微信加好友简化.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"""
55
@author: libuda
6-
@file: main.py
6+
@file: 远程服务器文件监控.py
77
@time: 2019/12/5 15:59
88
"""
99
import traceback

adb微信加好友/快手刷红星.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
try:
1111
while 1:
12-
adb.click_by_text_after_refresh("去浏览")
12+
# adb.click_by_text_after_refresh("去浏览")
1313
time.sleep(3)
1414
adb.swipe()
1515
time.sleep(3)

pdf_to_word/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @Time : 2019/11/13 11:31
22
# @Author : Libuda
3-
# @FileName: main.py
3+
# @FileName: 远程服务器文件监控.py
44
# @Software: PyCharm
55
import os
66
from configparser import ConfigParser

python开发/keywords.xls

0 Bytes
Binary file not shown.

qq加群/main.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# @Time : 2020/3/5 12:30
2+
# @Author : Libuda
3+
# @FileName: 远程服务器文件监控.py
4+
# @Software: PyCharm
5+
import os
6+
import time
7+
import win32gui
8+
import win32api
9+
import win32con
10+
11+
# 设置appdict
12+
pyexe = "E:\...\python.exe"
13+
appdict = {'qq': '"D:\...\QQScLauncher.exe"',
14+
'pl/sql': '"E:\...\plsqldev.exe"',
15+
'idea': '"E:...\idea64.exe"',
16+
'chrome': '"C:\...\chrome.exe"'}
17+
# qq登录按钮位置,pl/sql取消按钮位置,idea第一个工程的位置
18+
coorddict = {'qq': [960, 665], 'pl/sql': [1060, 620], 'idea': [700, 245]}
19+
namedict = {'qq': 'QQ', 'pl/sql': 'Oracle Logon', 'idea': 'Welcome to IntelliJ IDEA'}
20+
21+
22+
# 打开应用并且鼠标点击按钮(获取按钮的像素坐标很麻烦)
23+
def open_by_grab():
24+
pyhd = win32gui.FindWindow("TXGuiFoundation ", u'查找') # 360会拦截pyexe,可以添加信任或者关闭360
25+
# 设置pyexe窗口属性和位置,太大会挡住一些窗口
26+
win32gui.SetWindowPos(pyhd, win32con.HWND_TOPMOST, 0, 0, 500, 500, win32con.SWP_SHOWWINDOW)
27+
print("py exe 句柄: %s ..." % pyhd)
28+
for key in appdict.keys():
29+
print("启动 %s ..." % key)
30+
os.popen(r'%s' % appdict[key]) # os.system会阻塞
31+
time.sleep(3)
32+
if key == "chrome":
33+
pass
34+
else:
35+
winhd = win32gui.FindWindow(None, namedict[key]) # 根据窗口名获取句柄
36+
while winhd == 0:
37+
print("等待获取%s窗口 ..." % key)
38+
time.sleep(3)
39+
winhd = win32gui.FindWindow(None, namedict[key])
40+
print("获取%s窗口成功,开始登录 ..." % key)
41+
a, b = coorddict[key]
42+
mouse_click(a, b)
43+
time.sleep(3)
44+
print("完毕 ...")
45+
time.sleep(1)
46+
win32gui.SendMessage(pyhd, win32con.WM_CLOSE)
47+
48+
49+
# 模拟鼠标点击
50+
def mouse_click(a, b):
51+
time.sleep(1)
52+
win32api.SetCursorPos((a, b))
53+
time.sleep(1)
54+
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) # 360会拦截虚拟按键,可以添加信任或者关闭360
55+
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
56+
57+
58+
def test():
59+
classname = "TXGuiFoundation"
60+
titlename = "查找"
61+
# 获取句柄
62+
hwnd = win32gui.FindWindow(classname, titlename)
63+
# 获取窗口左上角和右下角坐标
64+
left, top, right, bottom = win32gui.GetWindowRect(hwnd)
65+
print(left, top, right, bottom)
66+
67+
# win32api.SendMessage(hwnd, win32con.WM_SETTEXT, 0, "ss".encode('gbk'))
68+
69+
70+
if __name__ == '__main__':
71+
from pywinauto.application import Application
72+
73+
# Run a target application
74+
try:
75+
app = Application().start("D:\Bin\QQScLauncher.exe")
76+
# Select a menu item
77+
app.UntitledNotepad.menu_select("帮助(&H)")
78+
# Click on a button
79+
app.AboutNotepad.Edit.click()
80+
# Type a text string
81+
app.UntitledNotepad.Edit.type_keys("pywinauto Works!", with_spaces=True)
82+
except Exception as e:
83+
print(e)

register.py

Lines changed: 0 additions & 188 deletions
This file was deleted.

youtobe下载/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @Time : 2019/12/17 9:24
22
# @Author : Libuda
3-
# @FileName: main.py
3+
# @FileName: 远程服务器文件监控.py
44
# @Software: PyCharm
55
import subprocess
66

主域名提取/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @Time : 2020/2/21 15:54
22
# @Author : Libuda
3-
# @FileName: main.py
3+
# @FileName: 远程服务器文件监控.py
44
# @Software: PyCharm
55
import os
66

主域名提取/tes.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# @Time : 2020/3/10 11:42
2+
# @Author : Libuda
3+
# @FileName: tes.py
4+
# @Software: PyCharm
5+
tem = """ModelNo:890638376,
6+
KernelVer:3.6.3.0,
7+
AppVer:3.6.109.1,
8+
ModelName:FNC-C3-irbow-ZWH,
9+
2002:1,
10+
2004:0,
11+
2005:0,
12+
2007:1,
13+
2008:1,
14+
2010:2,
15+
2011:2,
16+
2012:1,
17+
2013:1,
18+
2014:0,
19+
2033:1,
20+
getProductConfig:OK,"""
21+
tem_dict = {}
22+
tem_lis = tem.split("\n")
23+
print(tem_lis)
24+
for one in tem_lis:
25+
tem_dict.update({key, words} for key, words in one.split(":"))
26+
print(tem_dict)

0 commit comments

Comments
 (0)