Search found 3 matches

by csadi0011
21 Mar 2017, 09:15
Forum: General
Topic: Use LuaMacros with scan codes or key codes?
Replies: 5
Views: 8845

Re: Use LuaMacros with scan codes or key codes?

So this:
button == 78
instead of this:
button == string.byte('N')

Or I misunderstood?
by csadi0011
21 Mar 2017, 08:59
Forum: HowTos
Topic: Tutorial:App filter script
Replies: 6
Views: 15176

Re: Tutorial:App filter script

The idea was good, but You did a mistake.
Use Your code like this:

Code: Select all

if (string.match(tt, "Chrome")) then
   appf=1
   if (button == 97) then lmc_send_keys("^{TAB}")
   elseif (button == 98)then lmc_send_keys("^+{TAB}")
   else appf=0
   end
end