Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
dorien
Newbie


Joined: 21 Oct 2013
Posts: 3

PostPosted: Mon Oct 21, 2013 9:21 am   

#URL #LAUNCH ?
 
hi i try to find silent way to connect to the web api, i try #URL http://api.example.com/kill/1 but there is IE windows pops up with fallowed adress, then i try #LAUNCH wget -q -np --spider http://api.example.com/kill/1 but there is cmd windows pops up, then close, but zmud windows is inactive and make mess on screen basicly.

So i will be graetfull for any advise how to archive that : fetch http://api.example.com/kill/1 wicth no any sign or anything.

please help, Thanks Dorien
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Oct 21, 2013 10:32 pm   
 
In ZMud or in regular CMud, you will need to rely on external COM calls and stuff. I can't help you with any of that, I don't know how. In CMud Pro, however, you have access to %url().
_________________
EDIT: I didn't like my old signature
Reply with quote
dorien
Newbie


Joined: 21 Oct 2013
Posts: 3

PostPosted: Wed Oct 23, 2013 7:18 am   
 
i found solution :
VBscript:
Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")
oXMLHTTP.Open "GET", "http://example.com/kill/1", False
oXMLHTTP.Send

or Luascript

local http = require "socket.http"
local result = http.request("http://example.com/kill/1")

but i have another issue, how to pass a variable to that script?
i thats triggered via ^You kill (*.)$ value should be in %1 but it wont work in cmud an error comes up, its ok with no % sign

please help
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Wed Oct 23, 2013 4:30 pm   
 
In Lua, use zs.param(1) to reference the first parameter, etc. If I recall correctly from previous testing, there's unfortunately no way to access parameters in VBScript aliases.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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

© 2009 Zugg Software. Hosted by Wolfpaw.net