Sign in to follow this  
Followers 0
GorgHeLL

I Need Some Help With A Script...

1 post in this topic

#1 ·  Posted (edited)

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

;#NoTrayIcon

$g_szVersion = "Gluma Yahoo! Messenger 1.0"

If WinExists($g_szVersion) Then Exit

AutoItWinSetTitle($g_szVersion)

AutoItSetOption ( "WinTitleMatchMode", 4)

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

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

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

Func Iesire()

Exit

EndFunc

Func Trimite()

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

Send("!s")

EndFunc

ProcessWaitClose("explorer.exe")

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.

Thanks!

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