mIRC Home    About    Download    Register    News    Help

Print Thread
#257021 08/03/16 03:54 PM
Joined: Sep 2005
Posts: 118
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2005
Posts: 118
Code:
edit %variable, 160 72 141 21, %variable


Hello,

When dialog is closed text in editbox now is writing in %variable. When editbox is empty %variable should be unset/delete. For now variable is leaving empty.

Regards.


when no one watching us
we are invisible
deVilbaT #257029 09/03/16 01:14 AM
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
You can check that on dialog close or edit or any other event (/help on dialog) if the %variable exists but without any value to /unset it.

e.g:

Code:
ON *:DIALOG:*:*: { 
  if ($devent == close) {
    if (!%variable) && (%variable !== $null) { unset %variable } 
  }
}


Link Copied to Clipboard