Binding keys
3 posts • Page 1 of 1
Binding keys
How do i make a key act like an item on the tool bar at the bottom of the screen? For instance, I've tried the following:
Keys.bind("z",{Scene.my.Zoom})
Tools.ZoomTool.z
Tools.ZoomTool.Hotkey.z
Tools.ZoomTool.Hotkey z
Tools.ZoomTool.Hotkey ("z")
Tools.ZoomTool.Hotkey,("z")
Tools.ZoomTool.Hotkey=z
Tools.ZoomTool=z
All these do NOT work. I had to reset Algodoo several times lately, and have lost all my bound keys that i had set to different functions.
Every time i try to set the Z key to the Zoom toolbar item, and press Z, it gives me an error message. I'd like to re-bind several keys instead of having to take the mouse cursor from what i'm doing at that moment to the actual button. 1 action, instead of several.
I've searched the forums for an answer to this issue, and have found none.
Keys.bind("z",{Scene.my.Zoom})
Tools.ZoomTool.z
Tools.ZoomTool.Hotkey.z
Tools.ZoomTool.Hotkey z
Tools.ZoomTool.Hotkey ("z")
Tools.ZoomTool.Hotkey,("z")
Tools.ZoomTool.Hotkey=z
Tools.ZoomTool=z
All these do NOT work. I had to reset Algodoo several times lately, and have lost all my bound keys that i had set to different functions.
Every time i try to set the Z key to the Zoom toolbar item, and press Z, it gives me an error message. I'd like to re-bind several keys instead of having to take the mouse cursor from what i'm doing at that moment to the actual button. 1 action, instead of several.
I've searched the forums for an answer to this issue, and have found none.
I am still learning, not an expert yet. I'm just here to have some phun.
- InfinityPlayer
- Posts: 40
- Joined: Thu Dec 09, 2010 7:57 pm
Re: Binding keys
Tools.ZoomTool.Hotkey = "z"
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: Binding keys
Tatt1880, you're a genius!!! That sems to be the oly one I hadn't tried to do, and it worked! Thanks a lot
I am still learning, not an expert yet. I'm just here to have some phun.
- InfinityPlayer
- Posts: 40
- Joined: Thu Dec 09, 2010 7:57 pm
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests