≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
keycode events
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b][/b] wrote: It depends on how you want to acess them, i beleive there are many extensions in the community that allows you to have the action on specific key press. or if you want to do it directly using scripting, you can then simply register the KeyDown or KeyUp event provided by JS API of CopperCube. here is the Code from Documentation:- [code] ccbRegisterKeyDownEvent("keyPressedDown"); function keyPressedDown(keyCode) { if(keyCode == 70){ ccbSetCopperCubeVariable("F_Down","true");] } [/code] what the above code will do is if you press [b]F[/b] key it will set the variable "F_Down" to true, the variable remain true even after the keyleft up, if you want to set it false on key left up, then simply use the KeyUp event to set variable to false. I know it will be hard for you to learn Javascript but I am planning a video series specifically for javascript beginners in CopperCube.[/quote]
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