Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Can we 'call' a key?

vegetalain
Registered User
Quote
2020-05-12 12:00:51

Hello, hm... so, i'm in France, and then, my keyboard is a AZERTY and not QWERTY. When i use Coppercube, my fingers hurts xD

WASD is hard, and when i change in windows tsk bar, the "FR" keyboard to "EN" keyboard, there's no change in Cc. (?) Why, i don't know.

Make customized keys in this program seems to be very difficult, but : i thought, maybe i can "call a key"?

When press "w", i go forward :) ok?
I thought maybe when i press... hm, "y" for exemple, a javascript like "key(w) = ok" is activate, and the "'w' key function" would be activated too.

Then, when i press "Y", i go forward... (because the "w" key was called).

Is it possible?

The scrit maybe seems like that, if i want replace wsad by yhgj:

ccbRegisterKeyDownEvent("keyPressedDown");

function keyPressedDown(keyCode)
{
if (keyCode == 89) { <activation of keyCode(87);> }
if (keyCode == 72) { <activation of keyCode(83);> }
if (keyCode == 91) { <activation of keyCode(65);> }
if (keyCode == 74) { <activation of keyCode(68);> }
if (keyCode == 85) { <activation of 'action' or 'use' key;> }
}

But i have no idea, how to use the correct synthaxe or only, if it works...

Someone can help me on this point, please?

Thanks ;)

Have a nice day.
Alain.


Robo
Guest
Quote
2020-05-23 03:44:29

There was a post about invoking a key from memory even when not selected. From memory some code to do that if you look for it.


apydya
Registered User
Quote
2020-11-04 16:45:31

Hello,
did you solved your keyboard problem ?
I'm still in US keyboard with e franch one ...
Please help.
Apy


veganpete
Registered User
Quote
2020-11-04 18:54:09

If you only want remap your keyboard, you can remap it using AHK.

https://www.autohotkey.com/


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact