mIRC Home    About    Download    Register    News    Help

Print Thread
#168864 15/01/07 11:38 PM
Joined: Dec 2006
Posts: 31
K
klaaamp Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2006
Posts: 31
alias tester {
if (%testing == $null) { $?="Write words, seperate with space" | set %testing $! }
}

This aint working, I want to save what Ive written in %testing, when I write mmm aaaa llll I get in the status window
* /mmm: not connected to server (line 2

How can I save it? and how can I load it in the askingbox if it contains words when I run the alias so I just can edit the variabel in the asking box

klaaamp #168866 16/01/07 12:02 AM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Not totally sure what you want, but maybe this is it.

Code:
alias tester { if (!%testing) set %testing $$?="Write words, seperate with space" }

DJ_Sol #168869 16/01/07 12:17 AM
Joined: Dec 2006
Posts: 31
K
klaaamp Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2006
Posts: 31
Originally Posted By: DJ_Sol
Not totally sure what you want, but maybe this is it.

Code:
alias tester { if (!%testing) set %testing $$?="Write words, seperate with space" }


That works, now I just need a way to load that variabel to the inputbox so I can edit it.

klaaamp #168873 16/01/07 02:31 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
//set %testing $input(Write words, seperate with space,e,Words,%testing)



Invision Support
#Invision on irc.irchighway.net
Riamus2 #168876 16/01/07 02:59 AM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
I dont think that will work with the input box because of the comma.

Code:
alias testing {
set %testing $input(Write words $+ $chr(44) seperate with space,eo,Words,%testing)
}


Last edited by DJ_Sol; 16/01/07 02:59 AM.
DJ_Sol #168878 16/01/07 03:25 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ah, you're right. I just copy/pasted that and didn't pay attention to the comma in the question. Good catch.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard