← Back to team overview

sikuli-driver team mailing list archive

[Bug 876428] Re: Java API: Wrong keyboardlayout by using #

 

*** This bug is a duplicate of bug 511740 ***
    https://bugs.launchpad.net/bugs/511740

known problem: see faq 933

BTW: since rc3 you can use the classes Key and KeyModifier on the Java
level too (see docs).

** Description changed:

  Sikuli X-1.0rc3 (r905) Bug using Windows 7 32-bit
  I have a german keyboard. If i use the method "type" it's impossible to get the hash-key! The hash-key seems to be wrong.
- 
- Code example with output
- :
- Screen screen = new Screen();
- App.open("C:\\Windows\\System32\\notepad.exe");
- screen.wait(2.0)
- 
- screen.paste("2-key:\n");
- screen.type(null,"2");
- screen.type(Key.ENTER);
- screen.type(null,"2",java.awt.event.InputEvent.SHIFT_MASK);
- screen.type(Key.ENTER);
- 
- screen.paste("#-key:\n");
- screen.type(null,"#");
- screen.type(Key.ENTER);
- screen.type(null,"#",java.awt.event.InputEvent.SHIFT_MASK);
- screen.type(Key.ENTER);
- 
- screen.paste("6-key:\n");
- screen.type(null,"6");
- screen.type(Key.ENTER);
- screen.type(null,"6",java.awt.event.InputEvent.SHIFT_MASK);
- screen.type(Key.ENTER);
- 		
- screen.paste(",-key:\n");
- screen.type(null,",");
- screen.type(Key.ENTER);
- screen.type(null,",",java.awt.event.InputEvent.SHIFT_MASK);
- 
- /*Output on notepad using german Keyboard layout:
- 2-key:
- 2
- "
- #-key:
- §
- §
- 6-key:
- 6
- &
- ,-key:
- ,
- ;
- 
- */
- 
- /*Output on notepad using english keyboard layout:
- 2-key:
- 2
- @
- #-key:
- #
- #
- 6-key:
- 6
- ^
- ,-key:
- ,
- <
- 
- */

** This bug has been marked a duplicate of bug 511740
   [request] type() should work with different keymap (e.g. dvorak)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/876428

Title:
  Java API: Wrong keyboardlayout by using #

Status in Sikuli:
  New

Bug description:
  Sikuli X-1.0rc3 (r905) Bug using Windows 7 32-bit
  I have a german keyboard. If i use the method "type" it's impossible to get the hash-key! The hash-key seems to be wrong.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/876428/+subscriptions


References