Imitating 2 keyboard buttons at the same time like ALT+F4
hello,
was just wonderin how to Imitatate 2 keyboard buttons at the same time like ALT+F4. i am using the Robot class to make the key board pressing and they are working fo one button. i tried two buttons like this
robot.keyPress(KeyEvent.ALT_MASK+KeyEvent.VK_F4);but no luck. anyone know how to do this
thanks
martin
martinnaughton wrote:
sorry was just trying to do CTRL button but it does not like this bit of code.
robot.keyPress(KeyEvent.CTRL_DOWN_MASK);
robot.keyPress(KeyEvent.VK_UP);gives me an exception of invalid code.It does not seem to like DOWN_MASK attributes in java.
any way else around it
thanks
martinDon't confuse the modifier bitmask codes with the key codes:
robot.keyPress(KeyEvent.VK_CONTROL);
Similar Messages
-
The display on my iPod Touch is HUGE and I have no idea why. I tried the HOME button and power button at the same time.....no help. I cannot enter my unlock code because I can't scroll without entering a wrong number! HELP!!
Using three fingers, double-tap the screen.
http://support.apple.com/kb/TS3129 -
TS3280 How can i enable both paired bluetooth and ios keyboard input at the same time?
How can i enable both paired bluetooth and ios keyboard input at the same time?
This is needed for the app im working on. Need some user input via keypad as well as scanner input via a paired bluetooth scanner.You probably should not be using a keyboard bluetooth profile for a scanner, I am not a developer for apple so do not know the location for you to find out the correct profile you should be using for an input device that is not a keyboard. Sorry,
I am sure if you navigate the apple developer site you will probaly finmd what you're looking for.
https://developer.apple.com -
I have a brand new Ipod touch with front facing camera. Not sure which generation it is. My wife connected the iPod Touch and chose the restore option when connecting to iTunes. It was a mistake and by the time I got there, I saw the screen with USB cable with an arrow facing towards iTunes logo. I cannot get the iPod out of this state.
Try here:
iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
Also reset the iPod.
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears. -
When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds. While in auto-lock it is using battery power and will do so until the battery is drained. Whats wrong?
- Try a reset. Nothing is lost:
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears
- Connect the iPod to your computer and try to restore via iTunes. Try placing in Recovery mode if necessary to restore.
- If you can't turn the iPod completely off, let the batter fully drain. After charging for at lerast anhour try again
- If still not successful time for an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. -
is there another way i could turn my phone on? it wont turn on or show me the battery screen to show its charging. i already tried to hold the on and home button at the same time but it does not want to turn on. please help?
Device Not Recognised
For PC
http://support.apple.com/kb/TS1538
For Mac
http://support.apple.com/kb/ts1591 -
hello i hav an ipad mini and i was in the middle of the ios 8 update and i held the sleep and home button at the same time to cancel the update and now it wants me to connect to itunes i dont no how to do that can someone pleaze help me?
RECOVERY MODE
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary. -
I have Apple TV version 7.4.2. We read in a blog that in order to reset our Apple TV we should press the menu button and the select big button at the same time which we did. Now when we attempt to turn on the apple tv box it with the remote we get a white light and sometimes we can get the menu screen but the remote will not let us move now will it allow us to turn the apple tv on or off. If we just leave it alone, the white light eventually goes away. I did unplug the apple tv and we removed the batteries and reinstalled them from the remote and that did not make any difference. Please advise.
If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
Connect the micro USB cable to the Apple TV and to your computer.
Reconnect the power cable (only for Apple TV 3)
Open iTunes.
Select your Apple TV in the Devices list, and then click Restore. -
One day I was going to download music from my laptop to my ipod, I was able to download all the songs I wanted but later when I try to charger my ipod it wouldn't let me. The next day I bought a new charger but it still didn't charger. I try pressing the power And home button at the same time but it still wouldn't turn on or charger.
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
I recently reset my iPod touch 4th gen. (holding power and home buttons at the same time.) now it won't let me change my wallpaper, in the photo section or the settings. Any ideas, please? Thanks.
What happens when you try to change them?
Try:
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device. -
My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?
Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
kevinpowell1 wrote:
how can i get it out of recovery mode?
Make sure you have the Current Version of iTunes Installed on your computer
iTunes free download from www.itunes.com/download
Then See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once... Be sure to Follow ALL the Steps...
Take your time... Pay particular attention to Steps 3 and 4.
Some users have reported as many as 8 or 9 attempts were necessary before success.
After you have Recovered your Device...
Re-Sync your Content or Restore from the most recent Backup...
Restore from Backup > http://support.apple.com/kb/ht1766
If the issue persists...
Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
Be sure to make an appointment first... -
I am having trouble with my iPad, i can start it, but the iPad does not work. i tried to use the power and home button at the same time, the apple logo appears, but the iPad does not work. What am I suppose to do?
After the Apple logo appears, what happens then? Can you hear any sounds or if you tap on the screen, does it seem like apps can open or are you just seeing a black screen? You might have a hardware problem, but you can try restoring the software and see what happens.
Read this in its entirety before you do anything. Make sure you read the sections at the end about using recovery mode.
iTunes: Restoring iOS software - Support - Apple -
My sons iPod touch stopped working, it won't charge in a docking station and the computer/itunes won't recognize it when connected. We have tried holding the power and home button at the same time for several seconds, and the screen still stays black. Thanks!
Hello skdog I possibly think your ipod touch is black because it has not charged. If your dock is broken it might just mean the dock will be broken and so might be the USB port. You should see an Apple shop nearby and hand it over and see what they can do. I hope this information works!
-
i-phone shuts off, I have to hold the home and power button at the same time to get the icon to show up. Then have to hold the home button. I'm restoring my phone multiple times a day just to get it to work. help!
Are you restoring as new?
-
my ipad will not let me slide to log in, or power off. I have tried to hold down the sleep and home button at the same time, but that did not work. D o you have any tips for me? Thanks.
recovery mode
open itunes on computer
plug cable into computer not iOS device
turn phone off
hold home button and plug cable into phone. do not release home button until an itunes graphic appears on device.
look to computer should have message about recovery mode click ok and restore
Peace, Clyde
if u need an article see
http://support.apple.com/kb/HT1808
Maybe you are looking for
-
E72 - How to toggle between portrait and landscape...
Some games refuse to run by displaying "This game is not supported in landscape mode. Please turn your handset to portrait mode". How can I toggle between landscape and portrait modes in Nokia E72?
-
Can I transfer my hand made album sequence (sort order) defined in elemenst when I turn a local album into a mobile album used with IPAD. Or do I have to change the dates artificially?
-
Can we create different reservation no for each auto PR created through PS.
Hi Gurus With reference to above captioned subject, can we create different reservation no for each auto PR created through PS Thanks in advance Regards Abhijit Sen
-
ERP 6.0 upgrade: login locked
Hi,all The following things occurred when the upgrade was done from ERP4.6B to 6.0. When it knows the cause etc. , could you teach? [4.6] User log in O.K . (It is not locked. ) [6.0] User log in N.G . (It is locked. ) My best regards above.
-
Transfering data from sand box to development server
Hi, we created some production orders using co01 t-code in sand box. we would like to copy / move those orders in development server. is it possible? if yes pls guide me. thanking you in advance.