Binding keys

For topics that don't fit under the other topics or forums.

Binding keys

Postby InfinityPlayer » Sat Sep 15, 2012 6:42 am

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.
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

Postby tatt61880 » Sat Sep 15, 2012 7:48 am

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).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: Binding keys

Postby InfinityPlayer » Sat Sep 15, 2012 2:38 pm

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


Return to Algodoo in general

Who is online

Users browsing this forum: No registered users and 4 guests

cron