I was wondering if anyone knew how to bind multiple lines to the send field of an alias on the fly.
Basically I have an alias labelled "numpad5" which I have bound to that location on the keyboard. Everytime I enter a new area that I have a predefined alias to, I rebind this alias to a new line of text such as:
/world.SetAliasOption("numpad5", "send", "k ant");
So I can navigate the area and attack mobs with ease by using the numeric keypad.
However, I would also like to be able to rebind this alias for multiple lines so I could for example cast a spell as well. So the send field would contatin something like:
k ant
cast magic misile ant
But I do not always want this alias to contain more than 1 line of text.
One work around I worked out was setting a target variable and retrieving the contents of this variable and instead having the contents of the variable change but not the alias itself.
Is there anyway to insert newlines into an alias send field via SetAliasOption?
Newlines seem to work in AppendToNotepad eg:
world.AppendToNotepad("Tell Monitor", theoutput + "\r\n");
but not in SetAliasOption:
world.SetAliasOption("numpad5", "send","kill blah\r\nr blah");
and instead it appears all on the same line when I check the alias:
kill blahr blah
Basically I have an alias labelled "numpad5" which I have bound to that location on the keyboard. Everytime I enter a new area that I have a predefined alias to, I rebind this alias to a new line of text such as:
/world.SetAliasOption("numpad5", "send", "k ant");
So I can navigate the area and attack mobs with ease by using the numeric keypad.
However, I would also like to be able to rebind this alias for multiple lines so I could for example cast a spell as well. So the send field would contatin something like:
k ant
cast magic misile ant
But I do not always want this alias to contain more than 1 line of text.
One work around I worked out was setting a target variable and retrieving the contents of this variable and instead having the contents of the variable change but not the alias itself.
Is there anyway to insert newlines into an alias send field via SetAliasOption?
Newlines seem to work in AppendToNotepad eg:
world.AppendToNotepad("Tell Monitor", theoutput + "\r\n");
but not in SetAliasOption:
world.SetAliasOption("numpad5", "send","kill blah\r\nr blah");
and instead it appears all on the same line when I check the alias:
kill blahr blah