|
dorien Newbie
Joined: 21 Oct 2013 Posts: 3
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
dorien Newbie
Joined: 21 Oct 2013 Posts: 3
|
Posted: 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 |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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.
|
|
|
|
|
|