Page 2 of 2

Re: lock recent

Posted: Thu Jul 22, 2021 6:52 pm
by richmond62
could you not simply write
push

pop


Of course I could, but I had never heard or seen push or pop before this thread. :shock:

Re: lock recent

Posted: Thu Jul 22, 2021 8:30 pm
by marksmithhfx
richmond62 wrote: Thu Jul 22, 2021 6:52 pm
could you not simply write
push

pop


Of course I could, but I had never heard or seen push or pop before this thread. :shock:
I get that. While I might have seen them before, I think I must have forgotten about them. Anyway, thanks to Jacques many contributions on this topic, I have finally found an almost elegant solution. At least it is relatively succinct.

In the back button of the Settings page, where the User Guide starts, if I put this script then it does not re-enter the UG from the back button:

Code: Select all

on mouseUp
   -- check to see if the next card is in the UG list
   put the recentcards into tList
   put word 3 of line 2 of tList into string2
   if "405764,405766,405768,405771" contains string2 then
      go card "home"
   else
      go back 
   end if
end mouseUp
Thank you Jacque!!

Re: lock recent

Posted: Thu Jul 22, 2021 9:22 pm
by jacque
That's how I would do it; ergo, I don't think it's inelegant. :D

If you ever add more non-UG cards to the stack you could push the current card before leaving for the UG, and then pop it in the Back button using your current script but substituting pop for the "go home" command.

Re: lock recent

Posted: Fri Jul 23, 2021 1:27 pm
by marksmithhfx
jacque wrote: Thu Jul 22, 2021 9:22 pm That's how I would do it; ergo, I don't think it's inelegant. :D

If you ever add more non-UG cards to the stack you could push the current card before leaving for the UG, and then pop it in the Back button using your current script but substituting pop for the "go home" command.
Very good suggestion. Thanks!

M