forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DDE EXECUTE question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Nov 22, 2002 11:31 pm    Post subject: DDE EXECUTE question Reply with quote

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 Sad 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
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sat Nov 23, 2002 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 4:38 am    Post subject: hummm Reply with quote

well i tried your code and it works BUT why don't my work Sad

and yes i know there is no close label Smile


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
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sat Nov 23, 2002 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 5:41 am    Post subject: hummm Reply with quote

but i should beable to to uses var. for DDE LINK and play tho
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sat Nov 23, 2002 6:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 7:53 am    Post subject: Reply with quote

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... Wink

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sat Nov 23, 2002 5:03 pm    Post subject: ok Reply with quote

mac yes i i'am going to put a close lable in it, BUT at the time i fogot to..hehhhe Smile

thanks SnarlingSheep i see what you are talking about now
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group