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.
Dear new registered users!
All messages from new registered users are moderated by administrator. Keep patience if You first message is not published, You will see it as soon as it will be accepted. Additional, new users have restriction in using of private message system.
All messages from new registered users are moderated by administrator. Keep patience if You first message is not published, You will see it as soon as it will be accepted. Additional, new users have restriction in using of private message system.
vcp scripter
-
- Site Admin
- Posts: 470
- Joined: 13 Jan 2014 06:18
Re: vcp scripter
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' );
-
- Posts: 3
- Joined: 02 Jan 2022 00:42
Re: vcp scripter
I ran the command just now, but it performs the coding whether the card number is correct or incorrect. It does not cancel.
-
- Site Admin
- Posts: 470
- Joined: 13 Jan 2014 06:18
Re: vcp scripter
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
-
- Posts: 3
- Joined: 02 Jan 2022 00:42
Re: vcp scripter
It does not check the serial number, the program does not terminate whether the serial number is correct or incorrect. It continues coding.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
pvc1 my friend helped. I managed to write the command. Now I have a working command. Thank you very much.
Who is online
Users browsing this forum: No registered users and 1 guest