Project

General

Profile

Rawx » History » Version 8

Per Amundsen, 01/13/2015 12:52 AM

1 1 Per Amundsen
_Added in 1.9.3_
2
3
*/rawx [-nq] <command>*
4
5
Sends the specified command directly to the server. You must know the correct raw format of the command you are sending.
6 2 Per Amundsen
7 3 Per Amundsen
Same as [[/raw]] but evaluates a variable instead of text and allows sending consecutive spaces.
8 1 Per Amundsen
9
*Switches*
10
11
-n - TODO
12
-q - TODO
13
14
*Parameters*
15
16
<command> - The command to send to the server.
17
18
*Example*
19
20
<pre>
21
;Create a variable with the text PRIVMSG #channel :a    b
22
/var %var PRIVMSG #channel :a $+ $chr(32) $+ $chr(32) $+ $chr(32) $+ $chr(32) b
23 4 Per Amundsen
24 1 Per Amundsen
;Sends the output of %var to the server.
25
/rawx %var
26 5 Per Amundsen
27
;Add a on INPUT event that listens for /example command.
28
on *:INPUT:*:if ($1 == /example) { 
29 8 Per Amundsen
30 5 Per Amundsen
  ;Put the consecutive spaced message into a variable
31 7 Per Amundsen
  var %text PRIVMSG # : $+ $mid($msgx, $calc($len($1) + 2), $len($msgx)) 
32 5 Per Amundsen
33
  ;Send the message
34
  /rawx %text 
35
}
36 1 Per Amundsen
</pre>