How do I run/open a robotask tsk using Visual Basic?
I tried shelling a batch file and it runs but never fully does what it was supposed to do
run/open a robotask tsk using Visual Basic?
Re: run/open a robotask tsk using Visual Basic?
Run batch file is the simplest way
What is the problem?but never fully does what it was supposed to do
Oleg Yershov
Re: run/open a robotask tsk using Visual Basic?
The problem is this
when I use this macro outside of being called from Visual Basic, that macro works just fine.
When I call this macro from a batch file inside of Visual Basic a black screen comes up flashes and ends, and then the task is never executed
when I use this macro outside of being called from Visual Basic, that macro works just fine.
When I call this macro from a batch file inside of Visual Basic a black screen comes up flashes and ends, and then the task is never executed
Re: run/open a robotask tsk using Visual Basic?
https://robotask.com/forum/viewtopic.ph ... FACE#p6185
this link is very close to my experience.
this link is very close to my experience.
Re: run/open a robotask tsk using Visual Basic?
You can RoboTask.App object. Read more about RoboTaskApp here
Below is an example of the script
RoboTask is 32-bit application, so this script works wrom 32-bit applications too.
You can write VBS file with same script and run it by command line
C:\Windows\SysWOW64\wscript.exe is the 32-bit version of script engine
Below is an example of the script
Code: Select all
Set obj = CreateObject("RoboTask.App")
obj.startTask "TestTask1", ""
You can write VBS file with same script and run it by command line
Code: Select all
C:\Windows\SysWOW64\wscript.exe RunTask.vbs
Oleg Yershov