← Back to team overview

sikuli-driver team mailing list archive

[Bug 1388993] [NEW] [request] problem with held-down shift key on Windows should have a workaround

 

Public bug reported:

This question I post here to save the time to many others since I spent
a lot of time to figure out the only combination that works. I have
found solution.

Task:  To Hold SHIFT while pressing PgDown twice to select some bulk
text in application

Answer:

   if Env.isLockOn(Key.NUM_LOCK): 
        nlZap=True 
    else: 
        nlZap=False
    if nlZap: type(Key.NUM_LOCK)
    keyDown(Key.SHIFT)
    type(Key.PAGE_DOWN, Key.SHIFT)
    type(Key.PAGE_DOWN, Key.SHIFT)
    keyUp(Key.SHIFT)
    if nlZap: type(Key.NUM_LOCK)

It has something to do with Numlock state and also at the same time the
above combination must be used of KeyDown and key modifier. Many
millions of other combinations, constants, etc.... did not work at all.

Best Regards,

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.2.0

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

Title:
  [request] problem with held-down shift key on Windows should have a
  workaround

Status in Sikuli:
  In Progress

Bug description:
  This question I post here to save the time to many others since I
  spent a lot of time to figure out the only combination that works. I
  have found solution.

  Task:  To Hold SHIFT while pressing PgDown twice to select some bulk
  text in application

  Answer:

     if Env.isLockOn(Key.NUM_LOCK): 
          nlZap=True 
      else: 
          nlZap=False
      if nlZap: type(Key.NUM_LOCK)
      keyDown(Key.SHIFT)
      type(Key.PAGE_DOWN, Key.SHIFT)
      type(Key.PAGE_DOWN, Key.SHIFT)
      keyUp(Key.SHIFT)
      if nlZap: type(Key.NUM_LOCK)

  It has something to do with Numlock state and also at the same time
  the above combination must be used of KeyDown and key modifier. Many
  millions of other combinations, constants, etc.... did not work at
  all.

  Best Regards,

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


Follow ups

References