Tips & Tricks in viz|trio

wjg

Member
hleinan suggested this vor viz|artist, would be nice for trio as well...

now, let me start here:

VB-SCRIPTING: keep in mind that all variables you get from Trio are string-type - even values from the number-plugin. so don't forget to convert them before sorting (comparing strings will bring up other results than comparing int or fp-values)
 
scripting with trio / vbs

scripting with trio / vbs

this vbs-helpfile is very helpful...
 

Attachments

  • vbs_help.zip
    463.3 KB · Views: 24
Yes, scroll is easy in trio but not really "friendly" like in ticker... If you need to change a message, need to take out the scroll.. Aaarrgghhtt !!
but you can create a flipping caroussel with trio... ;)
Juste use the playlist tool and a good scene/template. In this case, you can have a Loop, change messages at any time, etc... enjoy !!! ;)
Patrick
 
VTW/Trio

VTW/Trio

when using vtw's for trioshows do this at the beginning of scripting in VTW

Code:
if application.Title = "Viz Template Wizard" then 
    execute "sub TrioCmd(xxxx)  : end sub" 
end if

from now on you can use TrioCmd without errors...
 
VTW/Trio

VTW/Trio

when using vtw's for trioshows do this at the beginning of scripting in VTW

Code:
if application.Title = "Viz Template Wizard" then
    execute "sub TrioCmd(xxxx)  : end sub"
end if

from now on you can use TrioCmd without errors...
in the meantime viz changed the title to "Template Wizard"... so i refactored to
Code:
public wizardMode : wizardMode = (application.Title = "Viz Template Wizard") OR (application.Title = "Template Wizard")

unfortunatly this will not work with Windows 11 / Trio 4.3.1 any more
1741014823309.png
 
in the meantime viz changed the title to "Template Wizard"... so i refactored to
Code:
public wizardMode : wizardMode = (application.Title = "Viz Template Wizard") OR (application.Title = "Template Wizard")

unfortunatly this will not work with Windows 11 / Trio 4.3.1 any more
View attachment 221687
in the meantime ionut.pogacean replied to this or a similar thread (got it via mail) with a very uswful tip:
Code:
Dim objShell : Set objShell = CreateObject("WScript.Shell")
public wizardMode : wizardMode = (objShell.AppActivate( "Viz Template Wizard" )) OR ( objShell.AppActivate( "Template Wizard") )

this will do the job in Win11!

furthermore i was asked
Why do you need to check what app it's running in?

  • When running this code in then VTW-development-environment this code pretends that, in this environment non-existing “TrioCmd” exists. Otherwise, the code would be interrupted by an error message at every “TrioCmd”-execution.
  • When not running this code in then VTW-development-environment additional Debug-Messages can be suppressed. temporarily available controls of the VTW can be hidden at startup.
 
Back
Top