Jump to content



Photo

Accelerator Tables


  • Please log in to reply
9 replies to this topic

#1 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 01 February 2006 - 02:54 AM

This idea came to me in another thread but I'm posting it here in case somebody wants to take the idea and run. Adding support for accelerator tables to AutoIt would be pretty simple. Make a wrapper function which calls CreateAccelerateTable()/LoadAccelerators(). I would expect the CreateAcceleratorTable() wrapper function to take a 2 dimensional array where element 0 is a Send()-compatible hotkey string and element 1 is the control ID to invoke. The CreateAcceleratorTable() should then automatically call LoadAccelerators() and as long as TranslateAccelerators() is called in the message pump, AutoIt GUI's will magically support accelerator keys.

For those who don't know, an accelerator table allows the creation of hotkeys which when pressed will trigger an event in the GUI (A button press, et cetera) but only while that GUI is active. It's keyboard shortcuts, basically.





#2 FuryCell

FuryCell

    A cornered fox is more dangerous than a jackal!

  • Active Members
  • PipPipPipPipPipPip
  • 2,437 posts

Posted 04 February 2006 - 01:41 PM

Sounds like a good idea , as trying to use HotKeySet() locally in a GUI can be frustrating and clunky.

Edited by SolidSnake, 04 February 2006 - 01:42 PM.

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

#3 therks

therks

    Witty quote

  • Active Members
  • PipPipPipPipPipPip
  • 2,163 posts

Posted 04 October 2006 - 07:27 AM

Any progress on this? I really wish someone would pick this up.

#4 therks

therks

    Witty quote

  • Active Members
  • PipPipPipPipPipPip
  • 2,163 posts

Posted 20 March 2007 - 09:08 PM

*Sigh*
Over a year since this topic was created and still nothing has been done about it. Any dev's willing to take a look at it now?

#5 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 20 March 2007 - 10:08 PM

I just looked and we don't actually call TranslateAccelerator(). It should be trivial to add that. But somebody else will have to take the initiative to do the rest (which can be done in AutoIt with DllCall()).

#6 WeMartiansAreFriendly

WeMartiansAreFriendly

    Where's the kaboom?

  • Active Members
  • PipPipPipPipPipPip
  • 1,245 posts

Posted 23 March 2007 - 02:08 AM

I just looked and we don't actually call TranslateAccelerator(). It should be trivial to add that. But somebody else will have to take the initiative to do the rest (which can be done in AutoIt with DllCall()).


sounds good..
Posted ImageDon't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

#7 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 18 July 2007 - 05:49 PM

I would really like this to be implemented into AutoIt, because it's a problem creating GUIs that have many hotkeys, as HotKeys can only be registered once for whole system.

Edited by RazerM, 18 July 2007 - 05:50 PM.

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

#8 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,529 posts

Posted 18 March 2008 - 08:09 AM

:)

#9 rover

rover

    unmutual

  • Active Members
  • PipPipPipPipPipPip
  • 825 posts

Posted 18 March 2008 - 10:17 AM

Outstanding!

Thank You Jon and Devs!
I see fascists...

#10 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,315 posts

Posted 18 March 2008 - 09:30 PM

Thanks Jon!

Here is example how to use it as replace for HotkeySet()
for functions not associated with GUI controls.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users