Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Workspace Macro
Register FAQ Search Today's Posts Mark Forums Read

Workspace Macro Post messages and questions related to Macro Recorder or Windows Macro here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2008, 07:31 AM
goddet goddet is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default Problem to run Macro

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.
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 01:23 PM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 435
Default

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?
Reply With Quote
  #3 (permalink)  
Old 03-03-2008, 11:41 PM
goddet goddet is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

Thanks for your answer!
I run under Windows XP Pro with SP2.
Reply With Quote
  #4 (permalink)  
Old 03-25-2008, 09:46 AM
goddet goddet is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

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);
}
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved