Run Sikuli from button in Excel

2019-09-06 14:29发布

I am new to VBA. In Excel sheet I have data. At the end of the every row I have an onclick button.

My requirement is when I click on a button it has to run Sikuli from command prompt.

Which command is used to open and run the command prompt in VBA?

1条回答
迷人小祖宗
2楼-- · 2019-09-06 14:57

I don't know sikuli, but if you want to run a command line from VBA code as part of a button click, look at the Shell command.

Private Sub CommandButton1_Click()
  dblRetVal = Shell("java -jar %SIKULI_HOME%\script.jar path\yourScript.sikuli", vbHide)
  'VBHIDE HIDES SHELL WINDOW (BLACK DOS WINDOW)
End Sub
查看更多
登录 后发表回答