0 Members and 5 Guests are viewing this topic.
I found an error in the way the token hook is handled. When you copy the text string to ram, I noticed that you don't actually configure the first byte of the string. Since most of the tokens end up being somewhere in the 01xx range, the first byte of the ram string is 1.But here's the problem. On closer analysis of how this hook works, that first byte actually means something. The format looks like this:[Key code][length of string][string]Where key code is the actual key you press to signal the token. As you can see, the key codes you are returning are incorrect and then that leads to all sorts of problems. (01 translates to right, when you use axe tokens in a Recall queue, the calculator hangs because tokens aren't actually being inserted)So the simple fix is just to put the proper key codes in. The quickest way to get the proper key code is to simply put the token in DE and call _GetKeyPress, that will return the proper key in A.Edit: If you are going to call _GetKeyPress from within your hook, make sure you temporarily disable the hook. Otherwise you're going to have fun with recursion.
:Repeat getKey(15):!If Get-255:Disp "ERROR:End:End
In other news, Frey continues kicking unprecedented levels of ass.
Lbl B->CReturn