Hi,
it seems there's no command line support. But it can be done using
AutoIt (
http://www.autoitscript.com/autoit3/index.shtml)
I had the same issue and solved it like this (please check folder
names to match your system).
--- autoit ---
; Match substrings in window titles
Opt("WinTitleMatchMode", 2)
$folder = "C:\mywinkfolder"
CompileAllFiles($folder)
Func CompileAllFiles(Const $folder)
$search = FileFindFirstFile($folder & "\*.wnk")
If $search = -1 Then
; no files found
Exit
EndIf
While 1
$file = FileFindNextFile($search)
If @error Then ExitLoop
CompileWinkFile($folder,$file)
WEnd
FileClose($search)
EndFunc
Func CompileWinkFile(Const $folder, Const $filename)
ShellExecute("c:\Program Files\DebugMode\Wink\wink.exe",'"' & $folder
& "\" & $filename & '"')
; Wait for Wink to open
WinWait($filename)
; Wait 2 seconds until file is opened
Sleep(2000)
; If it opens in background, activate it
WinActivate($filename)
; Start rendering
Send("{F7}")
do
; assume that rendering is complete
$rendercomplete = True
; give it another 2 seconds for rendering
Sleep(2000)
If WinExists("Rendering") Then
; If window is still there, rendering is not yet complete
$rendercomplete = False
EndIf
until $rendercomplete = True
; If someone put it to background, make it active again
WinActivate($filename)
; Close the program
Send("!{F4}")
EndFunc
--- end autoit code ---
Have a nice day,
wellilein