def Stock_option(Index):
try:
#tjxg = win32gui.FindWindow('#32770','????')
gs = win32gui.FindWindowEx(win32gui.FindWindow('#32770','????'),None,'ComboBox',None)
#time.sleep(1)
print(hex(gs))
win32gui.SendMessage(gs,win32con.CB_SHOWDROPDOWN,1,0) #??ComboBox???
time.sleep(1)
win32gui.SendMessage(gs,win32con.CB_SETCURSEL,Index,0)#???????
time.sleep(1)
win32gui.SendMessage(gs,win32con.WM_SETFOCUS,0,0)#????
time.sleep(1)
win32gui.SendMessage(gs,win32con.WM_KEYDOWN,0,0)#???????
time.sleep(1)
win32gui.SendMessage(gs,win32con.WM_KEYUP,0,0)
time.sleep(1)
except Exception as e:
ReadEBK.wx_msg(corp_id, secret,agentid,sys._getframe().f_code.co_name+'\t'+str(e))
#????
评论列表
文章目录