lostallmymoney / Razer_Mouse_Linux

Enables macros with extra razer buttons. Also works with other devices.
Other
42 stars 9 forks source link

String fuction #14

Closed Stibax closed 2 years ago

Stibax commented 2 years ago

Hi, i've notice that if i asign a string like this: 5 - string=name@gmail.com it prints only namegmail.com without "@" I miss something? Thanks

lostallmymoney commented 2 years ago

Problem with xdotool. Try segmenting it : 5-string=name 5-keyclick=@ 5-string=gmail.com I have worked on a fix but never finished it, i might try to finish it up.


From: Stibax @.> Sent: Wednesday, December 8, 2021 1:34:30 PM To: lostallmymoney/Razer_Mouse_Linux @.> Cc: Subscribed @.***> Subject: [lostallmymoney/Razer_Mouse_Linux] String fuction (Issue #14)

Hi, i've notice that if i asign a string like this: 5 - @.**@.> it prints only namegmail.com without "@" I miss something? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/lostallmymoney/Razer_Mouse_Linux/issues/14, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSTWRMW6UEVQ5CCLIMQYU3UP6QLNANCNFSM5JUPU66Q.

Stibax commented 2 years ago

No it wouldn't print the @ symbol. Maybe because in the italian layout keyboard to make @ i have to press ALTGR end not shift? If i put for example ? it will be printed!

lostallmymoney commented 2 years ago

Yes exactly, you can try to switch xdotool for any other command that can write @ lol.. i'll post the fix prototype as branch in 5 minutes for you, I was able to fix the issue on apostrophee ' , it should probably work with @ but it is poorly implemented. I don't have lots of time rn it's not implemented maybe you can adapt it for your and it maybe has bugs in other places.


From: Stibax @.> Sent: Wednesday, December 8, 2021 3:28:46 PM To: lostallmymoney/Razer_Mouse_Linux @.> Cc: Cam @.>; Comment @.> Subject: Re: [lostallmymoney/Razer_Mouse_Linux] String fuction (Issue #14)

No it wouldn't print the @ symbol. Maybe because in the italian layout keyboard to make @ i have to press ALTGR end not shift?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/lostallmymoney/Razer_Mouse_Linux/issues/14#issuecomment-989170746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSTWRNMRQ4S4SXZWK4IA5TUP65X5ANCNFSM5JUPU66Q.

Stibax commented 2 years ago

Thanks lostallmymoney, i will try and i report you back. Have a nice day.

lostallmymoney commented 2 years ago

Try the new beta branch :) should work pretty good for @ and ' . Might fail on weird chars tho. The file is a bit messy at the top I got code from an old lib with deprecated functions that still work better than the other stuff lol. People on the xdotool git are also searching for the fix with some progress maybe.

lostallmymoney commented 2 years ago

https://github.com/lostallmymoney/Razer_Mouse_Linux/tree/Beta

lostallmymoney commented 2 years ago

With the optic of accessing a login creds manager I was thinking of making encrypted configs that need to be opened with the right button combo. Then you can have your in house creds bank

lostallmymoney commented 2 years ago

I made an update if you want to try it you can now hold special keys down, although releasing special keys will release them all for now.

Stibax commented 2 years ago

Hi, I've install the new version. I've meet a problem with compiler (install.sh) give me the following error: g++-10 command not found. I've resolved, i think, editing the install.sh and change g++-10 in g++, but i don't know if my guss was correct. In any way, with this modification, the installation goes well. Now i don't understand how, with the new version, i can print name@gmail.com. I've have tried: string=name key=@ stringRelease=gmail.com no @ printed I've tried: string=name KeyClick=Alt_R key=ò stringRelease=gmail.com

and other configuration.

I like your idea of making encrypted configs. Thanks again.

lostallmymoney commented 2 years ago

Try the config i included in the new version. The command is special=@ or specialRelease=@ (press at button release)


From: Stibax @.> Sent: Thursday, December 9, 2021 3:06:10 PM To: lostallmymoney/Razer_Mouse_Linux @.> Cc: Cam @.>; State change @.> Subject: Re: [lostallmymoney/Razer_Mouse_Linux] String fuction (Issue #14)

Hi, I've install the new version. I've meet a problem with compiler (install.sh) give me the following error: g++-10 command not found. I've resolved, i think, editing the install.sh and change g++-10 in g++, but i don't know if my guss was correct. In any way, with this modification, the installation goes well. Now i don't understand how, with the new version, i can print @.**@.>. I've have tried: string=name key=@ stringRelease=gmail.com no @ printed I've tried: string=name KeyClick=Alt_R key=ò stringRelease=gmail.com

and other configuration.

I like your idea of making encrypted configs. Thanks again.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/lostallmymoney/Razer_Mouse_Linux/issues/14#issuecomment-990202968, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSTWROCKAVAFKZHANALDO3UQED3FANCNFSM5JUPU66Q.

lostallmymoney commented 2 years ago

And yes thanks for your feedback for g++10 i was trying stuff out and forgot to take it out


From: Camille Guay Brochu @.> Sent: Thursday, December 9, 2021 9:08:10 PM To: lostallmymoney/Razer_Mouse_Linux @.>; lostallmymoney/Razer_Mouse_Linux @.> Cc: State change @.> Subject: Re: [lostallmymoney/Razer_Mouse_Linux] String fuction (Issue #14)

Try the config i included in the new version. The command is special=@ or specialRelease=@ (press at button release)


From: Stibax @.> Sent: Thursday, December 9, 2021 3:06:10 PM To: lostallmymoney/Razer_Mouse_Linux @.> Cc: Cam @.>; State change @.> Subject: Re: [lostallmymoney/Razer_Mouse_Linux] String fuction (Issue #14)

Hi, I've install the new version. I've meet a problem with compiler (install.sh) give me the following error: g++-10 command not found. I've resolved, i think, editing the install.sh and change g++-10 in g++, but i don't know if my guss was correct. In any way, with this modification, the installation goes well. Now i don't understand how, with the new version, i can print @.**@.>. I've have tried: string=name key=@ stringRelease=gmail.com no @ printed I've tried: string=name KeyClick=Alt_R key=ò stringRelease=gmail.com

and other configuration.

I like your idea of making encrypted configs. Thanks again.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/lostallmymoney/Razer_Mouse_Linux/issues/14#issuecomment-990202968, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSTWROCKAVAFKZHANALDO3UQED3FANCNFSM5JUPU66Q.

lostallmymoney commented 2 years ago

For normal chars I recommend xdotool as it's nicely implemented but if you need to use special chars that's where the libfakekey comes in play. Now since they both have features that we need both are included and special uses libfakekey libraries

lostallmymoney commented 2 years ago

Oh I found a bug it seems xserver connections are not disconnecting and at some point reach a limit crashing the tool. I'll try to fix it later, weird bug. It should only affect you if you write your email address 100 times tho

lostallmymoney commented 2 years ago

There, every session now closes properly. Current setup looks like it has everything right ;)

lostallmymoney commented 2 years ago

Now I removed the old xdotool strings and replaced it with special, so if you want to try the new version be sure to merge all special chars along with normal chars into strings(change configs special to string). This should make it simpler. Only when trying to press all the ascii chars at once do i get any noticeable lag, when writing normal text it can write whole paragraphs. Tell me if it's working good on your side !

Stibax commented 2 years ago

Great job! It works now print @ without any lag. I have found a little error, in install.sh where the file nagakillroot.sh has a different name in src folder (killroot.sh) so when compile gives error. I have also try to add the following line in naga.cp (src): devices.emplace_back("/dev/input/by-id/usb-1532_Razer_Naga_Pro_000000000000-if02-event-kbd" , "usb-1532_Razer_Naga_Pro_000000000000-event-mouse"); // NAGA PRO because when i plug the mouse for charging it doesn't work because in /dev/input/by-id/ the device files change, so i was thinking that adding that line when i charge the mouse naga daemon switch the driver, but it doesn't work. Thanks thanks for the great work! Have a nice evening.

lostallmymoney commented 2 years ago

It should work if you place your line before all the others


From: Stibax @.> Sent: Friday, December 10, 2021 1:57:15 PM To: lostallmymoney/Razer_Mouse_Linux @.> Cc: Cam @.>; State change @.> Subject: Re: [lostallmymoney/Razer_Mouse_Linux] String fuction (Issue #14)

Great job! It works now print @ without any lag. I have found a little error, in install.sh where the file nagakillroot.sh has a different name in src folder (killroot.sh) so when compile gives error. I have also try to add the following line in naga.cp (src): devices.emplace_back("/dev/input/by-id/usb-1532_Razer_Naga_Pro_000000000000-if02-event-kbd" , "usb-1532_Razer_Naga_Pro_000000000000-event-mouse"); // NAGA PRO because when i plug the mouse for charging it doesn't work because in /dev/input/by-id/ the device files change, so i was thinking that adding that line when i charge the mouse naga daemon switch the driver, but it doesn't work. Thanks thanks for the great work! Have a nice evening.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/lostallmymoney/Razer_Mouse_Linux/issues/14#issuecomment-991217400, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSTWRJA7TZ5OJD4IY23GC3UQJEQXANCNFSM5JUPU66Q.

Stibax commented 2 years ago

Sorry it was my error! I forgot the folder in the second device mouse event. So it works great plugged and unplugged in wireless mode! So the right line (at the bottom works) is the following:

devices.emplace_back("/dev/input/by-id/usb-1532_Razer_Naga_Pro_000000000000-if02-event-kbd" , "/dev/input/by-id/usb-1532_Razer_Naga_Pro_000000000000-event-mouse"); // NAGA PRO

Thanks again! Now it's perfect!!!