mIRC Homepage
Posted By: pouncer is there no way around this vb dde problem? - 05/03/06 12:30 PM
Code:
Private Sub gfdgfdfdg_Click()
   Dim cmd as String
    cmd = "/echo -a " & Chr(37) & "hello"
    Text1.LinkExecute "/dde mirc command " & Chr$(34) & Chr$(34) & " " & cmd

End Sub


im trying to get mIRC to echo %hello

but mIRC keeps saying * /echo: insufficient parameters because its not a variable in mIRC, is there a way around this? I don't want to set %hello as a var in mIRC, i just want it to echo the word '%hello'

hope someone here can help me out, thanks
try sending $(%echo,0) that might do it.
you mean %hello not %echo eh?
$(%hello,0) - same problem

* /echo: insufficient parameters
i wish khaled could sort this problem out in the future, as the % really messes things up
/dde mirc command "" /echo -s $(%hello,0)

works fine here (echoes "%hello"), so you are doing something wrong.

I noticed you're calling mirc's /dde command from within your application. Why would you possibly do that? Maybe this is the problem: it looks like you're using DDE to tell mirc to execute a /dde command, so there's double evaluation.
yeah it works in mirc itself

/dde mirc command "" /echo -s $(%hello,0)

but i cant seem to send $(%hello,0) from the vb app to mirc

just keeps giving echo insufficient parameters
this works.. echos 'hello' in mIRC

cmd = " /echo -a " & "$(hello, 0)"
Text1.LinkExecute "/dde mirc command " & Chr$(34) & Chr$(34) & cmd

but soon as i add in %, it messes up

cmd = " /echo -a " & "$(%hello, 0)"
Text1.LinkExecute "/dde mirc command " & Chr$(34) & Chr$(34) & cmd

* /echo: insufficient parameters

there is no way around it is there?

edit* qwerty im using DDE in my vb app to tell mirc to echo %hello - im just trying to find out if any of you advanced scripters can find a way around the % problem
Try this:

Code:
Text1.LinkExecute "/echo -a " & chr(37) & " $+ hello"
thanks for the reply, no luck frown

* /echo: insufficient parameters
Put the entire line into a msgbox so you can see what vb's trying to do:

Code:
msgbox "Text1.LinkExecute /echo -a " & chr(37) & " $+ hello"
yep thanks hixxy works fine now
© mIRC Discussion Forums