|
Joined: Jul 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Jul 2003
Posts: 3 |
After some work I got it to send commands to mirc via DDE and the needed Perl modul Win32::DDE #!/usr/bin/perl -w
use Win32::DDE::Client;
$mirc = new Win32::DDE::Client ('mIRC', 'COMMAND');
$mirc->Poke('filler', '/echo lala'); as you can see this simple and small script will sind the command "/echo lala" to mirc. mirc will execute it as you had typed it in directly. I hope that I can help the much people with questions to integrate Perl into mirc. Greetings Iki ^^
fly me to the moon...
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
out of curiousity, if a server has perl, and the module, and the admin is a irc-goer, couldn't that take over thier mirc? >:D
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 9
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Dec 2002
Posts: 9 |
On a windows server, yeah, assuming mIRC's DDE server is on. You would also have to know what the service name is if it was changed.
|
|
|
|
Joined: Jul 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Jul 2003
Posts: 3 |
out of curiousity, if a server has perl, and the module, and the admin is a irc-goer, couldn't that take over thier mirc? >:D No because DDE can only be executet on the client side because it's an windows service for communication between Programs. Server couldn't send DDE commands to your computer.
Last edited by IkariKun; 16/07/03 10:26 AM.
fly me to the moon...
|
|
|
|
Joined: Dec 2002
Posts: 9
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Dec 2002
Posts: 9 |
Unless this server is somone elses Windows Computer, and that person uses mIRC on it. (I doubt that would be the case, but its possible...)
|
|
|
|
Joined: Jul 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Jul 2003
Posts: 3 |
fly me to the moon...
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
So wait, now if a website can control you client side, whats stopping the dde from controling any other application the client may have, and have support for? Sounds like a security issue to me..
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
A website can't control you client side. What are you talking about?
And anyway, thats irrelevant, DDE is NOT a network based protocol. Someone on a different machine can NOT control your machine via DDE, it is NOT a security issue.
|
|
|
|
Joined: Dec 2002
Posts: 9
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Dec 2002
Posts: 9 |
Whoops, yeah after doing some testing i noticed DDE will not work when telneting to the computer. Which is probably a good idea anyways. Thanks for pointing that out.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
Is or isnot perl a web-based language...
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 9
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Dec 2002
Posts: 9 |
Perl is not a web based language. Its original purpose was for system administration. When the web became popular and people wanted dynamic content, Perl became a popular language for the web.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
ahh, i c. All i was thinking was .pl on websites.. Now i gotchyaa thanks for clearifying
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Well perl doesn't actually control your machine. You can't write a perl script on a website that, for example, saves a file to your harddrive. Perl executes server side.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
That's why i was under the impression when i saw perl and dde, and knew it was serverside, kinda assumed that mean you visit a website, the server executes it, then ur controling the mirc on the server. >:D
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Ah ok, now I get what you meant.
|
|
|
|
|