Sign in to follow this  
Followers 0
Kreatorul

Wingettittle

4 posts in this topic

Helo guys, I'm noob in autoIt, so here is a simple question :think: When I get the title of a window using WinGetTitle, how can i use that title for WinWaitActive, so Winwaitactive could use the exact name of the window.

Share this post


Link to post
Share on other sites



Helo guys, I'm noob in autoIt, so here is a simple question :think: When I get the title of a window using WinGetTitle, how can i use that title for WinWaitActive, so Winwaitactive could use the exact name of the window.

Do you have any part of the title that you are going to need?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Helo guys, I'm noob in autoIt, so here is a simple question :think: When I get the title of a window using WinGetTitle, how can i use that title for WinWaitActive, so Winwaitactive could use the exact name of the window.

You should capture info with a variable

$Title=WinGetTitle ("Some window...")
ClipPut ($Title); Put full window title in Clipboard. CTRL+V to get this text.
Exit

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

10x a lot, ur ideea is good, but I'm tryin' to make something like an robot for Y!M.

That's why I need to get the curent window name, and then send a message.

I tried the simple way: WinWaitActive ("Instant Message") Send ("Hello{ENTER}")

Instant message is a part of any Y!M conversation window, but it doesen't work.

I tried this way to:

$Title=WinGetTitle ("Instant Message")

WinWaitActive ($Title)

Send ( "Hello{ENTER}" )

Any ideas how to recognize the curent conversation window...

If I put instead of Instant Message, the other part of the windows title(something like Alissya, Mary etc) it works, but I have to write everyones name in the script.... :think:

Edited by Kreatorul

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  
Followers 0