| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Nov 22, 2002 11:31 pm Post subject: DDE EXECUTE question |
|
|
hello
i have been play with the DDE server that is in mirc.. i have made a script that connectes to mirc ok BUt when i try to have it send this comand /play #test c:\mirc\test.txt to mirc nothing happens any one know how to get vds to talk to mirc?
thanks
btw if you don't know what mirc is go to
www.mirc.com
its a irc chat type of program |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sat Nov 23, 2002 1:48 am Post subject: |
|
|
Try this out:
| Code: | DIALOG CREATE,Test,0,0,0,0
DDE LINK,mIRC,command
if @OK()
DDE POKE," ",/play #test c:\mirc\test.txt
END |
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Nov 23, 2002 4:38 am Post subject: hummm |
|
|
well i tried your code and it works BUT why don't my work
and yes i know there is no close label
| Code: |
DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,EDIT,EDIT1,14,54,180,19,mirc
DIALOG ADD,EDIT,EDIT2,54,60,180,19,"#test"
DIALOG ADD,EDIT,EDIT3,96,64,180,19,c:\mirc\test.txt
DIALOG ADD,BUTTON,BUTTON1,132,78,64,24,BUTTON1
DIALOG SHOW
:evloop
wait event
goto @event()
rem DIALOG CREATE,Test,0,0,0,0
rem DDE LINK,mIRC,command
:button1button
if @OK()
%S = @dlgtext(EDIT1)
%T = @dlgtext(EDIT2)
%F = @dlgtext(EDIT3)
DDE LINK,%S,%T
DDE POKE," ",/play %T %F
END
|
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sat Nov 23, 2002 5:07 am Post subject: |
|
|
You use DDE LINK like:
DDE LINK,<server name>,<topic name>
You send mIRC a topic name of command to tell it you will be having it perform commands.
SO you need to create the link with:
DDE LINK,mIRC,command
Then you use DDE POKE to send it the command to perform:
DDE POKE," ",/play #test c:\mirc\test.txt _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Nov 23, 2002 5:41 am Post subject: hummm |
|
|
| but i should beable to to uses var. for DDE LINK and play tho |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sat Nov 23, 2002 6:01 am Post subject: |
|
|
Yes..just not the vars you are using.
You are trying to link with DDE LINK,mIRC,#test
instead of DDE LINK,mIRC,command
Then you can use poke to play the text file. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Nov 23, 2002 7:53 am Post subject: |
|
|
Just a note...
You should always have a CLOSE label in your
finished code. That's what Windows looks for when
programs are still open at shutdown/reboot...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Nov 23, 2002 5:03 pm Post subject: ok |
|
|
mac yes i i'am going to put a close lable in it, BUT at the time i fogot to..hehhhe
thanks SnarlingSheep i see what you are talking about now |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|