Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2010, 11:51 PM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default calling AA Task Via .NET App and setting parameters

hi,

i made a task using web recorder which logins to a site and fill out few controls there and press a button but normal web recording was not doing it so i have to do it via MWC

but now i have to execute that task via .NET App and have to set the controls values via SQL tables

please tell me how to do it
Reply With Quote
  #2 (permalink)  
Old 01-05-2010, 03:39 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

There are two ways,

1) Create exe of task and call it from your .net application
2) Call .atmn from .net application (Automation Anywhere should be installed)

Using ShellExecute command you can call exe of task or .atmn file.

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

To call .atmn file you have to pass path of Automation Anywhere.exe along with full path of .atmn to ShellExecute command.

You can modify your task to connect SQL Server database and get the control values from SQL table.

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 01-05-2010, 05:19 AM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default Issue

hi,

I am using AA 5.5 and in your shellscript method i have to pass automation.exe path but i am not seeing it anywhere on my computer
what i am seeing is below
"C:\Program Files\Automation Anywhere 5.5\Automation Anywhere"

no exe and i am getting error while calling it

and please can some one has time to do GTM with me as i am new on it and have short dead line on the task and we already purchsed your software
Reply With Quote
  #4 (permalink)  
Old 01-05-2010, 05:31 AM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default Issue

hi,

got the Automation exe i am using the below code


Dim oPro As New Process
With oPro
.StartInfo.UseShellExecute = True
.StartInfo.Arguments = "C:\Documents and Settings\Administrator\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\test.atmn"
.StartInfo.FileName = "C:\Program Files\Automation Anywhere 5.5\Automation Anywhere.exe"
.Start()
End With

but it is doing nothing please help
Reply With Quote
  #5 (permalink)  
Old 01-08-2010, 03:50 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please try this?

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Sub main()

ShellExecute 0, "open", "C:\Program Files\Automation Anywhere 5.5\automation anywhere.exe", "D:\Automation Anywhere\Automation Anywhere\My Tasks\TaskName.atmn", vbNullString, 1

End Sub

Hope that helps.
Reply With Quote
  #6 (permalink)  
Old 01-08-2010, 05:04 AM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default Nothing is happening

hi,

Nothing is happening I did GTM yesturday with one of your Expert yesturday and we both saw that your task or exe is not running via my .NET web app.


so he told me to chnage the approch but i don't know how to do it

what i want that i need to AA exe's

First exe will continously monitor a Databse table and if it will see an record with some flag then it will call another exe and then another exe will do web recording etc and will insert one web data into a column and will also fire the mail to user

FYI :--> for each row with status flag there should be each instance of the second exe should run other wise it will do mismatch
Reply With Quote
  #7 (permalink)  
Old 01-09-2010, 02:33 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

We need to look into the actual scenario to create a sample so we talked to our technical support team and they will get in touch with you soon.
Reply With Quote
  #8 (permalink)  
Old 01-09-2010, 04:28 AM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default help

hi,

FYI i have sent you guys mail with details and also tasks as attachments can you guys look into it as soon as possible

mail is sent to "priority.support@tethyssolutions.com"
From "surender_rawat82@hotmail.com"
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

BB 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 02:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved