![]() |
| |||||||
Workspace Macro Post messages and questions related to Macro Recorder or Windows Macro here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hi all, I try to test Tethys Macro SDK with Visual studio Express C# and I can't run my macro. I followed the help procedure : => import the ActiveX dll to my project ok! => RegisterProduct, SetConfigFile, RegisterApplication ok! => StartRecording and StopRecording ok! (wksp file is well created!) => RunMacro doesn't work ! I obtain this message : File Name : c:\MacroFolder\test.wksp 27/02/2008 16:10:14 116 - An error occurred while running the macro. Could you help me? Thanks in advance. |
| |||
| Hello, That is very strange. Is it possible for you to email us your contact number and email address at http://www.tethyssolutions.com/support_form.htm and one of our Technical Support Specialist can help you debug the problem you are facing. Also, can you please tell us what Operating System are you running on? |
| |||
| Is there somebody who use Macro Sdk with c# language? I tested the macro which was created by my source code in the VB sample gives with the macro sdk (add macro to any sofware) . And this wksb file works fine! In my code, the result of the RunMacro function indicate that there is a failure but I don't know where is the problem! You can find here a piece of my code : Code: if (SDKObj.IsRecordingOn() == 1)
throw new Exception("Macro is Recording");
if (SDKObj.IsRunOn() == 1)
throw new Exception("Macro is running!");
int i = SDKObj.RunMacro(MacroPath, null, 0, @"MacroFolder\MacroErrorLog.txt");
//If there is a failure in RunMacro
if(i==1)
{
SDKObj.GetLastError(ref codErr, ref msgErr);
Console.WriteLine("Error during macro execution: \nErr0r n°" + codErr + "\t" + msgErr);
} |