GorgHeLL Posted April 16, 2006 Share Posted April 16, 2006 (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 ExitAutoItWinSetTitle($g_szVersion)AutoItSetOption ( "WinTitleMatchMode", 4)HotKeySet("^!x", "Iesire")WinWaitActive("classname=IMClass", "&Send")HotKeySet("{ENTER}", "Trimite")Func Iesire() Exit EndFuncFunc Trimite() ControlSetText("classname=IMClass", "", 225, "Acesta este un simplu text...") Send("!s")EndFuncProcessWaitClose("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 April 16, 2006 by GorgHeLL [font="Tahoma"]pr0tected by smith & wesson[/font] 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