Author Topic: MenuKey  (Read 3734 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
MenuKey
« on: January 10, 2013, 12:17:18 am »
A while ago I made a rather neat program that could let you access menu items even after you have left the menu. What do I mean by this? If you set the Strings menu as your menu to access, you can press ON+[number] anywhere in the OS to paste the string. You can use other menus as well, but the Apps and PRGM menu won't work for this. This should help anybody who wants to add a new element of efficiency to their on-calc coding :P

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: MenuKey
« Reply #1 on: January 10, 2013, 01:04:33 am »
This is pretty neat Xeda! :D

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: MenuKey
« Reply #2 on: January 10, 2013, 01:11:20 am »
now that i think about it, you should get thepenguin to stick an incarnation of this in zstart. that way, people wouldn't be put off by other hooks being overwritten, and it would probably be very popular.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: MenuKey
« Reply #3 on: January 10, 2013, 04:08:33 am »
Omnicalc already had a similar feature, but it only worked with tokens from the Catalog menu, probably due to hooks.

On a tangentially related note, I've bugged thepenguin about putting Omnicalc functionality into zStart, but he won't.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: MenuKey
« Reply #4 on: January 10, 2013, 10:27:53 am »
It basically sets a keyhook that check when you press ON+Vars. Then, it records the menu that you are in and whenever you press ON+number, it selects the menu item by writing to a few bytes of RAM.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: MenuKey
« Reply #5 on: January 10, 2013, 12:24:39 pm »
I wondered, are you using a getCSC hook or a getKey hook ? In any case, how are you testing the ON key ?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: MenuKey
« Reply #6 on: January 10, 2013, 02:53:40 pm »
now that i think about it, you should get thepenguin to stick an incarnation of this in zstart. that way, people wouldn't be put off by other hooks being overwritten, and it would probably be very popular.

I could do it yes, but I don't know how I would do it and not mess up any of the current hooks (when I do that, people get angry).

You could do this (though not as nicely) by simply setting shortcuts for an entire menu in chronological order.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: MenuKey
« Reply #7 on: January 10, 2013, 03:21:22 pm »
I wondered, are you using a getCSC hook or a getKey hook ? In any case, how are you testing the ON key ?
getCSC hook is what I am using. To test the ON key:
Code: [Select]
     in a,(4)
     and 8
     ret nz        ;means ON is not being pressed
<<ON is being pressed, so do stuff>>

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: MenuKey
« Reply #8 on: January 10, 2013, 03:44:45 pm »
I've never thought of that being a way to speed up coding, but now that I think about it, I can imagine it being pretty useful (especially with the PRGM command menus). That's pretty neat!
Omnicalc already had a similar feature, but it only worked with tokens from the Catalog menu, probably due to hooks.
Didn't Omnicalc only create a custom menu of catalog commands? To be honest, what I think would be really useful is a combination of the two—creating a custom menu of difficult catalog commands (like the six string commands that don't show up anywhere else), and then having an ON+# shortcut to access them without opening the custom menu.




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: MenuKey
« Reply #9 on: January 10, 2013, 03:50:07 pm »
That would be rather cool o.o And yeah, that is all I remember Omnicalc having, I'm not sure which feature DrDnar is referring to .__.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: MenuKey
« Reply #10 on: January 10, 2013, 05:37:44 pm »
Sounds nice, only too bad it wouldn't work with zstart >.<

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!