sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06160
[Bug 876428] [NEW] Java API: Wrong keyboardlayout by using #
Public bug reported:
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:
,
<
*/
** Affects: sikuli
Importance: Undecided
Status: New
--
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.
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:
,
<
*/
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/876428/+subscriptions
Follow ups
References