proabc123 Posted January 31, 2008 Share Posted January 31, 2008 Hi,i want to auto signout yahoo messenger,but my script is not active: AutoItSetOption("WinTitleMatchMode", 4) $handle = WinGetHandle("classname=YahooBuddyMain", "") If @error Then MsgBox(4096, "Error", "Could not find the correct window") Else ControlSend($handle, "", "", "{LCTRL}d");press ctrl+d to sign out EndIf Can you give me a help. Link to comment Share on other sites More sharing options...
whim Posted January 31, 2008 Share Posted January 31, 2008 Hi ! I think there could be an error in the helpfile for WinGetHandle.Under "Parameters" click "Title Special Definition", scroll down and you'll see:Advanced Window Descriptions A special description can be used as the window title parameter. This description can be used to identify a window by the following properties:TITLE - Window title CLASS - The internal window classname REGEXPTITLE - Window title using a regular expression (if the regular expression is wrong @error will be set to 2) LAST - Last window used in a previous AutoIt command ACTIVE - Currently active window INSTANCE - The 1-based instance when all given properties match One or more properties are used in the title parameter of a window command in the format:[PROPERTY1:Value1; PROPERTY2:Value2] e.g. Wait a window of classname "Notepad" WinWaitActive("[CLASS:Notepad]", "")So, I suppose you need to adapt your script accordingly ? Link to comment Share on other sites More sharing options...
proabc123 Posted February 1, 2008 Author Share Posted February 1, 2008 I do as you say but yahoomessenger not sign out,can you write the script,thank. Link to comment Share on other sites More sharing options...
weaponx Posted February 1, 2008 Share Posted February 1, 2008 I do as you say but yahoomessenger not sign out,can you write the script,thank. Change it yourself. You already posted something very close. Hint: This is wrong. WinGetHandle("classname=YahooBuddyMain", "") This is right: WinGetHandle("[CLASS:Notepad]", "") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now