Author Topic: Best Language for Key Remap Program  (Read 2074 times)

0 Members and 1 Guest are viewing this topic.

Offline ASETNIOP

  • Thread Starter
  • Posts: 28
  • Location: United States
    • ASETNIOP
Best Language for Key Remap Program
« on: Fri, 08 May 2015, 15:26:26 »
Hi everyone,
I'm the designer of ASETNIOP; things have been dormant for me for a long time but I've just recently gone diving back into the code and want to start working on a desktop version.  I'm hoping to write something similar to the functionality of AutoHotKey; i.e. something that will allow me take over keystrokes coming from the keyboard and deal with them my own way.  Does anyone have any advice over what language would be best to use to do this?  I'm not doing anything particularly complicated on the back end; it's just a lot of for loops and string manipulation.  Mainly I'm interested in something where it will be fairly easy to interpose the program between the keyboard input and what eventually gets sent to the computer. 

Any suggestions?

Offline user 18

  • * Senior Moderator
  • Posts: 2231
  • Location: Deutschland
Re: Best Language for Key Remap Program
« Reply #1 on: Fri, 08 May 2015, 16:06:18 »
Probably can't go too far wrong writing something in C.
Please PM me if you are waiting on classifieds approval or have a question about the classifieds rules. | geekhack Terms of Service

Max Nighthawk x8 (MX Brown) | CM QFR (MX Blue) | CM QFR (MX Clear) | RK-9000 (MX Red) | Model M 1391401 | Model M SSK 1370475 | CM Novatouch | G80-8113 (MX Clear) | 60% (85g MX Blue) | Whitefox Aria (MX Clear) | CL-LX (MX Clear) | Mira SE (MX Clear)
Avatar by ashdenej

Offline Sygaldry

  • Edema Ruh
  • * Esteemed Elder
  • Posts: 1261
  • Location: Chicago
  • All the truth in the world is held in stories.
Re: Best Language for Key Remap Program
« Reply #2 on: Fri, 08 May 2015, 16:20:40 »
Seconding the C recommendation.
null

Offline ttzhou

  • Posts: 259
  • Location: canadaland
  • in your base, belonging
Re: Best Language for Key Remap Program
« Reply #3 on: Sat, 09 May 2015, 11:19:25 »
thirded for C.

there's a reason linux kernel is written in it.

Offline ASETNIOP

  • Thread Starter
  • Posts: 28
  • Location: United States
    • ASETNIOP
Re: Best Language for Key Remap Program
« Reply #4 on: Mon, 11 May 2015, 11:25:16 »
Cool, I'll take a good hard look at that first.  Thanks for the advice, folks!

Offline metalliqaz

  • * Maker
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Best Language for Key Remap Program
« Reply #5 on: Mon, 11 May 2015, 11:43:19 »
thirded for C.

there's a reason linux kernel is written in it.

Yes, because Linux is a kernel.  If I understand OP correctly, he would be creating two programs: a driver and a GUI.  For the former, C is an obvious choice.  For the later, C is miserable.  It's 2015!  I'd probably use C# .NET for Windows, and for *nix I'd use Python.

Offline ttzhou

  • Posts: 259
  • Location: canadaland
  • in your base, belonging
Re: Best Language for Key Remap Program
« Reply #6 on: Mon, 11 May 2015, 11:46:07 »
thirded for C.

there's a reason linux kernel is written in it.

Yes, because Linux is a kernel.  If I understand OP correctly, he would be creating two programs: a driver and a GUI.  For the former, C is an obvious choice.  For the later, C is miserable.  It's 2015!  I'd probably use C# .NET for Windows, and for *nix I'd use Python.

I consider the GUI as a separate component. I interpreted his question as best language to write the core functionality (the driver, as you mention).

GUI is overrated  :p But yes, an OOPL would be a lot better. And Python's main implementation is still in C :P

Offline ASETNIOP

  • Thread Starter
  • Posts: 28
  • Location: United States
    • ASETNIOP
Re: Best Language for Key Remap Program
« Reply #7 on: Mon, 11 May 2015, 13:15:26 »
thirded for C.

there's a reason linux kernel is written in it.

Yes, because Linux is a kernel.  If I understand OP correctly, he would be creating two programs: a driver and a GUI.  For the former, C is an obvious choice.  For the later, C is miserable.  It's 2015!  I'd probably use C# .NET for Windows, and for *nix I'd use Python.

I consider the GUI as a separate component. I interpreted his question as best language to write the core functionality (the driver, as you mention).

GUI is overrated  :p But yes, an OOPL would be a lot better. And Python's main implementation is still in C :P

This is correct; I'll be needing a driver and a GUI.  It's meant to be a touch-typing system, however, so the GUI is kind of a secondary consideration (aimed more at beginners) so I'll be aiming a lot more of my focus on the driver part.