I have but it's not been easy. got a few limitations on the Alt/AltGr/Shift-AltGr keys for non standard ascii chars I've been trying to get my head around.
Using the keysym file doesn't seem to work.
I tried this code...
Select Key.Code Case key["Alt_L"] Return "[Alt_L]" Case Key["ISO_Level3_Shift"] Return "[ISO_Level3_Shift]" ' AltGr Case Key["ISO_Level5_Shift"] Return "[ISO_Level5_Shift]" ' AltGr+Shif End SelectBut it does not seem to work,
i have been examining the String.Code() values instead to see if values >127 for
ISO_Level_3_Shift (AltGr range) but i believe..
ISO_Level_5_Shift is Shift-AltGr but i don't know where the value crosses over. And i'm not even sure i'm understanding everything correctly.
ISO_Level_3_Shift seems to work for Things like Benoíts í char that is just AltGr + i to for the most part it's working but i think here is where it will error with Shift-AltGr.
But suffice to say a MacroRecorder.class that records and plays back keystrokes has been made in this project...
This is my scripting text editor beta
Uses TextEditor and utilises "sh" "gambas" highlight styles/modes
highlighting is fully customisable and saves a config for each mode.
Has a run button to run script in TerminalView , works on bash scripts and gambas scripts
Multiple Tabs (Experimental)
Keystroke Macro Recorder.
Very much beta and needs lots of testing.
The app has temporary buttons at present to start/stop/play/clear the macro.
It will recognise an F3 (Find Next) keypress that is handy in macro recording
MacroRecorder.class should be addable to most projects, it's not TextEditor only
Its set up like this...
NOTE: Obsolete method for new version
Public Sub MenuMacroStart_Click() If Not mMacro Then mMacro = New MacroRecorder mMacro.Editor = $tEditor mMacro.Record() End$tEditor Object can theoretically be anything but ive only tested it on a texteditor so far. it sets up a Key reading event hooks and needs to set focus on the object before sending keys so object must be set. should work on anything that gives and recieves key down and keyup events.
Load some default macros.
Test and bugfix the s**t out of it.
Try to get Benoít and the team to refine it and add it to gambas because i would soooo love a macro recorder in gambas
Please feel free to suggest anything you might know i've missed or have not understood about keys.
Or any improvements you might offer.
Thank you for listening..
All the best