![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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 |
| |||
|
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. |
| |||
|
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 |
| |||
|
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 |
| |||
|
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. |
| |||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |