← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

---- problem
if Env.isLockOn(Key.NUM_LOCK):
  nlZap=True
else:
  nlZap=False
if nlZap:
  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

** 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.1.3

** Description changed:

+ ---- problem
+ if Env.isLockOn(Key.NUM_LOCK):
+   nlZap=True
+ else:
+   nlZap=False
+ if nlZap:
+   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

Status in Sikuli:
  In Progress

Bug description:
  ---- problem
  if Env.isLockOn(Key.NUM_LOCK):
    nlZap=True
  else:
    nlZap=False
  if nlZap:
    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


Follow ups