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.

vcp scripter

Post Reply
illegal01
Posts: 3
Joined: 02 Jan 2022 00:42

vcp scripter

Post by illegal01 » 20 Mar 2025 04:33

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.

skodapilot
Site Admin
Posts: 470
Joined: 13 Jan 2014 06:18

Re: vcp scripter

Post by skodapilot » 24 Mar 2025 21:48

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' );

illegal01
Posts: 3
Joined: 02 Jan 2022 00:42

Re: vcp scripter

Post by illegal01 » 26 Mar 2025 06:53

I ran the command just now, but it performs the coding whether the card number is correct or incorrect. It does not cancel.

skodapilot
Site Admin
Posts: 470
Joined: 13 Jan 2014 06:18

Re: vcp scripter

Post by skodapilot » 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

illegal01
Posts: 3
Joined: 02 Jan 2022 00:42

Re: vcp scripter

Post by illegal01 » 28 Mar 2025 00:07

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest