Search found 5 matches

by yxz11
30 Nov 2021, 01:24
Forum: HOW-TOs and documentation
Topic: Remap laptop internal keys
Replies: 5
Views: 6783

Re: Remap laptop internal keys

Now I have two problems: 1. The macro worked for a while, then stopped working, I have to restart it to make it work again. 2. After mapping the "menu" key to ctrl using following, it sends ctrl but also sends "menu"? Any idea what I did wrong? lmc_set_handler('SurfaceCover',93,1,function() lmc_send...
by yxz11
30 Nov 2021, 01:10
Forum: HOW-TOs and documentation
Topic: can someone anyone for the love of god help me get my script to auto run on pc start up
Replies: 2
Views: 6254

Re: can someone anyone for the love of god help me get my script to auto run on pc start up

Make your script, save it under c:\prog\luamacros\mine.lua open windows explorer, point it to: c:\prog\luamacros\ open another windows explorer, point it to c:\Users\YOURUSER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\LuaMacros.lnk right click c:\prog\luamacros\mine.lua, drag it t...
by yxz11
15 Oct 2021, 02:45
Forum: HOW-TOs and documentation
Topic: Remap laptop internal keys
Replies: 5
Views: 6783

Re: Remap laptop internal keys

Just want to post the working solution I have now, hope this is useful. And thanks again for the great utility: lmc.minimizeToTray = true lmc_minimize() -- find out the device id for internal keyboard --lmc_print_devices() -- get the ID of the second keyboard from the stack that this line creates lm...
by yxz11
07 Sep 2021, 14:49
Forum: HOW-TOs and documentation
Topic: Remap laptop internal keys
Replies: 5
Views: 6783

Re: Remap laptop internal keys

Thanks, this works. lmc_device_set_name('SurfaceCover', "ID_09C0") lmc_set_handler('SurfaceCover',120,1,function() lmc_send_keys('{HOME}') end) One more question, how do I send the "CTRL"? What I'm trying to do is to remap the "Context Menu" key to "ctrl" key. What do I need to put in where "????" i...
by yxz11
26 Aug 2021, 01:01
Forum: HOW-TOs and documentation
Topic: Remap laptop internal keys
Replies: 5
Views: 6783

Remap laptop internal keys

Hello there, I need some help remapping laptop keys. Here is my scenario: I have a Microsoft Surface with type cover, I want to keep F1-F8 intact and swap F9 with "Home", F10 with "End", F11 with "PgUp" and F12 with "PgDn". Follow quistart.lua I got following code, however, it has two issues: 1. I c...