← Back to team overview

sikuli-driver team mailing list archive

[Question #663268]: Hotkeys not working accordingly

 

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

I am using below VB script of excel to launch sikulix1.1.2 script with Hotkeys but I don't know why it is opening new workbook instead of calling "openChrome(event)" in sikuliX.

Excel VB script:
Private Declare Sub Sleep Lib "Kernel32" (ByVal ms As Long)
Sub Button1_Click()
    SendKeys "^n"
    Sleep 5000
End Sub

SikuliX script:
def openChrome(event):
    click("1516306798475.png")
# When the user pressed Ctrl+n, click the top-left chrome icon.
Env.addHotkey("n", KeyModifier.CTRL, openChrome)

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