← Back to team overview

sikuli-driver team mailing list archive

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

 

** Changed in: sikuli
    Milestone: 2.0.0 => 2.0.1

-- 
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


References