pywechat127 1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pywechat127/Errors.py +65 -0
- pywechat127/Warnings.py +4 -0
- pywechat127/__init__.py +2 -0
- pywechat127/uielements.py +71 -0
- pywechat127/wechatTools.py +1065 -0
- pywechat127/wechatauto.py +4238 -0
- pywechat127/winSettings.py +334 -0
- pywechat127-1.0.dist-info/LICENSE.txt +201 -0
- pywechat127-1.0.dist-info/METADATA +76 -0
- pywechat127-1.0.dist-info/RECORD +12 -0
- pywechat127-1.0.dist-info/WHEEL +5 -0
- pywechat127-1.0.dist-info/top_level.txt +1 -0
pywechat127/Errors.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'''各种可能产生的错误'''
|
|
2
|
+
class PathNotFoundError(Exception):
|
|
3
|
+
pass
|
|
4
|
+
class TimeNotCorrectError(Exception):
|
|
5
|
+
pass
|
|
6
|
+
class HaveBeenPinnedError(Exception):
|
|
7
|
+
pass
|
|
8
|
+
class HaveBeenUnpinnedError(Exception):
|
|
9
|
+
pass
|
|
10
|
+
class FiletoCopyfileError(Exception):
|
|
11
|
+
pass
|
|
12
|
+
class NoSuchFriendError(Exception):
|
|
13
|
+
pass
|
|
14
|
+
class HaveBeenMutedError(Exception):
|
|
15
|
+
pass
|
|
16
|
+
class HaveBeenStickiedError(Exception):
|
|
17
|
+
pass
|
|
18
|
+
class HaveBeenUnmutedError(Exception):
|
|
19
|
+
pass
|
|
20
|
+
class HaveBeenUnstickiedError(Exception):
|
|
21
|
+
pass
|
|
22
|
+
class HaveBeenStaredError(Exception):
|
|
23
|
+
pass
|
|
24
|
+
class HaveBeenUnstaredError(Exception):
|
|
25
|
+
pass
|
|
26
|
+
class HaveBeenInBlackListError(Exception):
|
|
27
|
+
pass
|
|
28
|
+
class HaveBeenOutofBlackListError(Exception):
|
|
29
|
+
pass
|
|
30
|
+
class HaveBeenSetChatonlyError(Exception):
|
|
31
|
+
pass
|
|
32
|
+
class HaveBeenSetUnseentohimError(Exception):
|
|
33
|
+
pass
|
|
34
|
+
class HaveBeenSetDontseehimError(Exception):
|
|
35
|
+
pass
|
|
36
|
+
class PrivacytNotCorrectError(Exception):
|
|
37
|
+
pass
|
|
38
|
+
class NoWechat_number_or_Phone_numberError(Exception):
|
|
39
|
+
pass
|
|
40
|
+
class EmptyFileError(Exception):
|
|
41
|
+
pass
|
|
42
|
+
class EmptyFolderError(Exception):
|
|
43
|
+
pass
|
|
44
|
+
class NotFileError(Exception):
|
|
45
|
+
pass
|
|
46
|
+
class NotFolderError(Exception):
|
|
47
|
+
pass
|
|
48
|
+
class CantCreateGroupError(Exception):
|
|
49
|
+
pass
|
|
50
|
+
class NoPermissionError(Exception):
|
|
51
|
+
pass
|
|
52
|
+
class SameNameError(Exception):
|
|
53
|
+
pass
|
|
54
|
+
class AlreadyOpenError(Exception):
|
|
55
|
+
pass
|
|
56
|
+
class AlreadyCloseError(Exception):
|
|
57
|
+
pass
|
|
58
|
+
class AlreadyInContactsError(Exception):
|
|
59
|
+
pass
|
|
60
|
+
class EmptyNoteError(Exception):
|
|
61
|
+
pass
|
|
62
|
+
class NoChatHistoryError(Exception):
|
|
63
|
+
pass
|
|
64
|
+
class HaveBeenSetError(Exception):
|
|
65
|
+
pass
|
pywechat127/Warnings.py
ADDED
pywechat127/__init__.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'''用来存放PC微信中的各种Ui-Object'''
|
|
2
|
+
class Login_window():
|
|
3
|
+
'''登录界面唯二的两个Ui:登录界面与进入微信按钮\n'''
|
|
4
|
+
LoginWindow={'title':'微信','class_name':'WeChatLoginWndForPC'}
|
|
5
|
+
LoginButton={'title':'进入微信','control_type':'Button'}
|
|
6
|
+
|
|
7
|
+
class ToolBar():
|
|
8
|
+
'''主界面导航栏下的所有Ui'''
|
|
9
|
+
Chat={'title':'聊天','control_type':'Button'}
|
|
10
|
+
Contacts={'title':'通讯录','control_type':'Button'}
|
|
11
|
+
Collections={'title':'收藏','control_type':'Button'}
|
|
12
|
+
ChatFiles={'title':'聊天文件','control_type':'Button'}
|
|
13
|
+
Moments={'title':'朋友圈','control_type':'Button'}
|
|
14
|
+
Channel={'title':'视频号','control_type':'Button'}
|
|
15
|
+
Topstories={'title':'看一看','control_type':'Button'}
|
|
16
|
+
Search={'title':'搜一搜','control_type':'Button'}
|
|
17
|
+
Miniprogram_pane={'title':'小程序面板','control_type':'Button'}
|
|
18
|
+
SettingsAndOthers={'title':'设置及其他','control_type':'Button'}
|
|
19
|
+
|
|
20
|
+
class Main_window():
|
|
21
|
+
'''主界面下所有的第一级Ui\n'''
|
|
22
|
+
MainWindow={'title':'微信','class_name':'WeChatMainWndForPC'}
|
|
23
|
+
Toolbar={'title':'导航','control_type':'ToolBar'}
|
|
24
|
+
MessageList={'title':'会话','control_type':'List'}
|
|
25
|
+
Search={'title':'搜索','control_type':'Edit'}
|
|
26
|
+
SearchResult={'title_re':"@str:IDS_FAV_SEARCH_RESULT",'control_type':'List'}
|
|
27
|
+
CerateGroupChatButton={'title':"发起群聊",'control_type':"Button"}
|
|
28
|
+
ChatToolBar={'title':'','found_index':0,'control_type':'ToolBar'}
|
|
29
|
+
ChatMessage={'title':'聊天信息','control_type':'Button'}
|
|
30
|
+
CurrentChatWindow={'control_type':'Edit','found_index':1}
|
|
31
|
+
CerateNewNote={'title':'新建笔记','control_type':'Button'}
|
|
32
|
+
ProfileWindow={'class_name':"ContactProfileWnd",'control_type':'Pane','framework_id':'Win32'}
|
|
33
|
+
MoreButton={'title':'更多','control_type':'Button'}
|
|
34
|
+
FriendMenu={'control_type':'Menu','title':'','class_name':'CMenuWnd','framework_id':'Win32'}
|
|
35
|
+
FriendSettingsWindow={'class_name':'SessionChatRoomDetailWnd','control_type':'Pane','framework_id':'Win32'}
|
|
36
|
+
GroupSettingsWindow={'title':'SessionChatRoomDetailWnd','control_type':'Pane','framework_id':'Win32'}
|
|
37
|
+
SettingsMenu={'class_name':'SetMenuWnd','control_type':'Window'}
|
|
38
|
+
SettingsButton={'title':'设置','control_type':'Button'}
|
|
39
|
+
ContactsManage={'title':'通讯录管理','control_type':'Button'}
|
|
40
|
+
ContactsList={'title':'联系人','control_type':'List'}
|
|
41
|
+
AddNewFriendButon={'title':'添加朋友','control_type':'Button'}
|
|
42
|
+
SearchNewFriendBar={'title':'微信号/手机号','control_type':'Edit'}
|
|
43
|
+
SearchNewFriendResult={'title_re':'@str:IDS_FAV_SEARCH_RESULT','control_type':'List'}
|
|
44
|
+
AddFriendRequestWindow={'title':'添加朋友请求','class_name':'WeUIDialog','control_type':'Window','framework_id':'Win32'}
|
|
45
|
+
AddMemberWindow={'title':'AddMemberWnd','control_type':'Window','framework_id':'Win32'}
|
|
46
|
+
DeleteMemberWindow={'title':'DeleteMemberWnd','control_type':'Window','framework_id':'Win32'}
|
|
47
|
+
QuitGroupButton={'title':"退出",'control_type':'Button'}
|
|
48
|
+
EmptyChatHistoryButon={'title':'清空','control_type':'Button'}
|
|
49
|
+
Tickle={'title':'拍一拍','control_type':'MenuItem'}
|
|
50
|
+
SetTag={'title':'设置标签','framework_id':'Win32','class_name':'StandardConfirmDialog'}
|
|
51
|
+
|
|
52
|
+
class Independent_window():
|
|
53
|
+
'''独立于微信主界面,将微信主界面关闭后仍能在桌面显示的Ui\n'''
|
|
54
|
+
Desktop={'backend':'uia'}
|
|
55
|
+
SettingWindow={'title':'设置','class_name':"SettingWnd",'control_type':'Window'}
|
|
56
|
+
ContactManagerWindow={'title':'通讯录管理','class_name':'ContactManagerWindow'}
|
|
57
|
+
MomentsWindow={'title':'朋友圈','control_type':"Window",'class_name':"SnsWnd"}
|
|
58
|
+
ChatFilesWindow={'title':'聊天文件','control_type':'Window','class_name':'FileListMgrWnd'}
|
|
59
|
+
MiniProgramWindow={'title':'微信','control_type':'Pane','class_name':'Chrome_WidgetWin_0'}
|
|
60
|
+
SearchWindow={'title':'搜一搜','control_type':'Document'}
|
|
61
|
+
ChannelWindow={'title':'视频号','control_type':'Document','framework_id':'Chrome'}
|
|
62
|
+
ContactProfileWindow={'title':'微信','class_name':'ContactProfileWnd','framework_id':'Win32','control_type':'Pane'}
|
|
63
|
+
TopStoriesWindow={'title':'看一看','control_type':'Document','framework_id':'Chrome'}
|
|
64
|
+
GroupAnnouncementWindow={'title':'群公告','framework_id':'Win32','class_name':'ChatRoomAnnouncementWnd'}
|
|
65
|
+
NoteWindow={'title':'笔记','class_name':'FavNoteWnd','framework_id':"Win32"}
|
|
66
|
+
OldIncomingCallWindow={'class_name':'VoipTrayWnd','title':'微信'}
|
|
67
|
+
NewIncomingCallWindow={'class_name':'ILinkVoipTrayWnd','title':'微信'}
|
|
68
|
+
OldVoiceCallWindow={'title':'微信','class_name':'AudioWnd'}
|
|
69
|
+
NewVoiceCallWindow={'title':'微信','class_name':'ILinkAudioWnd'}
|
|
70
|
+
OldVideoCallWindow={'title':'微信','class_name':'VoipWnd'}
|
|
71
|
+
NewVideoCallWindow={'title':'微信','class_name':'ILinkVoipWnd'}
|