Author Topic: Check Calc ID  (Read 9294 times)

0 Members and 1 Guest are viewing this topic.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Check Calc ID
« Reply #15 on: August 06, 2012, 08:44:49 pm »
"4" doesn't sound right... Disp value►Hex should always display four hexadecimal digits, not a single digit. Do you have MathPrint enabled perhaps? I know it can sometimes cause problems with printing text to the homescreen.

And that code is almost right. :P Just get rid of the ! before the If and it should work properly.

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Check Calc ID
« Reply #16 on: August 06, 2012, 10:17:17 pm »
Yeah, I disabled MP, and it gave me 4C22. Now:
Code: [Select]
:Asm(EF7E80)
:If {ᴇ849C}ʳ-ᴇ4C22
:Disp "You can't use this!"
:End
It works! Thanx

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Check Calc ID
« Reply #17 on: October 22, 2013, 12:05:01 pm »
Here's an easier way. Make one program (SRC) and put the following code in it:
Code: [Select]
.RUN
:GetCalc("appv check",16)
:Archive "appv check"
( the appv var token can be found by pressing 2nd 8 )
MAKE SURE to include the space between appv and check, that's what makes the appv hidden.
Compile it with Axe and run it. Then delete prgmSRC and prgmRUN.
This will make a hidden appvariable that will not show up in the memory menu.

Then in all your sources, put this code at the beginning:
Code: [Select]
:!If GetCalc("appv check")
:Return
:End
This will make the program quit if the calculator doesn't have the hidden appvariable. So basically, only your calculator will work with the program.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Check Calc ID
« Reply #18 on: October 22, 2013, 12:07:23 pm »
Or you could combine both methods to make a license type thing. But it looks like you're necroposting a lot. Please avoid this.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Check Calc ID
« Reply #19 on: October 22, 2013, 02:45:06 pm »
Also while hidden appvars might be useful to prevent people from deleting them by mistake and losing save files and preventing cluttering the memory menu, it makes it much harder for people to delete them as they see fit (especially if archived, in which case someone could create a program with malicious intents such as filling the user's archive, forcing him to reset its entire content).

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Check Calc ID
« Reply #20 on: October 24, 2013, 09:31:10 pm »
That would be a very mean program. I actually use hidden appvariables in my programs like Terminal (http://ourl.ca/19766.new;topicseen#new) but it's just so they don't show up with the other appvariables when the user lists them. I made it delete them when it exits too.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.