how to simulate braces?

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

how to simulate braces?

Post by moschg »

hi everybody! how can i simulate the braces? { }
(alt 123 and alt 125)

thanks in advance!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

Hi,

If I recall correctly, if you type {{ if should simulate a single open brace '{'
As for close brace, I thought you could just do a single } as long as there was notan opening brace but maybe that needs to be double too.

Alternatly for both, as you already know the key codes, your might also be able to use the {EXT123} or {EXT:125}?

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

Re: how to simulate braces?

Post by moschg »

mmm.... that not works! trying to put the double brace, I get a special italian char (è)... even {EXT123} or {EXT:123} not working how expecting...
any other solution?

thank for help!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

OK there seems to be a problem. It is supposed to work with {{ but it is not. The ext probably only works for extended keys, rather than ascii keys but I will have to check.

Is by any chance, the character you get when you use {{ on the key in a different shift state? What language windows/keyboard do you use?

I notice when I do {{ I get [ which is on the same key with a different shift state. So I suspect there may be a bug sending the key without the shift state set correctly.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

Aha, I might have a solution....

Try this in the simulated keystroke dialog....

Code: Select all

{SHIFT}{{
and

Code: Select all

{SHIFT}}
Because the key has to be shifted on my keyboard (I presume its the same on yours) and therefore you have to simulate the shift too. This goes for any shifted character I think?!

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

Re: how to simulate braces?

Post by moschg »

Working for the closed brace } but not for the opened one {. I still get the "è" char instead. I have an italian keyboard.
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

Well I got it working on my UK keyboard.... I guess its the way the virtual keys are sent and how they translate to keyboard keys. There must be a solution but without an Italian keyboard I probably wont be able to find it. More to the point, I might not be able to fix it for the same reason :S

If you can find the virtual key code, for your keyboard maybe that will work with the {EXT:zzz} or perhaps {SHIFT}{EXT:zzz} thing I mentioned before.... But I don't know how to go about that other than google.

Sorry


EDIT: Where is the brace key on your keyboard? It looks like the "è" character is in the place where the { is on my keyboard... That's probably why your getting "è". I probably need some sort of language translation for key codes but I'm not sure how easy that will be to figure out. Maybe the Italian virtual keyboard will help me!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

Re: how to simulate braces?

Post by moschg »

this is an italian keyboard:
http://www.terena.org/activities/multil ... talian.gif

we have not braces directly on keys. The only way to get braces for us is using ALT + 123 and ALT + 125 key codes.

But, Phil, you can stop getting crazy with this problem.... i opened the thread just for curiosity. That's not so important...
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

I already saw that image (and that's why I asked where the keys were - I thought I might be missing something). It is very strange and I will try and fix it at some point when I'm next working on the code, but as you suggest, it is not my top priority. If I can figure it out I will let you know.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

Re: how to simulate braces?

Post by moschg »

ok!
thank you for help and for the time spent!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

Ive been looking in to this a little more and have made a few little changes to the code. It might fix the problem but I cant be sure without an italian keyboard....

Ive put together a new beta prior to releasing v2.1 which will be a bugfix point release with no new features.
There are only about 6 changes - minor bug fixes reported since v2.0 so I hope the release cycle wont be too long this time!

If you want to test the beta let me know and I'll PM you a link.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

Re: how to simulate braces?

Post by moschg »

sure!
send me the link. i'll be happy to help you!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

See the post here:
viewtopic.php?f=6&t=626
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
moschg
New User
Posts: 7
Joined: Mon Jun 13, 2011 9:31 am

Re: how to simulate braces?

Post by moschg »

Working now!
Double brace {{ for get the opened one and a single brace } for the closed one.
:cheers:
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: how to simulate braces?

Post by phil »

Great :)
Thanks for testing it for me.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply