Jump to content

send text to mirc


pif
 Share

Recommended Posts

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 by pif
Link to comment
Share on other sites

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

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 by notsure
Link to comment
Share on other sites

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...