← Back to team overview

sikuli-driver team mailing list archive

[Question #680452]: Sikuli 1.1.4 - java server remote console keyboard passthrough not working

 

New question #680452 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680452

Hello,

I am trying to automate some manual tasks of our server setup process which needs BIOS changes through the server java remote console. For me it looks like the keyboard passthrough is not recognized within the remote console. 

I have booted into a Linux system to see if I can "type" in there but only mouse clicks are working.

To test this, I use a simple sikuli script from within the IDE:
Debug.setDebugLevel(3)
if (Env.isLockOn(Key.NUM_LOCK)):
    type(Key.NUM_LOCK)

wait("1556205005576.png")
click("1556205005576.png")

wait(3)
type("ls -la")
type(Key.ENTER)

The window gets activated but no keyboard input appears. 
IDE debug log says:
[debug] Image: reused: 1556205005576.png (file:/C:/Share/SikuliX/Scripts/input.sikuli/1556205005576.png)
[debug] Region: wait: waiting 3,0 secs for 1556205005576.png to appear in R[0,0 1920x1080]@S(0)

[debug] Finder2: makeMat: INT_RGB (1920x1080)
[debug] Finder2: makeMat: 3BYTE_BGR (147x120)
[debug] Finder2: doFind: start (stdDev: 260,1383 mean: 137,650794)

[debug] Finder2: doFind: in original: %99,5589 (?70) 264 msec 
[debug] Finder2: doFind: end 264 msec
[debug] Region: wait: 1556205005576.png appeared (M[739,356 147x120]@S(0) S:1,00 C:812,416 [345 msec])
[debug] Image: reused: 1556205005576.png (file:/C:/Share/SikuliX/Scripts/input.sikuli/1556205005576.png)
[debug] Region: wait: waiting 3,0 secs for 1556205005576.png to appear in R[0,0 1920x1080]@S(0)
[debug] Finder2: makeMat: INT_RGB (1920x1080)
[debug] Finder2: makeMat: 3BYTE_BGR (147x120)
[debug] Finder2: doFind: start (stdDev: 260,1383 mean: 137,650794)

[debug] Finder2: doFind: in original: %99,5589 (?70) 265 msec 
[debug] Finder2: doFind: end 265 msec
[debug] Region: wait: 1556205005576.png appeared (M[739,356 147x120]@S(0) S:1,00 C:812,416 [328 msec])

[debug] CLICK on L[812,416]@S(0) (521 msec)

[debug] TYPE "ls -la"
[debug] Region: TYPE "ls -la"

[debug] TYPE "#ENTER."
[debug] Region: TYPE "#ENTER."

However, in the Java console, I see:
mouse click
NativeKeyboard.focusGained()
04/25/2019 05:57:01:472:  Sending input focus message with focus set to: true

sending key press 0
sending key release 0
sending key press 0
sending key release 0
sending key press 0
sending key release 0
sending key press 0
sending key release 0
sending key press 0
sending key release 0
sending key press 0
sending key release 0
sending key press 0
sending key release 0
NativeKeyboard.focusLost()
04/25/2019 05:57:04:788:  Sending input focus message with focus set to: false focus lost, clear the pending keys

When I manually type ls -la, then I get values != 0 in each of these lines. What's missing?

Thanks in advance for your help.
Best regards,
 Stephan

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.