mIRC Home    About    Download    Register    News    Help

Print Thread
$input's returning values #202311 19/07/08 05:08 PM
Joined: Oct 2003
Posts: 214
S
Sephiroth_ Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
$input should return $cancel in some cases always.

e. g.: $input(?,e)

It returns all the time $null even if i click on cancel.

How should i make sure what button was clicked if the returning value is all the time the same?

Same for: $input(?,y) (which returns $true and $false but $yes and $no would be better in that case)

Also $input(?,n) returns on no also $false as it does on cancel.

For what are $yes, $no and $cancel if they aren't in use?


one step closer to world domination
Re: $input's returning values [Re: Sephiroth_] #202312 19/07/08 05:12 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
You need to use the v switch as documented in /help $input to get $yes/$no/$cancel.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: $input's returning values [Re: argv0] #202315 19/07/08 06:29 PM
Joined: Oct 2003
Posts: 214
S
Sephiroth_ Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
Why in the hell do i missread such a lot in the last time.

Thanks anyway wink


one step closer to world domination