lmc_get_button
Posted: 17 Dec 2018, 11:03
Hi,
Thanks for creating such a small but useful program. I have change to a notebook computer recently, and am trying create some hotkey within the small keyboard.I am trying to create some kind of combo keys:
{f2}+{f3} open website A
{f2}+{f4} open web site B
{f2} press f2
{f3} press f3
{f4} press f4
Two approach I was trying:
1.
2.use lmc_get_button
However, it says: [DX] ERROR: Device MACROS is not game device. Axis are supposed to be handled for game devices only.
It seem the axis function is the previous function in the code.
Am I using the right function to create my script?
I don't want to use typical ctrl/shift/alt + key ,as there are always some program assigning that hot key.
there are fn key on the notebook, but as I test luamacro cannot detect keypress of it.
Thanks
Thanks for creating such a small but useful program. I have change to a notebook computer recently, and am trying create some hotkey within the small keyboard.I am trying to create some kind of combo keys:
{f2}+{f3} open website A
{f2}+{f4} open web site B
{f2} press f2
{f3} press f3
{f4} press f4
Two approach I was trying:
1.
- create a variable 'isF2'=0.
- when f2 is press, 'isF2'=1
- when f3 is press check 'isF2'
2.use lmc_get_button
- i input the parameter like this:
Code: Select all
print(' isF2: ' .. lmc_get_button('MACROS',113))
It seem the axis function is the previous function in the code.
Am I using the right function to create my script?
I don't want to use typical ctrl/shift/alt + key ,as there are always some program assigning that hot key.
there are fn key on the notebook, but as I test luamacro cannot detect keypress of it.
Thanks