Jump to content

Hey Guys,

 

My Logitech G110 Keyboard has Makro-Keys (G1-G12) with 3 different Profils (M1-M3) so a total of 36 programmable Makro Keys.

 

You can add per profile even one Lua-Script. Because I dont know anything about Lua and dont have time to learn it, I want to ask you guys if you could help me programming this script:

 

I Want an simple Counter. Everytime I press G10, for example, 1 Should be added to x.

So if I pressed G10 20 times: x= 20

After some pressing and counting I want the number to be written down with an other Key (G11 for example).

 

My English is not the best so I hoped I explaid it right.

 

I would be REALY thankfull for any kind of help. :) Feel free to ask 

 

PS: Is this even possible? O.o

Link to comment
https://linustechtips.com/topic/378141-searching-for-g110-script-lua-counter/
Share on other sites

Link to post
Share on other sites

this is a lot simpler than the voodooo my G110 is running (my script regularly locks up the logitech software)

 

i could work on a small script that'd do what you want, but i'm probably gonna make some huge missers as i'm sick as a dog today.

Link to post
Share on other sites

this is a lot simpler than the voodooo my G110 is running (my script regularly locks up the logitech software)

 

i could work on a small script that'd do what you want, but i'm probably gonna make some huge missers as i'm sick as a dog today.

No stress pls :)

 

If you have time and the knowledge and feel better it would be realy realy awesome from you.

 

I would be so thankful you would not believe it :D

 

Thank you for your help :)

Link to post
Share on other sites

No stress pls :)

 

If you have time and the knowledge and feel better it would be realy realy awesome from you.

 

I would be so thankful you would not believe it :D

 

Thank you for your help :)

i feel better today, so i'll have a go at it:

-insert restarting logitech gaming software here-

counter=0function _OnEvent(event, arg, family)    if (event == "G_PRESSED" and arg == 10) then        counter++    end    if (event == "G_PRESSED" and arg == 11) then        -- typing numbers here, i'm gonna work on how that works.    end    if (event == "G_PRESSED" and arg == 12) then        counter = 0    end 
Link to post
Share on other sites

https://forums.logitech.com/t5/Logitech-G-Keyboards/Chatting-Writing-Function-for-LUA-script/td-p/562806

 

using the write function of this you "should" be able to write(counter) in the second if statement.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×