找回密码
 加入
搜索
查看: 2370|回复: 1

Autoit window info无法获取到skype菜单的信息?

[复制链接]
发表于 2009-5-3 16:50:44 | 显示全部楼层 |阅读模式
本帖最后由 swore2 于 2009-5-3 16:52 编辑

我需要使用软件操作,在skype上切换当前账户。

从google上查到:http://www.autohotkey.com/forum/topic34804.html
这是一个自动登录skype的代码,使用的是AHK:
uid=*************
pswd=**************

Run,skype.exe
WinWait,Skype ahk_class tSkMainForm.UnicodeClass

ControlSetText,Edit1,%uid%,Skype ahk_class tSkMainForm.UnicodeClass
ControlSetText,TTntEdit.UnicodeClass1,%pswd%,Skype ahk_class tSkMainForm.UnicodeClass

control,Uncheck, ,TTntCheckBox.UnicodeClass2,Skype ahk_class tSkMainForm.UnicodeClass   ; to make sure you have chance to change account later

ControlSend,  TTntButton.UnicodeClass1 ,{Space}, Skype ahk_class tSkMainForm.UnicodeClass

Return


但是如何在已有登录的账户上进行切换账户, 手工操作是:
文件->注销(Y), 然后输入新的用户名+密码。

但是我碰到的困难在于:
Autoit window info无法获取到菜单的信息(鼠标放在菜单上,该工具没有任何提示), 我也就无法针对菜单进行操作了。

请各位大侠帮忙。 谢谢!
发表于 2009-5-3 17:26:02 | 显示全部楼层
用WinMenuSelectItem试试。
注意热键前需要加&。

评分

参与人数 1金钱 +1 收起 理由
swore2 + 1 谢谢! 是个思路

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-23 03:25 , Processed in 0.075143 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表