Welcome, Guest. Please Login
vTask Homepage
 
 
Home Help Search Login


1  vTask Boards / Sample vTask Scripts (Advanced) / Moved: 'Please help with calling vTask DLL from C#'
 on: Oct 6th, 2016 at 9:08am 
Started by vTask Support | Post by vTask Support  
This Topic has been moved to Open Issues and Questions by vTask Support

2  vTask Boards / Open Issues and Questions / Re: Please help with calling vTask DLL from C#
 on: Oct 6th, 2016 at 8:53am 
Started by ocnuybear | Post by vTask Support  
I don't know anything about C#, so I can't help with that language. vTask does export DLL functions correctly, as you noted with success in the VB and C++ environments. But unfortunately I am not sure of how C# handles exported library functions.

The official Users Guide entry is here (which you seem to already know about):
How to Access a DLL created by vTask


I did a forum search and found this which mentions C#: http://www.vtaskstudio.com/forum/YaBB.pl?num=1213172210/12#12

maybe that will help. Otherwise, this is a C# programming question that vTask automation users will have limited knowledge of.

Obviously, you're probably going to have to start googling "how to import DLL functions in C#" or "declare DLL prototypes in C#" or something. I did a brief search, and it looks like numerous results will show you how to do it. Did you try that yourself?

Side note: Why is this post in "Sample vTask Scripts (Advanced)"?  moving to "Open Issues and Questions"

3  vTask Boards / Open Issues and Questions / Re: Please help with calling vTask DLL from C#
 on: Oct 6th, 2016 at 6:52am 
Started by ocnuybear | Post by ocnuybear  
Can anyone help me please ?

4  vTask Boards / Open Issues and Questions / Please help with calling vTask DLL from C#
 on: Sep 29th, 2016 at 10:27pm 
Started by ocnuybear | Post by ocnuybear  
Hi, I have succesfully loaded my vTask DLL from VB.net using:


Option Explicit
Declare Function RunScript Lib "Example.dll" (ByVal a As Integer, ByVal b As String) As Integer

Sub Main()
        Dim Result As Integer
        Result = RunScript(1, "Hello")
        MsgBox "The result was: " & Result
End Sub


But I need to do this in C# - the CPP example in the Help file is not working as I'm only a beginner in C#.

5  vTask Boards / Open Issues and Questions / Re: What is the new features in V8 ?
 on: Sep 29th, 2016 at 8:20am 
Started by ocnuybear | Post by vTask Support  
unknown at this point.

6  vTask Boards / Open Issues and Questions / What is the new features in V8 ?
 on: Sep 28th, 2016 at 11:29pm 
Started by ocnuybear | Post by ocnuybear  
When is the ETA of this version  Roll Eyes

7  vTask Boards / Open Issues and Questions / Re: Doubt Vtask Linux
 on: Sep 23rd, 2016 at 2:15pm 
Started by Bruno | Post by vTask Support  
vTask Studio only runs natively on the Windows platform.
WINE
has been successfully used to run vTask on Linux, however.

8  vTask Boards / Open Issues and Questions / Re: Is there a way to stop a compiled script at any time with a keypress?
 on: Sep 23rd, 2016 at 1:08pm 
Started by nx7010 | Post by Bruno  
hello,
I do so to close the program you want with the key you wish, you can use right on your system.

<? Xml version = "1.0"?>
<VTask>
<step>
     <action> Etiqueta </ action>
     <text> texto </ text>
</ step>
<step>
     <action > sE tecla é pressionada </ action>
     <text> {F11} </ text>
     <options> Right Now </ options>
</ step>
<step>
     <action> Kill Processo </ action>
     <text> C: \ Users \ MyProgram.EXE </ text>
     <travessões> 1 </ travessões>
     <onfail> Ignorar / Continuar </ onfail>
</ step>
<step>
     <action> Kill Processo </ action>
     <text> MyProgram.EXE < / text>
     <travessões> 1 </ travessões>
     <onfail> Ignorar / Continuar </ onfail>
</ step>
<step>
     <action> Feche todas as janelas </ action>
     <travessões> 1 </ travessões>
</ step>
<step>
     <action> END IF </ action>
</ step>
<step>
     <action> Etiqueta GOTO </ action>
     <text> texto </ text>
</ step>
</ vTask>

...

just suit your system.

9  vTask Boards / Open Issues and Questions / Doubt Vtask Linux
 on: Sep 23rd, 2016 at 1:06pm 
Started by Bruno | Post by Bruno  
Hello, I can use the vtask to run Linux?

10  vTask Boards / Open Issues and Questions / Re: Is there a way to stop a compiled script at any time with a keypress?
 on: Sep 21st, 2016 at 1:23am 
Started by nx7010 | Post by vTask Support  
thanks! Smiley