Hi !
I'm writing an app (which i will post here for free ofc) and i'm trying to read the volume up/down keys. I also need to stop them from displaying the volume slider and changing volume while my app is running, i.e. inhibit default behaviour. And since my app will run in the background i want the rest of the keys to function as normal.
If you can help, please post here.
I would really like concise answers, not something like : "try to hook the keyboard driver and see what you get".
Don't ask what my app will do, i won't tell until it's ready (a beta will be available as soon as i can read the keys, i got the rest of it ready).
Thanks,
RPG
Sorry I will give you a "try to hook the keyboard driver and see what you get" like answer ;-) but did you get that keys were hardware specific ?
Sometimes those keys are mapped to Up and Down.
I have no problem in asking the user: press volume up key, press volume down key, so that it works on any machine (or maybe he wants to use different keys). The problem is that GetASyncKeyState for example has no idea those keys are pressed. And even when it works for some other keys (GetAsyncKeyState reads them), those keys still go to the system and stuff happens (like i said, i want to inhibit default behaviour).
Don't post if you don't know what GetASyncKeyState does
RPG0 said:
I have no problem in asking the user: press volume up key, press volume down key, so that it works on any machine (or maybe he wants to use different keys). The problem is that GetASyncKeyState for example has no idea those keys are pressed. And even when it works for some other keys (GetAsyncKeyState reads them), those keys still go to the system and stuff happens (like i said, i want to inhibit default behaviour).
Don't post if you don't know what GetASyncKeyState does
Click to expand...
Click to collapse
I'm guessing C++, which I have no knowledge in, however, briefly looking at the MSDN article on GetASyncKeyState, I'd guess the list on vijay555s site for VJKeyPress uses the same key codes...
So,
Code:
VK_VOLUME_DOWN 174
VK_VOLUME_UP 173
from here
l3v5y said:
I'm guessing C++, which I have no knowledge in, however, briefly looking at the MSDN article on GetASyncKeyState, I'd guess the list on vijay555s site for VJKeyPress uses the same key codes...
So,
Code:
VK_VOLUME_DOWN 174
VK_VOLUME_UP 173
from here
Click to expand...
Click to collapse
Like i said, i already tried that. Doesn't work.
RPG0 said:
Like i said, i already tried that. Doesn't work.
Click to expand...
Click to collapse
Then, I'm sorry, but I'm clueless
bump !
I'm really close, i just need the way to read the keys
RPG0 said:
bump !
I'm really close, i just need the way to read the keys
Click to expand...
Click to collapse
Do you need them within your program, or to be redirected to your program (as in, the volume keys open your program)? In the Diamond volume control app, there are some reg keys for opening that program rather than the WM volume control applet...
I need them in my program.
Right now i do have them redirected to run my prog, for tests, but it's not the way i want it.
What i do need is a way to know in my prog when that key is pressed and when it is released. Again, my app will run in the background, so i need the rest of the keys untouched.
http://www.sendspace.com/file/6p9eqe
AE Button Plus
http://ae.inc.ru/aebplus.php
p18trg said:
http://www.sendspace.com/file/6p9eqe
AE Button Plus
http://ae.inc.ru/aebplus.php
Click to expand...
Click to collapse
what is????????
you need to tell people what they are clicking on
here is a whole explanation bout the app and this has been talked about in the athena section
This utility extends functionality of hardware keys on Windows Mobile devices. It allows you to:
intercept almost any standard button: application buttons, WM5 SoftKeys, Volume slider, Action and even Red/Green phone buttons
distinguish up to 4 different keypress events on each button grabbed (single, double, triple and "long" keypresses).
remap each of the keypress events to "virtual" application button or assign them directly to one of the wide set of built-in actions
http://ae.inc.ru/aebplus.php
Has anyone actually tried this on Diamond/Raphael?
I can't seem to get this to work :/
KozzioU said:
Has anyone actually tried this on Diamond/Raphael?
I can't seem to get this to work :/
Click to expand...
Click to collapse
phone buttons work - but other have problems due to TF3D
There is already a thread regarding button issues - so try a search
i search forthis long time so let me know if there are some application that allows what i want. I know it can be only for root users.
I have an idea to application that allow user change function hardware keys.My idea is change search button to bring up app switcher.Be couse i really never used that button. I know many situation when we hold "HOME" to bring it up but it take me back to home+show preview screens +bring up app switcher (i know previews can be turned off by launcher but i want previews, they are cool).You dont need hold anything.It will be much faster switching betwean applications.
So you push menu to back to menu or bring up previews
and push search button to bring application switcher.
it is good idea?
sorry for bad english.
I was ready to start a thread with a similar recquest, so I do it here.
I've using a lot an application on my previous wm devices, called AE Button plus (http://ae.inc.ru/aebplus.php).
With this you could map any of hardware buttons of the device. And you could assign 4 actions to any button(click, doulbe click, triple click and click&hold) and it had many of system functions(reboot, bluetooth, wifi, gps on/off....).
On android I haven't seen any similar app(except button shortcut, which is very limited)
Is possible to have such an app on android? I hope that a developer start a project for a similar program. I found this app very useful.
The, Does anyone know how to [insert subject here ] Thread.
Hi folks, since Win 8 is starting to get a bit more popular with the locals and there are already dozens of posts on similar things I figured id start a new one that we can use for general help related questions so we don't bog down the board too much, perhaps it wont work or is a waste of time, Ill try keep on top of all the questions and answers and will stick a link to the person who answers the question first so they can get the credit
This isn't a place to get in to the right or wrongs of Windows 8, there are already a couple of other threads for that.
Nope, this is a place to ask; How do to do something, Where to find something, can we do this that or the other, that kind of thing
Remember if someone helps you out don't forget the thanks button! It costs you nothing an gives them a wee pat on the back for their trouble, To find the original author please visit the links if they are available , they may have more detailed info and screen shots to help you.
If this gets bigger ill try and divide it in to sections or group similar questions together.
Q1, How to change the volume on the music app?
A, You cant currently change the volume independent from the system volume
Here and Here
Q2, Where can I find my start Menu? and Do I need to pin shortcuts everywhere?
A, All your legacy start menu entries can be found by right clicking in a non-tiled area and pressing All Apps, you don't need to pin any of the internally used Start Menu folders to your taskbar or such.
Here
Q3, How do I shut down my Computer?
A, Shutdown is found by pressing either WIN+I or by holding your mouse in the upper or lower right hand corner of the screen, then pressing settings on the Charm Bar. Click power and choose what you want.
Here
Q4, Where can I find the old run / search command box?
A,You can open the run window by pressing WIN+R or by holding your mouse in the lower-left corner of the screen and right clicking, then click Run. Search can be found on the Charm bar on the right side, by simply typing in the relevant screen or by pressing WIN+F for files or WIN+Q for apps, WIN+W for settings
Here
Q5, Where can I find the control panel settings and other power user commands?
5.You can also open Control Panel by right clicking the Start Hot-Corner overlay and clicking Control Panel. (This is the Desktop version of Control Panel, not the PC Settings app accessible in the Settings Menu on the Charms bar.)
Here
Q6, Were are all the settings for my apps, I cant find any way of changing things in my apps?
A, Many of the settings within metro and for metro apps can be found by opening the Charm Bar on the right hand side by moving your mouse to the top or bottom right corner of the screen. Some settings and options can also be found in the options bar at the bottom by right clicking on any blank space within Metro or a Metro app.
Here
So in the interest of kick starting this off heres my Question
Does anyone know if theres a way to change the volume within the music app?, I cant see it in audio mixer either so have I missed something?
Scroll to the right of your screen and open the settings wheel, from there is a system volume slider.
The following isn't a question but a possible answer for a future question:
To run a program as administrator you must search for the program via metro and then right click it and the option will be there.
NastyNasdaq said:
Scroll to the right of your screen and open the settings wheel, from there is a system volume slider.
The following isn't a question but a possible answer for a future question:
To run a program as administrator you must search for the program via metro and then right click it and the option will be there.
Click to expand...
Click to collapse
ah but that changes the overall system volume, so yes it does work, but it effects everything, its also a backwards way of doing it, (action>click>click>adjust) Seems a tad long winded for a simple up down volume command,
thanks for your reply and tip
dazza9075 said:
So in the interest of kick starting this off heres my Question
Does anyone know if theres a way to change the volume within the music app?, I cant see it in audio mixer either so have I missed something?
Click to expand...
Click to collapse
NastyNasdaq said:
Scroll to the right of your screen and open the settings wheel, from there is a system volume slider.
Click to expand...
Click to collapse
I think what dazza wants to have is a volume seperatly for the music app and at the moment this is not built in. You have to use the system volume (like Nasdaq said or just in case you have volume +/- on your keyboard with these).
I'm not quiet sure if in any metro app out there today you can change the volume (except some that are playing i.e. youtube videos, cause the youtube player can do that).
dazza9075 said:
ah but that changes the overall system volume, so yes it does work, but it effects everything, its also a backwards way of doing it, (action>click>click>adjust) Seems a tad long winded for a simple up down volume command,
thanks for your reply and tip
Click to expand...
Click to collapse
No problem. Its the only way I know about adjusting the volume at the moment.
NastyNasdaq said:
To run a program as administrator you must search for the program via metro and then right click it and the option will be there.
Click to expand...
Click to collapse
If it's on your desktop or if your feeling complicated, you can always right click the program's executable and press Run As Administrator. Or if your scrolling through the Start Menu entries using the tip below, you can right click and the option will be there too
For future references: (I'll be updating this post with more.)
All your legacy start menu entries can be found by right clicking in a non-tiled area and pressing All Apps.
As per previous versions of Windows, all your start menu groups and shortcuts can be found on the previously mentioned All Apps page. (Your start menu is still there, you don't need to pin any of the internally used Start Menu folders to your taskbar or such.)
Shutdown is found by pressing either WIN+I or by holding your mouse in the upper-right hand corner of the screen, then pressing settings on the Charm Bar. Click power and choose what you want.
You can open the run window by pressing WIN+R or by holding your mouse in the lower-left corner of the screen and right clicking, then click Run.
You can also open Control Panel by right clicking the Start Hot-Corner overlay and clicking Control Panel. (This is the Desktop version of Control Panel, not the PC Settings app accessible in the Settings Menu on the Charms bar.)
EDIT: If you want, I can make a screenshot that shows what I mean for others.
BTW, This thread should be stickied once we get enough information. I think it's a good idea. Also I think Metro Apps are exempt from the mixer. So I'm not sure that there is a way to change the volume in any of them unless the App gives it's own soft-volume control.
ShadowEO said:
If it's on your desktop or if your feeling complicated, you can always right click the program's executable and press Run As Administrator. Or if your scrolling through the Start Menu entries using the tip below, you can right click and the option will be there too
For future references: (I'll be updating this post with more.)
All your legacy start menu entries can be found by right clicking in a non-tiled area and pressing All Apps.
As per previous versions of Windows, all your start menu groups and shortcuts can be found on the previously mentioned All Apps page. (Your start menu is still there, you don't need to pin any of the internally used Start Menu folders to your taskbar or such.)
Shutdown is found by pressing either WIN+I or by holding your mouse in the upper-right hand corner of the screen, then pressing settings on the Charm Bar. Click power and choose what you want.
You can open the run window by pressing WIN+R or by holding your mouse in the lower-left corner of the screen and right clicking, then click Run.
You can also open Control Panel by right clicking the Start Hot-Corner overlay and clicking Control Panel. (This is the Desktop version of Control Panel, not the PC Settings app accessible in the Settings Menu on the Charms bar.)
EDIT: If you want, I can make a screenshot that shows what I mean for others.
BTW, This thread should be stickied once we get enough information. I think it's a good idea. Also I think Metro Apps are exempt from the mixer. So I'm not sure that there is a way to change the volume in any of them unless the App gives it's own soft-volume control.
Click to expand...
Click to collapse
Also in all Metro apps:
Right click in dead space (empty) and a menu will post at the bottom of the app with options/buttons. Right click again to dismiss if not needed.
Moving mouse to upper right in all metro apps just as on START will bring up the settings and preferences for each. This will contain some common preference options too.
Moving the mouse to the left side will bring up the task bar to close apps and for switching.
All WIN-(key) shortcuts still work as before, as some listed above.
Same with command line as well. (admins and power users =])
ShadowEO said:
If it's on your desktop or if your feeling complicated, you can always right click the program's executable and press Run As Administrator. Or if your scrolling through the Start Menu entries using the tip below, you can right click and the option will be there too
For future references: (I'll be updating this post with more.)
All your legacy start menu entries can be found by right clicking in a non-tiled area and pressing All Apps.
As per previous versions of Windows, all your start menu groups and shortcuts can be found on the previously mentioned All Apps page. (Your start menu is still there, you don't need to pin any of the internally used Start Menu folders to your taskbar or such.)
Shutdown is found by pressing either WIN+I or by holding your mouse in the upper-right hand corner of the screen, then pressing settings on the Charm Bar. Click power and choose what you want.
You can open the run window by pressing WIN+R or by holding your mouse in the lower-left corner of the screen and right clicking, then click Run.
You can also open Control Panel by right clicking the Start Hot-Corner overlay and clicking Control Panel. (This is the Desktop version of Control Panel, not the PC Settings app accessible in the Settings Menu on the Charms bar.)
EDIT: If you want, I can make a screenshot that shows what I mean for others.
BTW, This thread should be stickied once we get enough information. I think it's a good idea. Also I think Metro Apps are exempt from the mixer. So I'm not sure that there is a way to change the volume in any of them unless the App gives it's own soft-volume control.
Click to expand...
Click to collapse
feel free to put screen shots up, ive linked in to your posts so if you want to provide supporting information then all the better ill not put them in the first post tho to keep it simple.
How do you pin apps to desktop taskbar?
OptimusLove said:
How do you pin apps to desktop taskbar?
Click to expand...
Click to collapse
right click app >pin to taskbar.
Does anyone know how to show up the Media Apps controls in desktop mode without pressing the media keys? When the media app plays music (and consumes around of 300MB RAM btw.) and you are in the desktop view you can press the volume keys on your keyboard to bring up a mini player that shows the current track and allows to play/skip/rewind/etc.. Is there a mouse way (or keyboard shortcut) to bring this up without the media keys?
mcosmin222 said:
right click app >pin to taskbar.
Click to expand...
Click to collapse
but that doesn't allow you to pin "apps" specifically metro apps, it just lets you pin desktop programs.
dazza9075 said:
but that doesn't allow you to pin "apps" specifically metro apps, it just lets you pin desktop programs.
Click to expand...
Click to collapse
So far I know it's not possible to pin metro apps to the desktop taskbar.
ChrisKringel said:
Does anyone know how to show up the Media Apps controls in desktop mode without pressing the media keys? When the media app plays music (and consumes around of 300MB RAM btw.) and you are in the desktop view you can press the volume keys on your keyboard to bring up a mini player that shows the current track and allows to play/skip/rewind/etc.. Is there a mouse way (or keyboard shortcut) to bring this up without the media keys?
Click to expand...
Click to collapse
Would be interesting to know if there's a way, but I haven't found one (and doubt there's one ^^ )
dazza9075 said:
but that doesn't allow you to pin "apps" specifically metro apps, it just lets you pin desktop programs.
Click to expand...
Click to collapse
Sorry, didn't know you were asking about "specific" metro apps.
So far, this isn't supported. YET. Remember this is still beta. The problem will probably be fixed in the future.
Anyone know if pressing the Metro App Bar "Uninstall" button uninstalls non-metro programs if you press it on one?
Also if your in a metro app while Music is doing it's thing and you open the app bar, there's music controls there too.
Sent from my LG-LS670 using XDA
ShadowEO said:
Anyone know if pressing the Metro App Bar "Uninstall" button uninstalls non-metro programs if you press it on one?
Also if your in a metro app while Music is doing it's thing and you open the app bar, there's music controls there too.
Sent from my LG-LS670 using XDA
Click to expand...
Click to collapse
Uninstall button on a non-metro program seems to bring up add remove programs
I have a Samsung TV and I want to use my TV remote to control Shield TV (over HDMI-CEC). This mostly works with one inconvenient problem. Android Back button is mapped to Samsung Exit button. Regular Samsung remotes have Return and Exit buttons and if you are using this remote then it's ok. But higher end Samsung TVs have Samsung smart remote and it only has Return button. The Return button also works as a Exit button if you hold it down for 2 seconds, but that's really inconvenient.
For me it would make a lot more sense if the Android Back button would be mapped to Samsung Return button and if possible then Android Home to Samsung Exit.
I have no idea why or who (Google, Nvidia or Samsung?) mapped the buttons as they are, but it is not usable for me. So is there any chance we can remap HDMI-CEC buttons?
I'm also looking at this thread. Interested to know if its possible.
if u can block the IR sensor, and just get a FLIRC, u can remap any or all functionality
I did some research and it seems it's Samsung's fault. Samsung has mapped it's Exit button to HDMI-CEC KEY_BACK. And the Return buttun is mapped to HDMI-CEC KEY_EXIT (it appears only Samsung is using it). Some manufacturers have added this Samsung specific button to their devices (PS3 for example) and considering that Samsung has the biggest TV market share, I think Nvidia should have added it too.
It seems it is possible to remap HDMI-CEC buttons by editing .kl files in /system/usr/keylayout/. It appears to be using Generic.kl file if there is no hdmi_cec_keys.kl file in that folder. I don't have root, so i cant test this at the moment.
Unfortunately it seems that we can't map Samsung Return button to anything, because Samsung specific KEY_EXIT is missing in kernel. So we would need to find someone who knows how to modify kernel and compile it for us Samsung TV users. Someone has done this for some other Android box there > https://github.com/hardkernel/linux/pull/178/commits/96e8846f78b077add5fdc8a93235deefd262f71b
Any devs here who could make this fix?