Author Topic: Stubborn Code!  (Read 2143 times)

0 Members and 1 Guest are viewing this topic.

Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Stubborn Code!
« on: October 11, 2013, 07:31:55 am »
I've been trying to debug some code for a while but cant seem to figure it out. I'm trying to have some one put the name of an ASM/AXE program in "Str1" and then have it execute it. I'm using the Run Program axiom and the Detokenize axiom. Can someone please tell me what I'm doing wrong? :mad: :banghead:

here's the code
Code: [Select]
.mouse
#Axiom(RUNPRGM)
#Axiom(DETOKENI)
GetCalc("Str1")->F
detokenize(F,L1,255)
RunPrgm(L1)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Stubborn Code!
« Reply #1 on: October 11, 2013, 11:00:05 am »
Don't detokenize. RunPrgm expects a string of tokens. ;)

Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Re: Stubborn Code!
« Reply #2 on: October 11, 2013, 05:49:56 pm »
It still didn't work. It still gives me the "invalid" error. Does anyone have any ideas?
« Last Edit: October 11, 2013, 06:21:39 pm by spud2451 »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Stubborn Code!
« Reply #3 on: October 12, 2013, 07:30:47 am »
Maybe did you change the pointer to F instead of L1?
I'm not a nerd but I pretend: