Page 1 of 1
vcp scripter
Posted: 20 Mar 2025 04:33
by illegal01
Hello friends, I want a code to be written.
function GetCardSerial: string ;
how can I use this code?
I want the script I wrote to work only on my device's serial number.
Re: vcp scripter
Posted: 24 Mar 2025 21:48
by skodapilot
If you use this check in you script, you could make script will work only for required id. Something like this
id := GetCardSerial();
if (id = '123456789') then
writeln('VALID. RUN SCRIPT' )
else
writeln('INVALID ID' );
Re: vcp scripter
Posted: 26 Mar 2025 06:53
by illegal01
I ran the command just now, but it performs the coding whether the card number is correct or incorrect. It does not cancel.
Re: vcp scripter
Posted: 27 Mar 2025 17:58
by skodapilot
I could not understand what you mean "cancel". If you check ID initially and it is invalid, it means your main code will not run because script will end right after validation
Re: vcp scripter
Posted: 28 Mar 2025 00:07
by illegal01
skodapilot wrote: 27 Mar 2025 17:58
I could not understand what you mean "cancel". If you check ID initially and it is invalid, it means your main code will not run because script will end right after validation
It does not check the serial number, the program does not terminate whether the serial number is correct or incorrect. It continues coding.
pvc1 my friend helped. I managed to write the command. Now I have a working command. Thank you very much.