Help in game action keys
Hi i am modifying my main menu so that the user can just press a number between 1-5 and it will auto launch the corresponding menu ie 1. play 2. options and if the user presses the number 2 key, the options screen appears.
My problem is that i have mapped the key number 5 to one of the options but when pressed, it has the same behavior has a gameaction FIRE key.
I have the FIRE key doing somthing else and so when the user presses 5, it does somthing that corresponds to my earlier code implementaion for the FIRE key instead of loading the screen i want it to.
here is my key listener code
if(keyCode == KEY_NUM1 && loggedIn)
//do something
else if(keyCode == KEY_NUM2 && loggedIn)
//do somthing
else if(keyCode == KEY_NUM3 && loggedIn)
///do somthing
else if(keyCode == KEY_NUM4 && loggedIn)
//do somthing
else if(keyCode == KEY_NUM5 && loggedIn)
//do somthing
else if(gameAction == FIRE)
//do something
}thanks guys
it is not possible...
keys cannot change their code !! 3 is KEY3 and 4 is KEY4 !!! (etc...)
the problem may come from keyCode var and loggedIn var !!!
Similar Messages
-
How to Disable a PARTICULAR action key?
Hi,
I know how to turn off action keys from BIOS. What i want to is just disable the help action of the F1key. I basically want it o have no fuction (so that it would perform the assigned function for the game) like the f5 key on my Envy 15t. I use the f1 key in games, since every time i press it it opens up the help, i want to disable it. However, i do not want to disable the rest and want to be able use them without having to press the FN key.
I am not sure if there is a solution to this problem but i would still love to hear some suggestions.
Thank You.Hi,
If just for Windows XP: you should be able to disable the help stuff by disabling the Help and Support service. (start->type services.msc->press enter).
And for Windows 7 (Vista could be the same):
http://www.sevenforums.com/customization/171360-there-way-totally-disabling-f1-hotkey.html
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
How to disable action keys and hotkeys??
Hi, ihave HP G56 Notebook PC
i have all these strange hotkeys on my laptop doing non-standard things.. it's pretty confusing.. Alt-F4 doesn't work anymore, for instance, since the F4 key is now a monitor key.. How can i make it also the F1-F12 keys by default.. like when i press F1 it's just F1.. because when i play a game on my laptop when i press F1 key it doesn't work..
Please Help me!!
Thanks..You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
Although I am an HP employee, I am speaking for myself and not for HP.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
How to disable hotkeys & action keys?
Hi, I have a Pavilion dv6 3006tx.
I have all these strange "hotkeys" on my laptop doing non-standard things. It's pretty confusing, Alt-F4 doesn't work anymore, for instance, since the F4 key is now a monitor key. How can i make it so all the F1-F12 keys just be F1-F12 keys by default, and I can use the other function by using the fn toggle?
I would also like to disable these so called "action keys". I keep pressing the calculator key when I intend to crouch in a game (ctrl key).
Help, thanks.Key Instructions
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
Please try the instructions from the link I put in and let me know if that helped you or not.
Thank you.
I am an HP employee
Knowledge is power...Power to the people -
I recently did a clean install of windows7 after returning from Europe and installed Mozilla firefox being fed up with microsoft and google .
Fire fox seemed to be working ok but 7 out of 10 downloads were failing, and it seemed that every ebsite entered in the address bar turned into a question.
There was no save shortcut, or paste buttons just a set of to me useless buttons first html, last html, then when I tried to contact help all of a sudden I got a "install fonts" notice and the enter key stopped working,
and any action key was also disabled without advising me.
It appears that either Mozilla or someone doesn't want me using firefox.
I also noticed that the clean disk and other utilities didn't work and that the temp and temp internet folders were empty when I tried to open them but they actually had some 25 megabytes in them when queried as administrator. I also noticed a quick flash reference to Jscript=void,
and my 32 bit computer suddenly started up as a 64 bit Turion.
scan and system clean said machine was clean.
Whats going on here?
I am not on my machine, I can't contact you on it because the enter button has been disabled by font change.
Maybe this robot needs some help too!Can you undo the system restore?
Note that using System Restore can cause your Firefox installation to get corrupted because not all files are restored (only files in a white-list), so be cautious with using System Restore.
*You may lose data in the Firefox profile folder like .js and .ini files pr profiles.ini can be affected.
*You may need to (re)install software that was affected.
In case you need to reinstall Firefox then you need to delete the Firefox program folder before reinstalling to make sure that all files get replaced.
A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls -
Action Keys Mode on ProBook 450?
Is the option to reverse the F1-F12 function keys (''Action Keys Mode'') available in ProBook 450's BIOS?
And if not, do you have to press for example Fn+F4 to use F4?
Thanks.I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at http://h30499.www3.hp.com/hpeb/ .
I hope this helps.
I worked on behalf of HP -
Regarding closure of Help Screens on Escape Key.
Hi
I am using javax.help API to build help screens for my application.
Everything is working fine now I have a requirement to dispose the help window on escape key.
As soon as the help icon is clicked I am delegating the ActionEvent to CSH.DisplayHelpFromSource.
Now I need the help window in my hand to add keylistener and dispose it on escape.
Can anyone pleae help me out.
Thanks In Advance
Sharmila Tankala// Handle escape key to close the dialog
KeyStroke escapeKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);
Action escapeAction = new AbstractAction()
public void actionPerformed(ActionEvent e)
setVisible( false );
getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escapeKeyStroke, "ESCAPE");
getRootPane().getActionMap().put("ESCAPE", escapeAction); -
How to get F4 help for Standard Text Key of a operation based on Order type
Hi Experts,
How to get F4 help for Standard Text Key (STK) of a operation based on Order type entered in selection screen. The F4 help should give the STK of related order type. At the same time the F4 help for Task Types based on Notification type. How to acheive the above two. Please provide the table names or any search help name if exists or Function modules...
Thanks in Advance.
Regads,
BujjiHi Guys,
Any help on this...
Regards,
Bujji
Edited by: Bujji on Dec 22, 2008 12:42 PM
Edited by: Bujji on Jan 5, 2009 2:00 PM -
Hi i need help one of my key on the keyboard dosen't work for some reason please help
hi i need help one of my key on the keyboard dosen't work for some reason please help
try smc reset
http://support.apple.com/kb/ht3964
and Pram reset
http://support.apple.com/kb/ht1379
(Try pram a few times to get correct sequence)
Check what you have selected in
system preferences/system/accessibility/keyboard
and system preferences/hardware/keyboard (keyboard and keyboard short cuts tabs) -
"Action Keys" mode turns itself back on after waking from sleep
Hi gang,
I've recently bought a Folio 13, and have disabled "Action Keys Mode" in the BIOS so that the function keys work as expected.
However, if the machine goes into sleep mode, the function keys revert to their default behaviour (that is, I have to hold down "Fn" if I want to hit F5).
Rebooting the notebook fixes the problem, as the BIOS setting has not changed.
How can I *permanently* disable "Action Keys Mode" so that it stays disabled even when the notebook goes into sleep mode?
Cheers,
MattI had this problem - you can update the BIOS and it will correct the issue. I received a BIOS update via HP Support.
-
I wanted the action keys to work with no need of pressing the fn key. Action keys were already enabled in BIOS. I switched them to disabled still did not work. I put it back to enabled. The same thing. Action Keys don't work at all. How can i fix this?
Install this update, see if it gets the function keys working https://support.microsoft.com/en-us/kb/2919355 "Function keys don't work if IME is enabled in Windows 8.1 or Windows Server 2012 R2" scroll down the page to find the direct download link (method 2), download it then double click the file to install.
-
How do I customize the Action Keys?
I'm working on a G62-320CA that has five actions keys on the left side (mail, media, web browser, print, and calculator). How do I customize these? They don't open the correct programs.
Thanks,
Shane.
HP Pavilion dv7-4180us
Windows 7 Home Premium SP1 64-bit
This question was solved.
View Solution.Here is the reg tweak...for the side one-touch keys (that is what they are called)
Internet Key: HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\7 "Association"="http" ; Change the string value "http"
Calculator Key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18 "ShellExecute"="calc.exe"; Change the string value "calc.exe"
Email Key: HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\15 "Association"="mailto" ; Change the string value "mailto"
Cyberlink PowerDVD/Mediasmart Key: HKLM\SYSTEM\ControlSet001\Control\MobilePc\HotStartButtons\2 "ApplicationPath" = "C:\Program File(x86)\Cyberlink\PowerDVD9\PowerDVD9.exe"; Change the string value "C:\Program File(x86)\Cyberlink\PowerDVD9\PowerDVD9.exe"
Although I am an HP employee, I am speaking for myself and not for HP.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
Hello,
I have puchased few days ago an mw1 as an upgrade of the mw600,but I expected to be able to associate the action key to launch a custom app like "Cyberon Voice Commander" as well as I did on the previous model. is it possible?
Best regards
StefanoAs far as I know, no, it's not possible. Might be some 3rd party app for it, but I haven't heard of any.
- Official Sony Xperia Support Staff
If you're new to our forums make sure that you have read our Discussion guidelines.
If you want to get in touch with the local support team for your country please visit our contact page. -
STOP SHOWING LOCAL COMMERCIALS WHEN LIVE GAME ACTION IS AIRING!!!!
Last night watching the game on NFL network Verizon inserted local commercials twice DURING LIVE GAME ACTION!! !This also happened during the summer watching baseball games on ESPN. I don't beleive this is an accident with such an advanced system. I am paying to watch these games in total. Not hacked up by these commercials.
No idea about your issue with the artifacts, but safe mode disables all drivers except ones needed for system operation. That does include graphics drivers.
-
(On desktop PC) When I open Firefox & follow the Help steps (click on History, Tools, etc.), these aren't active links. I'm clicking on a Help display; no actions are executed. Cookies & cache aren't cleared.
Make sure that you do not run Firefox in permanent Private Browsing mode.
*https://support.mozilla.org/kb/Private+Browsing
To see all History and Cookie settings, choose:
*Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
*Deselect: [ ] "Always use private browsing mode"
Maybe you are looking for
-
Hard drive failure on a G72-260US?
I hope someone has a few tips to help me out on this. I picked up an HP G72-260US about 10 months ago and suspect the hard drive has failed. I have had no prior problems with the unit. I was starting to back up about 3 months of photos to DVD and
-
Internet Explorer 8 Catch Mechanism
Dear All, I'm java developer and this is my first time post , I want to know the mechanism of "Browsing History" feature. I found 4 options "Every Time I visit the web page" "Every I start the internet" "Automatically" "Never" Which
-
I'm having the same buffering issues that other users are having when I try to stream a short video from my Iphone 4S to my Apple TV Has anyone heard back from Apple on this bug ?
-
How do you clear the current song info from the top display window?
When you first start iTunes and select Music, the display window at the top just has an Apple logo in it. Once you start playing a song, the song info shows up there. I can stop the song using Command-period (or the space bar), but the info stays the
-
Principal propagation question
Hi All, We currently have a synchronous scenario: SOAP -> PI 7.0 -> ABAP Proxy We now have a requirement that for the above scenario, the sender system (which does not know the password of its logged in user, only the userid), does its SOAP call to