나는 White을 처음 사용하고 있습니다. 누군가가 exe 파일 (로그 암호 사용)을 실행하고 해당 exe 파일의 모든 요소를 인쇄하는 방법을 말해 줄 수 있습니까? C# white framework -code project
나는Application application = Application.Launch("exe /password)"
를 사용했지만 그것은 작동하지 않습니다.
나는 White을 처음 사용하고 있습니다. 누군가가 exe 파일 (로그 암호 사용)을 실행하고 해당 exe 파일의 모든 요소를 인쇄하는 방법을 말해 줄 수 있습니까? C# white framework -code project
나는Application application = Application.Launch("exe /password)"
를 사용했지만 그것은 작동하지 않습니다.
Elisa listview 또는 gridview가 포함 된 양식에서 전화 번호를 가져 와서 파일이나 다른 컨트롤에 쓰고 싶다고 가정합니다. 여기가
간다 내 머리 위로의 그래서 : // 응용 프로그램을
응용 프로그램 응용 프로그램을 실행 = Application.Launch (".EXE의 전체 경로");
// 응용 프로그램을
창 승리 = app.GetWindow (Core.UIItems.Finders.SearchCriteria.ByAutomationId ("Form1에"), Core.Factory.InitializeOption.NoCache)를 실행 한 후 메인 창을 얻으십시오;
// 목록을 가져/흰색
var에 listOfPhonesNumbers에 해당 유형의 테이블을 GRIDVIEW = win.Get < Table
> (SearchCriteria.ByAutomationId ("grdPhoneNumber")); 대한
(나는 "<"listOfPhoneNumbers.Rows.Count; int로 난 = 0 내가 ++) { /// 인쇄 전화 번호로 어떤 파일 }
#region lanch App
// source exe file path. here it is calculator exe path
const string ExeSourceFile = @"C:\Windows\system32\calc.exe";
//Global Variable to for Application launch
White.Core.Application _application;
//Global variable to get the Main window of calculator from application.
White.Core.UIItems.WindowItems.Window _mainWindow;
//start process for the above exe file location
var psi = new ProcessStartInfo(ExeSourceFile);
// launch the process through white application
_application = White.Core.Application.AttachOrLaunch(psi);
//Get the window of calculator from white application
_mainWindow = _application.GetWindow
(SearchCriteria.ByText("Calculator"), InitializeOption.NoCache);
#endregion
흰색 프로젝트는 무엇입니까 ? – Oded
흰색 프로젝트는 소스 코드가 다른 코드에서 도난 당하거나 복사되지 않는 프로젝트입니다 .-) 내가 생각하기에 –
흰색은 Win32, WinForms, WPF, Silverlight 및 SWT (Java) 플랫폼을 기반으로하는 리치 클라이언트 응용 프로그램을 자동화하기위한 프레임 워크입니다. .NET 기반이며 독점적 인 스크립팅 언어를 사용하지 않아도됩니다 –