Jump to content
Sign in to follow this  

I Need Some Help With A Script...

Recommended Posts

I am new to this and I need some help, could someone please help me with the following script:

PS: I want this to be a joke for a friend of mine...


$g_szVersion = "Gluma Yahoo! Messenger 1.0"

If WinExists($g_szVersion) Then Exit


AutoItSetOption ( "WinTitleMatchMode", 4)

HotKeySet("^!x", "Iesire")

WinWaitActive("classname=IMClass", "&Send")

HotKeySet("{ENTER}", "Trimite")

Func Iesire()



Func Trimite()

ControlSetText("classname=IMClass", "", 225, "Acesta este un simplu text...")




I need to do the following:

- Make Func Trimite() work only for WinWaitActive("classname=IMClass", "&Send"), I mean only for Yahoo Messenger IM window, for other application i want the ENTER key to go back to normal, not to send the message.

- And if it is possible, ControlSetText("classname=IMClass", "", 225, "Acesta este un simplu text...") to be random, I mean I want to add more text lines like that and on each press of the ENTER key another text should appear.


Edited by GorgHeLL

[font="Tahoma"]pr0tected by smith & wesson[/font]

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...