← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #260715]: Some functions not working properly over RDP

 

Question #260715 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/260715

    Status: Answered => Open

Daniel is still having a problem:
Hello RaiMan, thanks for the help. I'm a bit closer to the solution but
not quite.

I did it like this:

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

type(Key.NUM_LOCK) works fine, but the Env.isLockOn(Key.NUM_LOCK) only registers what I entered last myself via keyboard, and ignors the changes type(Key.NUM_LOCK) does
 - if the numLock was initially off, it will never enter the if statement and never change it (this is good)
 - if the numLock was initially on, it will switch it on and off again every time I run the script

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.