mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2021
Posts: 3
S
Self-satisfied door
OP Offline
Self-satisfied door
S
Joined: Jan 2021
Posts: 3
hi guys i must help from the bests here.
i have this command in a middle of some script
$input(GameGuard is on?,yw,GameGuard)
if i click yes its return $true and if i click no its return $false
i want that if i click yes it will continue with the rest of the script
and if i will click no it will stop and not continue
can i do this ?
thankssssss

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Code
if ($input(GameGuard is on?,byw,GameGuard) == $false) halt


I added the 'b' switch so it puts a pause of 1 second, and also clears the buffer so it ignores a pending keystroke made before the dialog appears. You can take that out if you don't like it.


Link Copied to Clipboard