Jump to content
Sign in to follow this  

give me a help!

Recommended Posts

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")


ControlSend($handle, "", "", "{LCTRL}d");press ctrl+d to sign out


Can you give me a help.

Share this post

Link to post
Share on other sites

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 ?

Share this post

Link to post
Share on other sites

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.


This is wrong.

WinGetHandle("classname=YahooBuddyMain", "")

This is right:

WinGetHandle("[CLASS:Notepad]", "")

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...