- 基本情報
- チュートリアル
- オートメーション プロジェクト
- オートメーションの作成
- トラブルシューティング
StudioX user guide
この例では、次の各タスクのオートメーションを作成します。
- Excel ファイルから値をコピーします。
- デスクトップ アプリケーションの特定のフィールドに値を貼り付けます。
- デスクトップ アプリケーションからトランザクション番号をコピーします。
- Excel ファイルのセルに値を貼り付けます。
- デスクトップ アプリケーションのボタンをクリックしてデータを送信します。
- アプリケーションから取得したトランザクション番号とアカウント番号が記述された確認メッセージを表示します。
We will create a project and start by adding a Use Excel File activity to indicate the Excel file to use. We will then add a Use Application/Browser that will contain the activities that interact with the application. At the end, we will add a Message Box activity to display the confirmation message.
- プロジェクトを設定し、必要なファイルをダウンロードします。
- Create a new blank project using the default settings.
- このチュートリアルでは、ページ下部にあるボタンをクリックして、オートメーション プロジェクトを収めたアーカイブをダウンロードして展開します。ファイル Transaction.xlsx をプロジェクト フォルダーにコピーし、ファイル DoubleUI.exe をダブルクリックして DoubleUI アプリケーションを開きます。
- Excel ファイルをプロジェクトに追加します。
- [アクティビティ] パネルで [リソース] タブを選択し、[Excel ファイルを使用] をダブルクリックします。[Excel ファイルを使用] アクティビティがデザイナー パネルに追加されます。
- [Excel ファイルを使用] アクティビティで次の操作を行います。
-
Click Browse
to the right of the Excel file field, and then browse to and select the file Transaction.xlsx. -
[参照名] フィールドに「
MyExcel」と入力します。これで、このプロジェクトでは名前を MyExcel としたファイル Transaction.xlsx を操作対象として指定したことになります。
-
- アプリケーションとアプリケーション内で実行するアクティビティを追加します。
-
[アクティビティ] パネルで [リソース] タブを選択し、[アプリケーション/ブラウザーを使用] アクティビティをドラッグして、[Excel ファイルを使用] アクティビティ内にドロップします。[アプリケーション/ブラウザーを使用] アクティビティがデザイナー パネルに追加されます。
-
[アプリケーション/ブラウザーを使用] アクティビティで、[アプリケーションを指定] をクリックして、マウス ポインターを DoubleUI アプリケーションの上に移動します。ウィンドウが強調表示されるので、DoubleUI の任意の場所をクリックします。
[アプリケーション/ブラウザーを使用] アクティビティが更新され、ウィンドウのスクリーンショットがアクティビティに表示されます。
-
In the Activities panel, select the Resources tab, and then drag a Type Into activity and drop it inside the Use Application/Browser activity. A Type Into activity is added in the Use Application/Browser activity.
-
[文字を入力] アクティビティで次の操作を行います。
-
[画面上でターゲットを指定] をクリックし、DoubleUI.exe アプリケーションの [Cash In] フィールドにマウス ポインターを移動します。フィールドが強調表示されたらクリックします。テキスト フィールドがターゲットとして、フィールドの横の [Cash In] ラベルがアンカーとして識別されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。ターゲットとアンカーの画像が [文字を入力] アクティビティに表示されます。
これで、DoubleUI.exe アプリケーションの [Cash In] フィールドに文字を入力するように指定したことになります。
-
Click Plus
on the right side of the Type this field, and then select MyExcel > Indicate in Excel. In the Excel file, select the B1 cell (the Cash In value) and click Confirm in the UiPath tab of the Excel ribbon. The Type this field displays your selection as [MyExcel] Sheet1!B1.これで、Excel ファイルから入金の額を DoubleUI.exe アプリケーションの [Cash In] フィールドにコピーするように指定したことになります。
-
-
ステップ 3 ~ 4 を 2 回以上繰り返し、Excel ファイルのセル B2 から自行払い小切手の額、セル B3 から他行払い小切手の額を DoubleUI アプリケーションのそれぞれ対応するフィールドにコピーする [文字を入力] アクティビティを追加します。
-
In the Activities panel, select the Resources tab, and then drag a Get Text activity and drop it inside the Use Application/Browser activity after the last Type Into activity. A Get Text activity is added in the Use Application/Browser activity.
-
[テキストを取得] アクティビティで、次の操作を行います。
-
[画面上でターゲットを指定] をクリックし、DoubleUI.exe アプリケーションの [Transaction #] の値にマウス ポインターを移動します。値が強調表示されたらクリックします。[Transaction #] の値がターゲットとして、値の横のラベルがアンカーとして識別されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。ターゲットとアンカーの画像が [テキストを取得] アクティビティに表示されます。
-
Click Plus
on the right side of the Save to field, and then select MyExcel > Indicate in Excel. In the Excel file, select the B4 cell (the Transaction # value) and click Confirm in the UiPath tab of the Excel ribbon. The Save to field displays your selection as [MyExcel] Sheet1!B4.これで、DoubleUI.exe アプリケーションの [Transaction #] の値を Excel ファイルの Sheet1 の B4 セルにコピーするように指定したことになります。
-
-
In the Activities panel, select the Resources tab, and then drag a Click activity and drop it inside the Use Application/Browser activity after the Get Text activity. A Click activity is added in the Use Application/Browser activity.
-
[クリック] アクティビティで [画面上でターゲットを指定] をクリックし、DoubleUI.exe アプリケーションの [Accept] ボタンにマウス ポインターを移動します。ボタンが強調表示されたらクリックします。[Accept] ボタンがターゲットとして、[Cancel] ボタンがアンカーとして識別されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。ターゲットとアンカーの画像が [クリック] アクティビティに表示されます。
これで、DoubleUI.exe アプリケーションの [Accept] ボタンをクリックするように指定したことになります。
-
In the Activities panel, select the Resources tab, and then drag a Get Text activity and drop it inside the Use Application/Browser activity after the Click activity. A Get Text activity is added in the Use Application/Browser activity.
-
[テキストを取得] アクティビティで、次の操作を行います。
-
[画面上でターゲットを指定] をクリックし、DoubleUI.exe アプリケーションの [Account #] の値にマウス ポインターを移動します。値が強調表示されたらクリックします。[Account #] の値がターゲットとして、値の横のラベルがアンカーとして識別されます。[選択オプション] ウィンドウの [確認] をクリックして選択内容を保存します。ターゲットとアンカーの画像が [テキストを取得] アクティビティに表示されます。
-
Click Plus
on the right side of the Save to field, and then select Save for Later Use. Enter the name Account #for the value, and click OK.これで、[Account #] の値を DoubleUI.exe アプリケーションからコピーし、プロジェクトの後工程で使用できるように、その値を Account # という名前で保存するように指定したことになります。

-
-
- メッセージ ボックス アクティビティを追加して作成します。
- [アクティビティ] パネルで [共通] タブを選択し、[メッセージ ボックス] アクティビティをドラッグして、[Excel ファイルを使用] アクティビティ内の [アプリケーション/ブラウザーを使用] アクティビティの後にドロップします。
- In the Message Box activity, click Plus
on the right side, and then select Text. The Text Builder window appears. - ここでは、次のようなテキストを追加して表示します。「Transaction # 123 has been processed for account # 456」このためには、次の手順に従います。
-
「Transaction #」と入力します。
-
Click Plus
on the right side of the window, and then select MyExcel > Indicate in Excel. In the Excel file, select the B4 cell (the Transaction # value) and click Confirm in the UiPath tab of the Excel ribbon. You have added the transaction number value from the Excel file.「Transaction #
[MyExcel] Sheet1!B4」と表示されます。 -
「has been processed for account #」と入力します。
-
Click Plus
on the right side of the window, and then select MyExcel > Use Saved Value > Account #. You have added the account number value that you saved for later use earlier.次のテキストが表示されます。

-
- テキスト ビルダーで [保存] をクリックします。
- Click Save in the StudioX ribbon to save the automation, then click Run to execute the automation.The values are copied from the Excel file and entered in the DoubleUI application, the Transaction # from the DoubleUI application is copied to the Excel file, and a message box displaying the transaction and account numbers appears at the end. Download example