← Back to team overview

sikuli-driver team mailing list archive

[Question #294289]: How do I pass arguments to a sikuli script externally while running scripts from cmd prompt

 

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

I run my sikuli scripts in UFT with following code:

sCmd= "C:\TCOE\SikuliSetup\Setup001\sikulix.jar "& " -r " & gSikuliScript & sScript
		Set objShell = CreateObject("WScript.Shell")
		Call objShell.Run(sCmd,0,true)

Now I have to pass arguments to my sikuli scripts and trying to achieve with following line:
		sCmd= "C:\TCOE\SikuliSetup\Setup001\runsikulix.cmd  -r   C:\TCOE\Resonant\Sikuliscripts\EditDocument.sikuli  --args " &" "&   sfirstname &" "&  slastname  &" "& sSSN &" "& sWPID 

((OR))

		sCmd= "C:\TCOE\SikuliSetup\Setup001\sikulix.jar -r   C:\TCOE\Resonant\Sikuliscripts\EditDocument.sikuli  --args " &" "&   sfirstname &" "&  slastname  &" "& sSSN &" "& sWPID 

I see sikuli is trying to do some actions at backend but not setting values in UI.

Please help

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