Search found 517 matches

by admin
23 Mar 2018, 15:20
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 11
Views: 699

Re: Xplane 11 Function and Numpad Keys not working

Generally the tool is not intended to react to key combinations. The idea is opposite – you can use multiple keyboards to avoid need of key combinations. On the other hand I think it’s doable – you need some flag (variable) which you set on ctrl (or shift) down and reset on release. Then you can ada...
by admin
23 Mar 2018, 13:19
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 11
Views: 699

Re: Xplane 11 Function and Numpad Keys not working

Ok, instead of

Code: Select all

elseif (button == string.byte('{NUM1}')) then lmc_xpl_command('laminar/B738/autopilot/speed_press')
try

Code: Select all

elseif (button == 97) then lmc_xpl_command('laminar/B738/autopilot/speed_press')
and if it works find other numbers here
by admin
23 Mar 2018, 08:57
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 11
Views: 699

Re: Xplane 11 Function and Numpad Keys not working

string.byte is strandard lua function at it has nothing to do with key names used in sendKeys (like {NUM6}). You need to use virtual key code here - even find such codes for F* keys or put debug print command to your handler that will print current key value (variable button) and then use this value...
by admin
19 Mar 2018, 10:25
Forum: HOW-TOs and documentation
Topic: Sending Keys
Replies: 1
Views: 308

Re: Sending Keys

You have 2 options: 1) use LMC as usual which means once keyboard handler is hooked all original keys are blocked. So you would have to use lmc_send_input or send keys to send original key again 2) recently I have added a parameter to turn the low level keyboard hook (which block original keys) off....
by admin
13 Mar 2018, 09:17
Forum: HOW-TOs and documentation
Topic: Alittle question about edit file
Replies: 1
Views: 188

Re: Alittle question about edit file

It's xml file in the same directory as exe. Name can be changed by parameter. You could transfer it but you need even to change keyboard id inside the xml to match different keyboard or AFAIR there's a function to transfer all macros from non-active (not found) keyboard to different one (currently c...
by admin
12 Mar 2018, 09:35
Forum: General
Topic: Finding a Key Already in Use
Replies: 2
Views: 5190

Re: Finding a Key Already in Use

Rwelk137 wrote:
11 Mar 2018, 03:01
But what if a button is already in use? Is there a way I check the value of a button that's already being used for something so I can map it to something else?
You can put the print command at beginning of the callback handler, not to the last else, can't you?
by admin
07 Mar 2018, 09:36
Forum: HOW-TOs and documentation
Topic: Example script for OBS with usb keypad (homemade streamdeck)
Replies: 4
Views: 1087

Re: Example script for OBS with usb keypad (homemade streamdeck)

Nice one. Just 2 small comments: - the "number" part from device id doesn't have to be from that specific place. It can be any part of that long value which is unique between other values (for other keyboards) - you don't need HidMacros to get the key number. I believe those number are virtual key c...
by admin
02 Mar 2018, 15:51
Forum: HOW-TOs and documentation
Topic: Quick question re numbers
Replies: 5
Views: 403

Re: Quick question re numbers

Hmm, no other idea.
Maybe instead of send sequence macro try to use script with SendKeys - see http://www.hidmacros.eu/scripting.php#keys
by admin
28 Feb 2018, 09:45
Forum: HOW-TOs and documentation
Topic: Quick question re numbers
Replies: 5
Views: 403

Re: Quick question re numbers

Does such macro work in other program?
If you registered macro sending 0 on key press on mini keyboard, does this 0 arrive e.g. to notepad?