C#: trying to run a Sikuli script using StartProgram.Start() with runIDE.cmd
Hello,
I developed a C# Code that should be able to connect to the sikuli to run a specific program that tests mobile devices. when i run the C# Code... It displays the following "trying to connect to sikuli-IDE.exe" and then nothing happens..,. where does the problem exist?..
Here is my C# Code. I am running it on Visual Studio 2013. Thanks in advance
using System;
using System.
using System.Linq;
using System.Text;
using System.
using System.
///using dowStepType;
using MySql.Data;
using MySql.Data.
using System.Data;
using System.Diagnostics;
// using java.io.
// using java.io.File;
// using java.io.FileWriter;
//http://
namespace WindowsFormsApp
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt f?r die Anwendung.
/// </summary>
[STAThread]
static void Main(/*string[] args*/)
{
/* string VRB = args[0] ;*/
string vendor = "Nokia"; //"Nokia"; Appel_IPhone 4\IP_DOW\
string model = "Lava"; //"Lava";
string Menutree = "SL_Menubaum"; //"SL_Menubaum";
string EndNote = "End9"; //"End2";
string device = vendor + "_" + model;
double Breite = 0;
double L?nge = 0;
/* Picture Path*/ string PicturePath;
///Debug.
dt = GetCoord(dt, device, Menutree, EndNote);
/* Picture Path*/ GetLaengeBreite(dt, out L?nge, out Breite, out PicturePath);
}
static void GetLaengeBreite
{
int i = 0;
while (dt.Rows[
{
}
string Path = dt.Rows[
Breite = img.Width;
L?nge = img.Height;
/// System.
//L?nge = 5.5;
}
static DataTable GetCoord(DataTable dt, string objectundertest, string testarea, string EndNote)
{
string query = "SELECT MenuName, MenuInfo, MenuImage FROM test.menutree WHERE MenuTreeView = '" + testarea + "' AND (MenuName = 'TS:Coord' AND MenuImage LIKE '%" + objectundertest + "%') OR (MenuName LIKE 'End%' AND MenuTreeView = '" + testarea + "') AND MobileId = (SELECT MobileId FROM test.menutree WHERE MenuTreeView = '" + testarea + "' AND MenuImage LIKE '%" + objectundertest + "%' LIMIT 1)";
return (dt);
}
static void GenerateCsv(
{
string ProgramPfad = (@"C:\Robotron\
using (System.
{
int a = 1;
int b = 1;
for (int i = 0; i < (3* dt.Rows.Count); i++)
{
try{
}
catch (Exception e)
{
Console.
}
/* Picture Path*/ file.WriteLine(
/* Anpassen Z*/ buffer[b-1] = (device + ";" + a + ";" + 1 + ";" + Prozent + ";" + "3" + ";" + 71 + ";" + -51 + ";" + 40 + ";" + 400);
/* Anpassen Z*/ buffer[b - 1] = (device + ";" + a + ";" + 2 + ";" + Prozent + ";" + "1,1" + ";" + 71 + ";" + -51 + ";" + 10);
/* Anpassen Z*/ buffer[b - 1] = (device + ";" + a + ";" + 3 + ";" + Prozent + ";" + "3" + ";" + 71 + ";" + -51 + ";" + 25 + ";" + 100);
}
}
}
static string Calculate(string Prozent, double L?nge, double Breite)
{
double x = Convert.
double y = Convert.
/* Anpassen*/ double Umrechnung = 1;
/* Anpassen*/ double Faktor = 1;
/* Anpassen*/ x = (Breite/
/* Anpassen*/ y = (L?nge /Umrechnung)
/* Anpassen Z */
Prozent = x + ";" + y;
}
static void LoadCsv(string device, string Menutree, string EndNote)
{
Process StartProgram = new Process();
string temp = device + "_" + Menutree + "_" + EndNote+".csv";
/* Anpassen*/ StartProgram.
/* Anpassen*/ StartProgram.
// "\\\\10.
// "\\\\10.
}
}
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: