Project

General

Profile

Rawx » History » Version 5

Per Amundsen, 01/13/2015 12:43 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
  ;Put the consecutive spaced message into a variable
30
  var %text PRIVMSG # : $+ $mid($msgx, 10, $len($msgx)) 
31
32
  ;Send the message
33
  /rawx %text 
34
}
35
36 1 Per Amundsen
</pre>