Jump to content
Sign in to follow this  
rickd

Responding to key presses?

Recommended Posts

rickd

Hi,

I have a script that I would like to be able to be able to control with key presses, eg. so if the key "a" is pressed while my script is running then the script would do something. How do I do this?

And also one other quick question, is it possible to start a gui with one of the buttons already selected (highlighted, or in focus, not sure what the proper term is)?

Thanks.

Share this post


Link to post
Share on other sites
BrettF
rickd

I have another related question I thought would be ok to ask here as well; I am using labels with background colours as buttons (eg label with blue background with while text as my button), they work well but it is not possible to tell when one of them is in focus.

Is there a way for the label to respond to being infoucs? Could I make it change text or background colour? (possible using a udf if functionality not built in?)

A mouse is not used with my UI, so I'm not meaning on mouseover events, just when the button is tabbed to etc it could do something...

Share this post


Link to post
Share on other sites
Generator

I have another related question I thought would be ok to ask here as well; I am using labels with background colours as buttons (eg label with blue background with while text as my button), they work well but it is not possible to tell when one of them is in focus.

Is there a way for the label to respond to being infoucs? Could I make it change text or background colour? (possible using a udf if functionality not built in?)

A mouse is not used with my UI, so I'm not meaning on mouseover events, just when the button is tabbed to etc it could do something...

Why not use button? Any adventage of using a label button?

Share this post


Link to post
Share on other sites
rickd

Why not use button? Any adventage of using a label button?

The UI I have made is for my HTPC, it's just runs on startup and lets my launch applications, standard windows buttons don't look as good as the labels and not as clear to see on the TV. Only problem I have is I don't know which label (button) is currently selected at the moment.

Share this post


Link to post
Share on other sites
Generator

The UI I have made is for my HTPC, it's just runs on startup and lets my launch applications, standard windows buttons don't look as good as the labels and not as clear to see on the TV. Only problem I have is I don't know which label (button) is currently selected at the moment.

I remember there is an option that you can set the label/button have a boarder(thin or thick your choice).

Just look through help file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×