← Back to team overview

sikuli-driver team mailing list archive

[Question #694622]: env.isLockOnSync always return false

 

New question #694622 on Sikuli:
https://answers.launchpad.net/sikuli/+question/694622

hii all,   i m using nodejava to check weather my caplock is on or off but  env.isLockOnSync always return false.
typesync(key.NUM_LOCK) work great, but don't know why isLockOnSync  not working 

   let offcap = this.Env.isLockOnSync(y)
        console.log(offcap, typeof offcap, this.Key.NUM_LOCK, this.Key.NUM_LOCK.toString())
        if (offcap == true || offcap == "True" || offcap == "true") {
            let x = this.screen.typeSync(this.Key.NUM_LOCK);
            this.wait(null, 0.2);
            console.log("---------------cap", x, typeof x)
        }
is there anyother work around to get numlock status

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.