pif Posted November 10, 2009 Share Posted November 10, 2009 (edited) I am trying to send a text to mirc. i am still struggling in changing the color in mirc. as you may know, ctrl+k + color # will do the trick if i am using mirc, but i was not able to do the same through autoit...the functions that i am using are:$text = "/echo #channelname This is just a TEST" $title = WinGetTitle("[REGEXPTITLE:.*EFNet*]", "") WinSetState($title, "", @SW_SHOW) ControlSetText($title, "", "RichEdit20A1", $text) ControlSend($title, "", "RichEdit20A1", "{ENTER}") WinSetState($title, "", @SW_HIDE)What I want is to write "This is a TEST" in for example red color...thnx for the help, and btw, i just started using this nice utility last week, i never coded a script, but with the help of the built-in help, i was able to achieve a lot... Edited November 10, 2009 by pif Link to comment Share on other sites More sharing options...
pif Posted November 11, 2009 Author Share Posted November 11, 2009 any1? Link to comment Share on other sites More sharing options...
whim Posted November 11, 2009 Share Posted November 11, 2009 any1? From the helpfile: ControlSetText ( "title", "text", controlID, "new text" [, flag] ) title The title of the window to access. text The text of the window to access. controlID The control to interact with. See Controls. new text The new text to be set into the control. flag [optional] when different from 0 (default) will force the target window to be redrawn. try if setting "flag" helps whim Link to comment Share on other sites More sharing options...
pif Posted November 11, 2009 Author Share Posted November 11, 2009 that does not help.... it seems "^k" does not work at all. I did try "+k" and it gave capital "K"....so i am not sure what to do next!!! any help?! Link to comment Share on other sites More sharing options...
pif Posted November 12, 2009 Author Share Posted November 12, 2009 Would you guys at least confirm that the "CTRL" key is working? Link to comment Share on other sites More sharing options...
notsure Posted November 12, 2009 Share Posted November 12, 2009 (edited) Just copy the IRC char (for colouring) into your data which you want to send. Example: TcpStartUp () $remoteserver = tcpconnect(tcpnametoip("irc.myVeryNiceIRCserver"), "6667") $senddata = ":bot!bot@ircserver PRIVMSG #mynicechannel :4Nice red colour" tcpsend($remoteserver, $senddata) If you copy the 4 in autoit, it will say something like "EXT" for that character. Edit; In your case, use $text = "/echo #channelname 4This is just a TEST" Edited November 12, 2009 by notsure Link to comment Share on other sites More sharing options...
bogQ Posted November 13, 2009 Share Posted November 13, 2009 Why dont you try to do that with "Scripts & Popups" from mIRC script help files? Or you need to join mIRC and autoit scripts to work together? TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
pif Posted November 13, 2009 Author Share Posted November 13, 2009 Just copy the IRC char (for colouring) into your data which you want to send.Thnx for the help, that was great...I made my own autodownloader, and i used autoit instead of my old mirc script. autoit is more convenient than my old mirc code since now i have a lot of possibilities......thnx all Link to comment Share on other sites More sharing options...
pif Posted November 13, 2009 Author Share Posted November 13, 2009 Why dont you try to do that with "Scripts & Popups" from mIRC script help files?Or you need to join mIRC and autoit scripts to work together?it is not joining, i am grabbing text from the announce channel... 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