← Back to team overview

sikuli-driver team mailing list archive

[Bug 1757365] Re: [1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work

 

** Changed in: sikuli
    Milestone: 1.1.3 => 1.1.4

** Changed in: sikuli
       Status: In Progress => Fix Committed

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

** Summary changed:

- [1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work
+ [1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work - fixed in 1.1.4 2018-08-16

** Description changed:

- ---- problem
- if Env.isLockOn(Key.NUM_LOCK):
-   nlZap=True
- else:
-   nlZap=False
- if nlZap:
-   type(Key.NUM_LOCK)
+ ---- problem solved:
+ 
+ Env.isLockOn(Key.NUM_LOCK) did not work on Windows 7
+ 
+ ---- solution for successfully use HOME-SHIFT + direction keys for
+ selection
+ 
+ add before trying to select something:
+ 
+ if Env.isLockOn(Key.NUM_LOCK): type(Key.NUM_LOCK)
  
  ------------------------------------
  
  I want to select one line text in script by combined keys of HOME and SHIFT, but it dosen't work.
  My script is :
  type(Key.END)
  wait(1)
  type(Key.HOME, Key.SHIFT)
  wait(1)
  type('C', Key.CTRL)
  wait(1)
  print Env.getClipboard()
  
  But from UI, the line text can't be selected. Is there any problem in my
  script? Thanks

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

Title:
  [1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work - fixed in
  1.1.4 2018-08-16

Status in Sikuli:
  Fix Committed

Bug description:
  ---- problem solved:

  Env.isLockOn(Key.NUM_LOCK) did not work on Windows 7

  ---- solution for successfully use HOME-SHIFT + direction keys for
  selection

  add before trying to select something:

  if Env.isLockOn(Key.NUM_LOCK): type(Key.NUM_LOCK)

  ------------------------------------

  I want to select one line text in script by combined keys of HOME and SHIFT, but it dosen't work.
  My script is :
  type(Key.END)
  wait(1)
  type(Key.HOME, Key.SHIFT)
  wait(1)
  type('C', Key.CTRL)
  wait(1)
  print Env.getClipboard()

  But from UI, the line text can't be selected. Is there any problem in
  my script? Thanks

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


References