JP7354661B2 - control program - Google Patents

control program Download PDF

Info

Publication number
JP7354661B2
JP7354661B2 JP2019144999A JP2019144999A JP7354661B2 JP 7354661 B2 JP7354661 B2 JP 7354661B2 JP 2019144999 A JP2019144999 A JP 2019144999A JP 2019144999 A JP2019144999 A JP 2019144999A JP 7354661 B2 JP7354661 B2 JP 7354661B2
Authority
JP
Japan
Prior art keywords
message
control program
template
address
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019144999A
Other languages
Japanese (ja)
Other versions
JP2021026578A (en
Inventor
純 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019144999A priority Critical patent/JP7354661B2/en
Publication of JP2021026578A publication Critical patent/JP2021026578A/en
Application granted granted Critical
Publication of JP7354661B2 publication Critical patent/JP7354661B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、テンプレートにテキストを配置した印刷用画像データを作成する制御プログラムに関する。 The present invention relates to a control program that creates print image data in which text is arranged in a template.

下記特許文献には、ユーザにより入力された条件に応じたテンプレートを選択するための技術が記載されている。 The following patent document describes a technique for selecting a template according to conditions input by a user.

特開2012-078886号公報JP2012-078886A

本発明は、適切なテンプレートを選択することを課題とする。 The present invention aims to select an appropriate template.

上記課題を解決するために、実施例に開示する制御プログラムは、情報処理装置のコンピュータが読み取り可能な制御プログラムであって、前記コンピュータを、前記制御プログラムと異なるアプリケーションプログラムから印刷対象のテキストデータを取得する取得手段と、前記取得手段により取得されたテキストデータに基づくテキストを配置可能なテンプレートのデータであるテンプレートデータを、複数のテンプレートデータから選択する選択手段と、前記選択手段により選択されたテンプレートデータに基づくテンプレートに、前記取得手段により取得されたテキストデータに基づくテキストを配置した印刷用画像データを作成する作成手段と、して機能させることを特徴とする。 In order to solve the above problems, a control program disclosed in an embodiment is a control program readable by a computer of an information processing device, and the control program allows the computer to print text data to be printed from an application program different from the control program. an acquisition means for acquiring; a selection means for selecting, from a plurality of template data, template data that is data of a template in which text based on the text data acquired by the acquisition means can be arranged; and a template selected by the selection means; The present invention is characterized in that it functions as a creation means for creating printing image data in which text based on the text data acquired by the acquisition means is arranged in a template based on the data.

実施例に開示する制御プログラムは、当該制御プログラムと異なるアプリケーションプログラムから印刷対象のテキストを取得する。そして、制御プログラムが、取得したテキストを配置可能なテンプレートを、複数のテンプレートから選択し、その選択したテンプレートに、先に取得しているテキストを配置した印刷用画像データを作成する。これにより、アプリケーションプログラムから取得されたテキストを適切に配置することが可能なテンプレートを適切に選択することができる。 A control program disclosed in the embodiment obtains text to be printed from an application program different from the control program. Then, the control program selects a template in which the acquired text can be placed from among a plurality of templates, and creates print image data in which the previously acquired text is placed in the selected template. Thereby, it is possible to appropriately select a template in which the text obtained from the application program can be appropriately arranged.

プリンタシステム1のブロック図である。1 is a block diagram of a printer system 1. FIG. プリンタシステム1の動作を示すシーケンス図である。3 is a sequence diagram showing the operation of the printer system 1. FIG. プリンタシステム1の動作を示すシーケンス図である。3 is a sequence diagram showing the operation of the printer system 1. FIG. プリンタシステム1の動作を示すシーケンス図である。3 is a sequence diagram showing the operation of the printer system 1. FIG. プリンタシステム1の動作を示すシーケンス図である。3 is a sequence diagram showing the operation of the printer system 1. FIG. プリンタシステム1の動作を示すシーケンス図である。3 is a sequence diagram showing the operation of the printer system 1. FIG. 登録サブルーチンを示す図である。FIG. 3 is a diagram showing a registration subroutine. 学習サブルーチンを示す図である。FIG. 3 is a diagram showing a learning subroutine. テンプレート選択サブルーチンを示す図である。FIG. 3 is a diagram showing a template selection subroutine. アプリ選択画面120を示す図である。3 is a diagram showing an application selection screen 120. FIG. アカウント入力画面130を示す図である。3 is a diagram showing an account input screen 130. FIG. プレビュー画像150を示す図である。3 is a diagram showing a preview image 150. FIG.

以下、適宜図面を参照して本発明の実施形態について説明する。なお、以下に説明する実施形態は、本発明の一例にすぎず、本発明の要旨を変更しない範囲で、本発明の実施形態を適宜変更できることは言うまでもない。例えば、後述する各処理の実行順序は、本発明の要旨を変更しない範囲で、適宜変更できる。 Embodiments of the present invention will be described below with reference to the drawings as appropriate. Note that the embodiments described below are merely examples of the present invention, and it goes without saying that the embodiments of the present invention can be modified as appropriate without changing the gist of the present invention. For example, the execution order of each process described below can be changed as appropriate without changing the gist of the present invention.

図1は、本実施形態に係るプリンタシステム1のブロック図である。図1に示すプリンタシステム1は、PC(情報処理装置の一例)10、プリンタ50を備える。PC10は、CPU(コンピュータの一例)12、メモリ14、LCD(ディスプレイの一例)16、入力I/F18、通信I/F20を主に備えている。これらの構成要素は、バス22を介して互いに通信可能とされている。 FIG. 1 is a block diagram of a printer system 1 according to this embodiment. The printer system 1 shown in FIG. 1 includes a PC (an example of an information processing device) 10 and a printer 50. The PC 10 mainly includes a CPU (an example of a computer) 12, a memory 14, an LCD (an example of a display) 16, an input I/F 18, and a communication I/F 20. These components are able to communicate with each other via bus 22.

PC10及びプリンタ50は、通信I/F20及び通信経路52を通じて通信可能となっている。通信の方式としては、例えば、有線LAN、USB、Wi-Fi(登録商標)やBluetooth(登録商標)を採用できる。なお、プリンタ50は、例えば、ラベルプリンタであり、PC10との間で各種の情報や指示信号を送受信し、PC10による制御に基づいて、所望のテキストや画像等のオブジェクトを印刷したラベルを作成する。 The PC 10 and the printer 50 are capable of communicating through the communication I/F 20 and the communication path 52. As the communication method, for example, wired LAN, USB, Wi-Fi (registered trademark), or Bluetooth (registered trademark) can be adopted. Note that the printer 50 is, for example, a label printer, and sends and receives various information and instruction signals to and from the PC 10, and creates a label on which objects such as desired text and images are printed based on control by the PC 10. .

CPU12は、メモリ14内の制御プログラム(制御プログラムの一例)30、若しくは、メッセージアプリケーション(アプリケーションプログラムの一例)32に従って処理を実行する。制御プログラム30は、例えば、プリンタ50により印刷される画像を印刷するための印刷データを作成するためのアプリケーションプログラムである。また、メッセージアプリケーション32は、PC10と異なる装置とメッセージのテキストデータを送受信するためのアプリケーションプログラムである。なお、以下の説明では、制御プログラム30等を実行するCPU12のことを、単にプログラム名でも記載する場合がある。例えば、「制御プログラム30等が」という記載は、「制御プログラム30等を実行するCPU12が」ということを意味する場合がある。 The CPU 12 executes processing according to a control program (an example of a control program) 30 or a message application (an example of an application program) 32 in the memory 14 . The control program 30 is, for example, an application program for creating print data for printing an image to be printed by the printer 50. Furthermore, the message application 32 is an application program for transmitting and receiving message text data to and from a device different from the PC 10. In addition, in the following description, the CPU 12 that executes the control program 30 and the like may be described simply by the program name. For example, the description ``the control program 30, etc.'' may mean ``the CPU 12 that executes the control program 30, etc.''.

また、メモリ14は、データ記憶領域34を備える。データ記憶領域34は、制御プログラム30等の実行に必要なデータなどを記憶する領域である。なお、メモリ14は、RAM、ROM、フラッシュメモリ、HDD、PC10に着脱されるUSBメモリ等の可搬記憶媒体、CPU12が備えるバッファなどが組み合わされて構成されている。 The memory 14 also includes a data storage area 34 . The data storage area 34 is an area for storing data necessary for executing the control program 30 and the like. Note that the memory 14 is configured by combining a RAM, a ROM, a flash memory, an HDD, a portable storage medium such as a USB memory that can be attached to and detached from the PC 10, a buffer included in the CPU 12, and the like.

なお、メモリ14は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non-transitoryな媒体である。non-transitoryな媒体には、上記の例の他に、CD-ROM、DVD-ROM等の記録媒体も含まれる。また、non-transitoryな媒体は、tangibleな媒体でもある。一方、インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種であるコンピュータが読み取り可能な信号媒体であるが、non-transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。 Note that the memory 14 may be a computer-readable storage medium. A computer readable storage medium is a non-transitory medium. In addition to the above-mentioned examples, non-transitory media also include recording media such as CD-ROMs and DVD-ROMs. Furthermore, non-transitory media are also tangible media. On the other hand, electrical signals that carry programs downloaded from servers on the Internet are a type of computer-readable signal medium, but non-transitory computer-readable storage Not included in media.

また、LCD16は、PC10の各種情報を表示する。なお、本願のディスプレイは、液晶ディスプレイに限らず、有機ELディスプレイ等の他の表示方式のディスプレイでも良い。入力I/F18は、キーボード、マウス等を含み、ユーザ操作を入力するためのインタフェースである。なお、入力I/F18は、キーボード等に限らず、LCD16の表示画面に重畳された膜状のタッチセンサでも良い。 Further, the LCD 16 displays various information of the PC 10. Note that the display of the present application is not limited to a liquid crystal display, and may be a display of other display methods such as an organic EL display. The input I/F 18 includes a keyboard, a mouse, etc., and is an interface for inputting user operations. Note that the input I/F 18 is not limited to a keyboard or the like, but may be a film-like touch sensor superimposed on the display screen of the LCD 16.

なお、本明細書では、基本的に、プログラムに記述された命令に従ったCPU12の処理を示す。すなわち、以下の説明における「判断」、「抽出」、「選択」、「算出」、「決定」、「特定」、「取得」、「受付」、「制御」「設定」等の処理は、CPU12の処理を表している。CPU12による処理は、OSを介したハードウェア制御も含む。なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPU12が要求することなくデータを受信するという処理も、「CPU12がデータを取得する」という概念に含まれる。また、本明細書中の「データ」とは、コンピュータに読取可能なビット列で表される。そして、実質的な意味内容が同じでフォーマットが異なるデータは、同一のデータとして扱われるものとする。本明細書中の「情報」についても同様である。また、「命令」「応答」「要求」等の処理は、「命令」「応答」「要求」等を示す情報を通信することにより行われる。また、「命令」「応答」「要求」等の文言を、「命令」「応答」「要求」等を示す情報そのものという意味で記載してもよい。また、CPUによる、情報Aは事柄Bであることを示しているか否かを判断する処理を、「情報Aから、事柄Bであるか否かを判断する」のように概念的に記載することがある。CPUによる、情報Aが事柄Bであることを示しているか、事柄Cであるかを示しているかを判断する処理を、「情報Aから、事柄Bであるか事柄Cであるかを判断する」のように概念的に記載することがある。 Note that this specification basically shows the processing of the CPU 12 according to instructions written in a program. That is, processes such as "judgment", "extraction", "selection", "calculation", "determination", "identification", "acquisition", "reception", "control" and "setting" in the following explanation are performed by the CPU 12. represents the processing of Processing by the CPU 12 also includes hardware control via the OS. Note that "acquisition" is used as a concept that does not require a request. That is, the process of receiving data without a request from the CPU 12 is also included in the concept of "the CPU 12 obtains data." Furthermore, "data" in this specification is represented by a computer-readable bit string. Furthermore, data having substantially the same meaning and content but different formats shall be treated as the same data. The same applies to "information" in this specification. Further, processing such as "command", "response", "request", etc. is performed by communicating information indicating "command", "response", "request", etc. Further, words such as "command", "response", "request", etc. may be written to mean the information itself indicating "command", "response", "request", etc. Additionally, the process of determining whether information A indicates matter B by the CPU may be conceptually described as "determine whether information A is matter B." There is. The process of determining whether information A indicates matter B or matter C by the CPU is called "determining whether information A is matter B or matter C." It may be described conceptually as follows.

プリンタシステム1では、上述した構成に従って、メッセージアプリケーション32により、PC10と異なる装置とメッセージのテキストデータの送受信を行うことが可能とされている。この際、制御プログラム30が、メッセージアプリケーション32による処理を監視しており、メッセージアプリケーション32により送受信されるテキストデータに基づくテキストを配置可能なテンプレートを自動で選択する。そして、選択されたテンプレートにテキストが配置された印刷用データが作成され、その印刷用データがプリンタ50に送信されることで、プリンタ50において、送信された印刷用データに基づく画像のラベル印刷が実行される。 In the printer system 1, according to the above-described configuration, it is possible to send and receive message text data to and from a device different from the PC 10 using the message application 32. At this time, the control program 30 monitors the processing by the message application 32 and automatically selects a template in which text based on text data sent and received by the message application 32 can be placed. Then, printing data in which text is arranged in the selected template is created, and the printing data is sent to the printer 50, so that the printer 50 prints a label of the image based on the sent printing data. executed.

詳しくは、例えば、メッセージアプリケーション32の処理により、図2に示すように、第三者、ここでは、鈴木太郎氏とメッセージの送受信が行われる。この際、インターネットを利用した商取引、所謂、eコマースが行われる場合がある。このような場合には、鈴木太郎氏、つまり、お客様から、商品を注文する旨のメッセージ(以下、「注文メッセージ」と記載する)を、メッセージアプリケーション32が受信すると、その注文メッセージ100をLCD16に表示する。 Specifically, for example, through the processing of the message application 32, messages are exchanged with a third party, here Mr. Taro Suzuki, as shown in FIG. At this time, commercial transactions using the Internet, so-called e-commerce, may be conducted. In such a case, when the message application 32 receives a message from Mr. Taro Suzuki, that is, a customer, to order a product (hereinafter referred to as an "order message"), the order message 100 is displayed on the LCD 16. indicate.

次に、その注文メッセージの受信に応じて、商品の代金の入金を依頼する旨のメッセージ(以下、「入金依頼メッセージ」と記載する)が入力されると、メッセージアプリケーション32は、その入金依頼メッセージをお客様に送信し、その入金依頼メッセージ102をLCD16に表示する。続いて、その入金依頼メッセージの送信に応じて、お客様から、商品の代金を入金した旨のメッセージ(以下、「入金済みメッセージ」と記載する)をメッセージアプリケーション32が受信すると、その入金済みメッセージ104をLCD16に表示する。 Next, in response to receiving the order message, when a message requesting a deposit for the product (hereinafter referred to as a "deposit request message") is input, the message application 32 receives the deposit request message. is sent to the customer, and the deposit request message 102 is displayed on the LCD 16. Subsequently, in response to sending the deposit request message, when the message application 32 receives a message from the customer stating that the money for the product has been deposited (hereinafter referred to as a "deposited message"), the deposited message 104 is sent. is displayed on the LCD 16.

そして、その入金済みメッセージの受信に応じて、商品の発送先の宛名を要求する旨のメッセージ(以下、「要求メッセージ」と記載する)が入力されると、メッセージアプリケーション32は、その要求メッセージをお客様に送信し、その要求メッセージ106をLCD16に表示する。さらに、その要求メッセージの送信に応じて、お客様から、商品の発送先の宛名を示すメッセージ(以下、「宛名メッセージ」と記載する)をメッセージアプリケーション32が受信すると、その宛名メッセージ108をLCD16に表示する。 Then, in response to receiving the payment completed message, when a message requesting the shipping address of the product (hereinafter referred to as "request message") is input, the message application 32 sends the request message. The request message 106 is sent to the customer and displayed on the LCD 16. Furthermore, when the message application 32 receives a message from the customer indicating the address to which the product will be shipped (hereinafter referred to as the "address message") in response to the transmission of the request message, the address message 108 is displayed on the LCD 16. do.

このようなメッセージアプリケーション32によるメッセージの送受信を、制御プログラム30が監視しており、メッセージアプリケーション32が宛名メッセージを受信した場合に、その宛名メッセージに含まれる宛名を示す情報110(以下、「宛名情報」と記載する)を、制御プログラム30がメッセージアプリケーション32から取得する。宛名情報とは、例えば、氏名や住所、電話番号を含む情報である。また、データ記憶領域34には、複数種類の郵便用の宛名のテンプレートが記憶されており、制御プログラム30は、宛名情報110に基づく宛名を配置可能な宛名のテンプレートを、データ記憶領域34に記憶されている複数種類の宛名のテンプレートから自動で選択し、そのテンプレートに宛名情報110に基づく宛名を配置した印刷用データ(以下、「宛名印刷用データ」と記載する)を作成する。そして、その宛名印刷用データがプリンタ50に送信されることで、プリンタ50において、送信された宛名印刷用データに基づく宛名のラベル、つまり、商品発送用のラベルが印刷される。以下に、このようなプリンタシステム1における商品発送用のラベルの印刷処理について、図3~図6に示すシーケンス図を用いて、具体的に説明する。 The control program 30 monitors the sending and receiving of messages by the message application 32, and when the message application 32 receives an addressed message, information 110 (hereinafter referred to as "addressed information") indicating the addressed address included in the addressed message is sent to the control program 30. ”) is obtained by the control program 30 from the message application 32. Address information is information including, for example, a name, address, and telephone number. Further, the data storage area 34 stores templates for multiple types of postal addresses, and the control program 30 stores templates for addresses in which addresses can be placed based on the address information 110 in the data storage area 34. Printing data (hereinafter referred to as "address printing data") is automatically selected from a plurality of types of address templates provided, and an address based on the address information 110 is arranged in the template. Then, by transmitting the address printing data to the printer 50, the printer 50 prints an address label based on the transmitted address printing data, that is, a label for shipping the product. Below, the printing process of labels for product shipping in the printer system 1 will be specifically explained using sequence diagrams shown in FIGS. 3 to 6.

まず、制御プログラム30が起動すると(S10:図3参照)、制御プログラム30による監視対象のアプリケーションプログラムが登録されているか否かを判断する(S11)。つまり、上記説明では、制御プログラム30がメッセージアプリケーション32を監視することを前提に説明しているが、任意のアプリケーションプログラムを、制御プログラム30の監視対象として登録することが可能とされている。そこで、この説明では、制御プログラム30による監視対象のアプリケーションプログラムが登録されていないものとして説明する。 First, when the control program 30 is activated (S10: see FIG. 3), it is determined whether an application program to be monitored by the control program 30 is registered (S11). That is, although the above description is based on the assumption that the control program 30 monitors the message application 32, it is possible to register any application program as a monitoring target of the control program 30. Therefore, in this description, it will be assumed that the application program to be monitored by the control program 30 is not registered.

制御プログラム30による監視対象のアプリケーションプログラムが登録されていない場合(S11:NO)に、登録サブルーチンが実行される(S12)。登録サブルーチンでは、図7に示すように、制御プログラム30が、アプリ選択画面(図10参照)120をLCD16に表示する(S100)。アプリ選択画面120には、複数の選択ボタン122a~cが表示されている。そして、複数の選択ボタン122a~cのうちの任意のボタンが操作されることで(S102:YES)、制御プログラム30は、操作された選択ボタンに応じたアプリケーションプログラムのアカウント入力画面(図11参照)130を、LCD16に表示する(S104)。そして、アカウント入力画面130において、OKボタンが操作されると、ユーザ名,パスワード等のアカウントが入力されているかを判断し(S106)、アカウントが入力されていると判断されると(S106:YES)、アカウントの認証が行われる(S108)。この際、アカウントが認証されると(S108:YES)、アプリ選択画面120において選択されたアプリケーションプログラム、例えば、メッセージアプリケーション32が、監視対象のアプリケーションプログラムとして登録され(S110)、登録サブルーチンが終了する。 If the application program to be monitored by the control program 30 is not registered (S11: NO), a registration subroutine is executed (S12). In the registration subroutine, as shown in FIG. 7, the control program 30 displays an application selection screen (see FIG. 10) 120 on the LCD 16 (S100). The application selection screen 120 displays a plurality of selection buttons 122a to 122c. Then, when any one of the plurality of selection buttons 122a to 122c is operated (S102: YES), the control program 30 displays an account input screen (see FIG. 11) of the application program corresponding to the operated selection button. ) 130 is displayed on the LCD 16 (S104). Then, when the OK button is operated on the account input screen 130, it is determined whether an account such as a user name and password has been input (S106), and if it is determined that an account has been input (S106: YES). ), account authentication is performed (S108). At this time, if the account is authenticated (S108: YES), the application program selected on the application selection screen 120, for example, the message application 32, is registered as an application program to be monitored (S110), and the registration subroutine ends. .

このように制御プログラム30による監視対象のアプリケーションプログラムが登録されると、制御プログラム30によるメッセージアプリケーション32の監視が実行される(S14:図3参照)。この際、メッセージアプリケーション32による処理、つまり、メッセージの送受信が実行されると(S16)、制御プログラム30は、メッセージアプリケーション32により送受信されたメッセージのテキストデータを含む情報(以下、「アプリ情報」と記載する)をメッセージアプリケーション32から取得する(S18)。なお、制御プログラム30は、LCD16に表示されている宛名メッセージ108等のメッセージへのコピー処理等も監視しており、メッセージに対するコピー処理等が実行された場合にも、コピー処理が実行されたことを示す情報を、アプリ情報としてメッセージアプリケーション32から取得する。ここで、コピー処理とは、例えば、ユーザがメッセージを指定してコピーやカットを指示する操作をしたときにクリップボードなどのデータ記憶領域34にコピーやカットされたデータを書き込む処理や、ユーザがメッセージを指定してOSの共有機能を指定する操作をしたときに、メッセージアプリケーション32から指定されたメッセージを取得する処理が挙げられる。 When the application program to be monitored by the control program 30 is registered in this manner, the message application 32 is monitored by the control program 30 (S14: see FIG. 3). At this time, when processing by the message application 32, that is, sending and receiving messages is executed (S16), the control program 30 generates information (hereinafter referred to as "application information") including text data of messages sent and received by the message application 32. ) is obtained from the message application 32 (S18). Note that the control program 30 also monitors the copying process to messages such as the address message 108 displayed on the LCD 16, and even when the copying process etc. to the message is executed, it is possible to check whether the copying process has been executed. is obtained from the message application 32 as application information. Here, the copy process is, for example, a process of writing the copied or cut data in the data storage area 34 such as the clipboard when the user specifies a message and performs an operation to instruct copy or cut, or An example of this process is to obtain a specified message from the message application 32 when an operation is performed to specify a shared function of the OS.

そして、制御プログラム30は、メッセージアプリケーション32からアプリ情報を取得すると、取得したアプリ情報に含まれるメッセージの学習を実行済みであるか否かを判断する(S20)。ここでは、まだメッセージの学習を実行済みでないとして説明する。制御プログラム30は、メッセージ学習は行われていないと判断する(S20:NO)。そして、学習サブルーチンが実行される(S22)。学習サブルーチンでは、図8に示すように、制御プログラム30が、アプリ情報を解析する(S120)。この際、制御プログラム30は、アプリ情報に、コピー処理が実行されたことを示す情報が含まれているか否かを判断する(S122)。 Then, upon acquiring the application information from the message application 32, the control program 30 determines whether learning of the message included in the acquired application information has been performed (S20). Here, explanation will be given assuming that message learning has not yet been executed. The control program 30 determines that message learning is not being performed (S20: NO). Then, a learning subroutine is executed (S22). In the learning subroutine, as shown in FIG. 8, the control program 30 analyzes application information (S120). At this time, the control program 30 determines whether the application information includes information indicating that the copy process has been executed (S122).

メッセージアプリケーション32を用いたメッセージの送受信では、図2に示すように、お客様から送信された宛名メッセージ108に、宛名を示す情報、つまり、宛名情報110が含まれている。このため、宛名メッセージ108を受信した者、つまり、PC10を操作しているユーザが、商品発送用のラベル印刷を行うべく、宛名メッセージ108に含まれる宛名情報110のコピー処理を指示したことに応じて、メッセージアプリケーション32やOSが上記のコピー処理を実行する。このことを考慮すると、メッセージに対するコピー処理が実行された場合には、そのコピー処理の対象となるメッセージ(以下、「コピーメッセージ」と記載する)は、宛名メッセージ108である可能性が高い。そこで、制御プログラム30は、アプリ情報に、コピー処理が実行されたことを示す情報が含まれている場合(S122:YES)に、コピーメッセージを取得する(S124)。具体的には、クリップボードに書き込まれたコピーメッセージを読み込むことによりコピーメッセージを取得したり、OSの共有機能によりメッセージアプリケーション32からコピーメッセージを取得したりする。なお、アプリ情報に、コピー処理が実行されたことを示す情報が含まれていない場合(S122:NO)には、S14に戻る。つまり、メッセージアプリケーション32の監視が継続して行われる。 When sending and receiving messages using the message application 32, as shown in FIG. 2, the address message 108 sent by the customer includes information indicating the address, that is, address information 110. Therefore, in response to a person who received the address message 108, that is, a user operating the PC 10, instructing copy processing of the address information 110 included in the address message 108 in order to print a label for shipping the product, Then, the message application 32 or the OS executes the above copy processing. Taking this into consideration, when a copy process is performed on a message, there is a high possibility that the message to be subjected to the copy process (hereinafter referred to as a "copy message") is the addressed message 108. Therefore, if the application information includes information indicating that a copy process has been executed (S122: YES), the control program 30 acquires a copy message (S124). Specifically, the copy message is acquired by reading the copy message written on the clipboard, or the copy message is acquired from the message application 32 using the sharing function of the OS. Note that if the application information does not include information indicating that the copy process has been executed (S122: NO), the process returns to S14. In other words, the message application 32 is continuously monitored.

そして、制御プログラム30は、コピーメッセージを取得すると、そのコピーメッセージに宛名情報が含まれているか否かを判断する(S126)。ここでは、コピーメッセージに氏名、郵便番号、住所の少なくとも一部が含まれていれば、宛名情報を含むと判断する。この際、コピーメッセージに宛名情報が含まれていない場合(S126:NO)には、メッセージアプリケーション32の監視が継続して行われる(S14)。一方、コピーメッセージに宛名情報が含まれている場合(S126:YES)には、そのコピーメッセージは、宛名メッセージであると判定される(S128)。そこで、制御プログラム30は、その宛名メッセージの直前にメッセージアプリケーション32から取得したメッセージを、要求メッセージとして学習する(S130)。つまり、メッセージアプリケーション32を用いたメッセージの送受信では、図2に示すように、宛名メッセージ108を受信する直前に、要求メッセージ106がお客様に送信されており、制御プログラム30は、メッセージアプリケーション32から、アプリ情報として、宛名メッセージ108を取得する直前に、要求メッセージ106を取得している。このため、制御プログラム30は、宛名メッセージの直前にメッセージアプリケーション32から取得したメッセージを、要求メッセージとして学習する。 Then, upon acquiring the copy message, the control program 30 determines whether or not the copy message includes address information (S126). Here, if the copy message includes at least part of the name, postal code, and address, it is determined that the copy message includes address information. At this time, if the copy message does not include address information (S126: NO), the message application 32 continues to be monitored (S14). On the other hand, if the copy message includes address information (S126: YES), the copy message is determined to be an address message (S128). Therefore, the control program 30 learns the message acquired from the message application 32 immediately before the addressed message as a request message (S130). That is, when sending and receiving messages using the message application 32, as shown in FIG. As application information, the request message 106 is acquired immediately before the destination message 108 is acquired. Therefore, the control program 30 learns the message acquired from the message application 32 immediately before the destination message as a request message.

次に、制御プログラム30は、その要求メッセージの直前にメッセージアプリケーション32から取得したメッセージを、入金済みメッセージ104として学習する(S132)。つまり、メッセージアプリケーション32を用いたメッセージの送受信では、図2に示すように、要求メッセージ106がお客様に送信される直前に、入金済みメッセージ104を受信しており、制御プログラム30は、メッセージアプリケーション32から、アプリ情報として、要求メッセージ106を取得する直前に、入金済みメッセージ104を取得している。このため、制御プログラム30は、要求メッセージの直前にメッセージアプリケーション32から取得したメッセージを、入金済みメッセージとして学習する。これにより、メッセージアプリケーション32から取得したメッセージの学習が終了し、学習サブルーチンが終了する。 Next, the control program 30 learns the message obtained from the message application 32 immediately before the request message as the deposited message 104 (S132). That is, when sending and receiving messages using the message application 32, as shown in FIG. , the paid-in message 104 is acquired as application information immediately before the request message 106 is acquired. Therefore, the control program 30 learns the message obtained from the message application 32 immediately before the request message as a paid-in message. As a result, learning of the message acquired from the message application 32 is completed, and the learning subroutine is ended.

学習サブルーチンが終了すると、テンプレート選択サブルーチンが実行される(S24:図3参照)。テンプレート選択サブルーチンでは、図9に示すように、制御プログラム30がコピーメッセージを解析する(S150)。この際、制御プログラム30は、コピーメッセージの言語が日本語であるか否かを判断する(S152)。そして、コピーメッセージの言語が日本語である場合(S152:YES)に、データ記憶領域34に記憶されている複数種類の郵便用の宛名のテンプレートのなかから、日本国内の郵便用の宛名のテンプレートが選択される(S154)。一方、コピーメッセージの言語が日本語以外である場合(S152:NO)に、データ記憶領域34に記憶されている複数種類の郵便用の宛名のテンプレートのなかから、国際郵便用の宛名のテンプレートが選択される(S156)。 When the learning subroutine ends, a template selection subroutine is executed (S24: see FIG. 3). In the template selection subroutine, as shown in FIG. 9, the control program 30 analyzes the copy message (S150). At this time, the control program 30 determines whether the language of the copy message is Japanese (S152). If the language of the copy message is Japanese (S152: YES), a postal address template in Japan is selected from among multiple types of postal address templates stored in the data storage area 34. is selected (S154). On the other hand, if the language of the copy message is other than Japanese (S152: NO), an international mail address template is selected from among the multiple types of postal address templates stored in the data storage area 34. It is selected (S156).

このように、日本国内の郵便用と国際郵便用との何れかの宛名のテンプレートが選択されると、制御プログラム30は、コピーメッセージから宛名情報を抽出する(S158)。そして、制御プログラム30は、抽出した宛名情報に電話番号が含まれているか否かを判断する(S160)。この際、宛名情報に電話番号が含まれていない場合(S160:NO)に、制御プログラム30は、先に選択している日本国内の郵便用と国際郵便用との何れかの宛名のテンプレートから、電話番号の記入欄を含むテンプレートを除外する(S162)。そして、制御プログラム30は、その電話番号の記入欄を含むテンプレートを除外した宛名のテンプレート、つまり、先に選択している日本国内の郵便用と国際郵便用との何れかの宛名のテンプレートのうちの、電話番号の記入欄を含まないテンプレートを、テンプレート選択画面としてLCD16に表示する(S164)。 In this way, when either the address template for domestic mail or international mail is selected, the control program 30 extracts address information from the copy message (S158). Then, the control program 30 determines whether the extracted address information includes a telephone number (S160). At this time, if the address information does not include a telephone number (S160: NO), the control program 30 selects one of the previously selected address templates for domestic mail and international mail. , exclude templates that include a telephone number entry field (S162). Then, the control program 30 selects an address template excluding the template including the telephone number entry field, that is, one of the previously selected address templates for domestic mail and international mail. The template that does not include a field for entering a telephone number is displayed on the LCD 16 as a template selection screen (S164).

一方、宛名情報に電話番号が含まれている場合(S160:YES)に、制御プログラム30は、先に選択している日本国内の郵便用と国際郵便用との何れかの宛名のテンプレートから、電話番号の記入欄を含まないテンプレートを除外する(S163)。そして、制御プログラム30は、その電話番号の記入欄を含まないテンプレートを除外した宛名のテンプレート、つまり、先に選択している日本国内の郵便用と国際郵便用との何れかの宛名のテンプレートのうちの、電話番号の記入欄を含むテンプレートを、テンプレート選択画面としてLCD16に表示する(S164)。そして、テンプレート選択画面がLCD16に表示され、そのテンプレート選択画面において、ユーザ操作により任意のテンプレートが選択されると(S166:YES)、テンプレート選択サブルーチンが終了する。 On the other hand, if the address information includes a telephone number (S160: YES), the control program 30 selects one of the previously selected address templates for domestic mail and international mail. Templates that do not include a field for entering a telephone number are excluded (S163). Then, the control program 30 creates an address template excluding templates that do not include the telephone number entry field, that is, an address template for either domestic mail or international mail that has been selected previously. The template including the telephone number entry field is displayed on the LCD 16 as a template selection screen (S164). Then, a template selection screen is displayed on the LCD 16, and when an arbitrary template is selected by user operation on the template selection screen (S166: YES), the template selection subroutine ends.

テンプレート選択サブルーチンが終了すると、制御プログラム30は、S166の処理で選択されたテンプレート(以下、「選択テンプレート」と記載する)に、宛名情報に基づく宛名を配置する場合に、不足する宛名が存在するか否かを判断する(S26:図4参照)。つまり、例えば、電話番号の記入欄を含まない宛名のテンプレートは、郵便番号の記入欄と、住所の記入欄と、氏名の記入欄とにより構成されており、宛名情報に基づく宛名として、郵便番号と住所と氏名とが必要である。このため、このような場合に、制御プログラム30は、宛名情報に基づく宛名に、郵便番号と住所と氏名とが含まれているか否かを判断する。そして、宛名情報に基づく宛名に、郵便番号と住所と氏名とが含まれている場合に、不足する宛名は存在しないと判断され、宛名情報に基づく宛名に、郵便番号と住所と氏名とが含まれていない場合に、不足する宛名情報が存在すると判断される。また、宛名情報に基づく宛名に、郵便番号と住所と氏名とが含まれているが、その少なくとも1つの一部が欠けている場合(例えば、市区まで記載されているが町名が記載されていない場合)にも、不足する宛名情報が存在すると判断される。 When the template selection subroutine ends, the control program 30 determines that there is a missing address when placing an address based on the address information in the template selected in the process of S166 (hereinafter referred to as "selected template"). It is determined whether or not (S26: see FIG. 4). In other words, for example, a template for an address that does not include a field for entering a telephone number is composed of a field for entering a postal code, a field for entering an address, and a field for entering a name. Address and name are required. Therefore, in such a case, the control program 30 determines whether the address based on the address information includes a postal code, address, and name. If the address based on the address information includes the postal code, address, and name, it is determined that there is no missing address, and the address based on the address information includes the postal code, address, and name. If not, it is determined that missing address information exists. In addition, if the address based on the address information includes the postal code, address, and name, but at least one part of them is missing (for example, the city and ward are listed, but the town name is not included. Even if there is no address information, it is determined that the missing address information exists.

そして、不足する宛名が存在すると判断されると(S26:YES)、制御プログラム30は、不足する宛名の入力を要求する画面(以下、「入力要求画面」と記載する)をLCD16に表示する(S28)。この入力要求画面の表示により、選択テンプレートに宛名を配置するために、宛名が不足していることをユーザが認識し、その不足している宛名が入力される(S29)。これにより、選択テンプレートに宛名を配置するために必要な全ての宛名が揃う。そして、制御プログラム30は、選択テンプレートに、宛名情報に基づく宛名と、新たに入力された宛名とを配置した宛名印刷用データを作成する(S30)。一方、不足する宛名は存在しないと判断されると(S26:NO)、制御プログラム30は、選択テンプレートに、宛名情報に基づく宛名を配置した宛名印刷用データを作成する(S30)。 If it is determined that the missing address exists (S26: YES), the control program 30 displays on the LCD 16 a screen (hereinafter referred to as "input request screen") requesting input of the missing address ( S28). By displaying this input request screen, the user recognizes that there is a shortage of addresses to place in the selected template, and inputs the missing addresses (S29). As a result, all the addresses necessary for arranging the addresses in the selected template are collected. Then, the control program 30 creates address printing data in which the address based on the address information and the newly input address are arranged in the selected template (S30). On the other hand, if it is determined that there is no missing address (S26: NO), the control program 30 creates address printing data in which the address based on the address information is arranged in the selected template (S30).

そして、制御プログラム30は、宛名印刷用データを作成すると、その宛名印刷用データに基づく画像を、図12に示すように、プレビュー画像150としてLCD16に表示する(S32)。なお、プレビュー画像150が表示されている画面では、印刷ボタン152も表示されており、その印刷ボタン152が操作されることで(S34:YES)、制御プログラム30は、宛名印刷用データをプリンタ50に送信する(S36)。これにより、プリンタ50では、宛名印刷用データに基づいて、商品発送用のラベル印刷処理が実行される(S38)。そして、プリンタ50による印刷処理が完了すると、プリンタ50からPC10に印刷処理の結果、つまり、適切な印刷処理が完了した旨の通知、若しくは、印刷処理時にエラーが発生した旨の通知が送信される(S40)。この送信に伴って、制御プログラム30は、受信した印刷結果をLCD16に表示する(S42)。そして、制御プログラム30によるメッセージアプリケーション32の監視が継続して行われる(S14:図3参照)。 After creating the address printing data, the control program 30 displays an image based on the address printing data as a preview image 150 on the LCD 16, as shown in FIG. 12 (S32). Note that a print button 152 is also displayed on the screen where the preview image 150 is displayed, and when the print button 152 is operated (S34: YES), the control program 30 transfers the address printing data to the printer 50. (S36). As a result, the printer 50 executes a label printing process for shipping the product based on the address printing data (S38). When the printing process by the printer 50 is completed, the printer 50 sends a result of the printing process to the PC 10, that is, a notification that the appropriate printing process has been completed, or a notification that an error has occurred during the printing process. (S40). Along with this transmission, the control program 30 displays the received print result on the LCD 16 (S42). Then, the message application 32 is continuously monitored by the control program 30 (S14: see FIG. 3).

また、上述したように、学習サブルーチン(S22:図3参照)において、メッセージの学習が行われた後に、制御プログラム30が、メッセージアプリケーション32からアプリ情報を取得すると(S18:図3参照)、S20の処理において、メッセージ学習は行われていると判断される。このように、メッセージ学習が行われていると判断されると(S20:YES)、制御プログラム30は、アプリ情報を解析する(S50:図5参照)。この際、制御プログラム30は、アプリ情報に商品に関する情報(以下、「商品情報」と記載する)が含まれているか否かを判断する(S52)。メッセージアプリケーション32を用いたメッセージの送受信では、図2に示すように、お客様から送信された注文メッセージ100には、商品番号,注文個数などの商品情報が含まれている。このため、メッセージアプリケーション32が注文メッセージ100を受信した際に、制御プログラム30は、注文メッセージ100を含むアプリ情報を、メッセージアプリケーション32から取得し、取得したアプリ情報に商品情報が含まれていると判断する(S52:YES)。この際、制御プログラム30は、データ記憶領域34に記憶されている複数種類の宛名のテンプレートから、商品情報に応じた宛名のテンプレートを選択する(S54)。 Further, as described above, after message learning is performed in the learning subroutine (S22: see FIG. 3), when the control program 30 acquires application information from the message application 32 (S18: see FIG. 3), S20 In this process, it is determined that message learning is being performed. In this way, when it is determined that message learning is being performed (S20: YES), the control program 30 analyzes the application information (S50: see FIG. 5). At this time, the control program 30 determines whether or not the application information includes information regarding the product (hereinafter referred to as "product information") (S52). When sending and receiving messages using the message application 32, as shown in FIG. 2, the order message 100 sent by the customer includes product information such as the product number and the number of items ordered. Therefore, when the message application 32 receives the order message 100, the control program 30 acquires the application information including the order message 100 from the message application 32, and determines that the acquired application information includes product information. Determine (S52: YES). At this time, the control program 30 selects an address template according to the product information from a plurality of types of address templates stored in the data storage area 34 (S54).

具体的には、データ記憶領域34には、注文された商品のサイズと、注文個数とに応じて、商品を封書で送付可能であるか否かを示すマップデータが記憶されている。そして、制御プログラム30は、商品情報に応じた商品を封書で送付可能であるか否かを、マップデータに基づいて判断する。この際、商品情報に応じた商品を封書で送付可能であると判断された場合に、制御プログラム30は、データ記憶領域34に記憶されている複数種類の宛名のテンプレートから、封書用の宛名のテンプレートを選択する。一方、商品情報に応じた商品を封書で送付不能であると判断された場合に、制御プログラム30は、データ記憶領域34に記憶されている複数種類の宛名のテンプレートから、小包用の宛名のテンプレートを選択する。そして、封書用と小包用との何れかの宛名のテンプレートが選択されると、S56に進む。一方、アプリ情報に商品情報が含まれていないと判断された場合(S52:NO)に、S54の処理、つまり、商品情報に応じた宛名のテンプレートの選択処理がスキップされ、S56に進む。 Specifically, the data storage area 34 stores map data indicating whether or not the product can be sent in a sealed letter, depending on the size of the ordered product and the number of items ordered. Then, the control program 30 determines based on the map data whether or not the product according to the product information can be sent in a sealed letter. At this time, if it is determined that the product according to the product information can be sent in a sealed letter, the control program 30 selects the address for the sealed letter from templates of multiple types of addresses stored in the data storage area 34. Select a template. On the other hand, if it is determined that the product according to the product information cannot be sent in a sealed letter, the control program 30 selects a parcel address template from among multiple types of address templates stored in the data storage area 34. Select. Then, when either the template for the envelope address or the address template for the parcel is selected, the process advances to S56. On the other hand, if it is determined that the product information is not included in the application information (S52: NO), the process of S54, that is, the process of selecting an address template according to the product information, is skipped, and the process advances to S56.

S56では、制御プログラム30は、メッセージアプリケーション32から取得したアプリ情報に入金済みメッセージが含まれているか否かを判断する(S56)。つまり、学習サブルーチンのS132(図8参照)において学習された入金済みメッセージと同様のメッセージが、アプリ情報に含まれているか否かを判断する。この際、学習された入金済みメッセージと同様のメッセージが、アプリ情報に含まれていない場合(S56:NO)に、制御プログラム30によるメッセージアプリケーション32の監視が継続して行われる(S14:図3参照)。 In S56, the control program 30 determines whether the application information acquired from the message application 32 includes a deposited message (S56). That is, it is determined whether the application information includes a message similar to the deposited message learned in S132 of the learning subroutine (see FIG. 8). At this time, if a message similar to the learned paid-in message is not included in the application information (S56: NO), the control program 30 continues to monitor the message application 32 (S14: FIG. reference).

一方、学習された入金済みメッセージと同様のメッセージが、アプリ情報に含まれている場合(S56:YES)に、制御プログラム30は、要求メッセージを作成する(S58)。つまり、アプリ情報に入金済みメッセージが含まれている場合には、お客様から入金済みメッセージが送信されており、メッセージアプリケーション32は入金済みメッセージを受信している。このため、お客様に要求メッセージを送信する必要があり、制御プログラム30が要求メッセージを作成する。なお、制御プログラム30は、学習サブルーチンのS130(図8参照)において学習した要求メッセージと同様のメッセージを、要求メッセージとして作成する。 On the other hand, if a message similar to the learned paid-in message is included in the application information (S56: YES), the control program 30 creates a request message (S58). In other words, if the application information includes a deposited message, the customer has sent the deposited message, and the message application 32 has received the deposited message. Therefore, it is necessary to send a request message to the customer, and the control program 30 creates the request message. Note that the control program 30 creates a message similar to the request message learned in S130 of the learning subroutine (see FIG. 8) as a request message.

そして、制御プログラム30は、作成した要求メッセージをメッセージアプリケーション32に出力する(S60)。これにより、メッセージアプリケーション32は、制御プログラム30から出力された要求メッセージをお客様に送信する(S62)。つまり、制御プログラム30においてメッセージ学習が実行されると、ユーザが要求メッセージを作成しなくても、制御プログラム30が自動で要求メッセージを作成し、その要求メッセージが自動でお客様に送信される。なお、制御プログラム30でのメッセージ学習が実行される前には、ユーザが要求メッセージを入力し、入力した要求メッセージの送信処理を行う必要がある。また、入金依頼メッセージに関しては、制御プログラム30によるメッセージ学習の有無に関わらず、ユーザが入金依頼メッセージを入力し、入力した入金依頼メッセージの送信処理を行う必要がある。 Then, the control program 30 outputs the created request message to the message application 32 (S60). Thereby, the message application 32 transmits the request message output from the control program 30 to the customer (S62). That is, when message learning is executed in the control program 30, the control program 30 automatically creates a request message, and the request message is automatically sent to the customer, even if the user does not create a request message. Note that before message learning is executed by the control program 30, the user needs to input a request message and perform a process of transmitting the input request message. Regarding the deposit request message, regardless of whether or not the control program 30 has learned the message, it is necessary for the user to input the deposit request message and perform a process for transmitting the input deposit request message.

また、お客様は要求メッセージの受信に応じて、宛名メッセージを送信するため、メッセージアプリケーション32は、お客様から宛名メッセージを受信する(S64)。この際、制御プログラム30は、その宛名メッセージをメッセージアプリケーション32から取得する(S66)。そして、テンプレート選択サブルーチンが実行される(S68)。なお、S68でのテンプレート選択サブルーチンでは、先に説明したテンプレート選択サブルーチン、つまり、S24(図3参照)でのテンプレート選択サブルーチンと略同じであるため、異なるステップのみ、説明する。まず、S68でのテンプレート選択サブルーチンでは、図9に示すように、S150において、制御プログラム30は、S66(図5参照)で取得した宛名メッセージを解析する。そして、その宛名メッセージの言語が日本語である場合(S152:YES)に、制御プログラム30は、S54(図5参照)で選択されている封書用と小包用との何れかの宛名のテンプレートのなかから、日本国内の郵便用の宛名のテンプレートを選択する(S154)。一方、宛名メッセージの言語が日本語以外である場合(S152:NO)に、制御プログラム30は、S54(図5参照)で選択されている封書用と小包用との何れかの宛名のテンプレートのなかから、国際郵便用の宛名のテンプレートを選択する(S156)。また、S158において、制御プログラム30は、S66(図5参照)で取得した宛名メッセージから宛名情報を抽出する。なお、それらS150~S156以外のステップの説明は、S68(図5参照)でのテンプレート選択サブルーチンと、S24(図3参照)でのテンプレート選択サブルーチンと同じである。このため、S68でのテンプレート選択サブルーチンにおいて、S66(図5参照)で取得した要求メッセージに含まれる宛名情報に基づく宛名を配置可能なテンプレートが選択される。 Furthermore, since the customer sends a addressed message in response to receiving the request message, the message application 32 receives the addressed message from the customer (S64). At this time, the control program 30 obtains the addressed message from the message application 32 (S66). Then, a template selection subroutine is executed (S68). The template selection subroutine at S68 is substantially the same as the template selection subroutine described above, that is, the template selection subroutine at S24 (see FIG. 3), so only the different steps will be described. First, in the template selection subroutine at S68, as shown in FIG. 9, at S150, the control program 30 analyzes the address message acquired at S66 (see FIG. 5). Then, if the language of the address message is Japanese (S152: YES), the control program 30 selects either the envelope address template or the parcel address template selected in S54 (see FIG. 5). From among them, a template for postal addresses within Japan is selected (S154). On the other hand, if the language of the address message is other than Japanese (S152: NO), the control program 30 selects either the address template for envelopes or parcels selected in S54 (see FIG. 5). An address template for international mail is selected from among them (S156). Further, in S158, the control program 30 extracts address information from the address message acquired in S66 (see FIG. 5). Note that the description of steps other than S150 to S156 is the same as the template selection subroutine in S68 (see FIG. 5) and the template selection subroutine in S24 (see FIG. 3). Therefore, in the template selection subroutine in S68, a template in which an address can be placed based on the address information included in the request message acquired in S66 (see FIG. 5) is selected.

そして、S68でのテンプレート選択サブルーチンが終了すると、つまり、S66(図5参照)で取得した宛名メッセージに含まれる宛名情報に基づく宛名を配置可能なテンプレートが選択されると、制御プログラム30は、その選択されたテンプレートに、宛名メッセージに含まれる宛名情報に基づく宛名を配置する場合に、不足する宛名が存在するか否かを判断する(S70:図6参照)。なお、S70での判断処理は、S26(図4参照)での判断処理と同じである。 Then, when the template selection subroutine in S68 ends, that is, when a template in which an address can be placed based on the address information included in the address message obtained in S66 (see FIG. 5) is selected, the control program 30 When arranging addresses based on the address information included in the address message in the selected template, it is determined whether there are any missing addresses (S70: see FIG. 6). Note that the determination process in S70 is the same as the determination process in S26 (see FIG. 4).

そして、不足する宛名が存在すると判断されると(S70:YES)、制御プログラム30は、不足する宛名の入力を要求するメッセージ(以下、「不足宛名要求メッセージ」と記載する)のお客様への送信依頼をメッセージアプリケーション32に出力する(S72)。これにより、メッセージアプリケーション32は、不足宛名要求メッセージをお客様に送信する(S74)。また、お客様は不足宛名要求メッセージの受信に応じて、不足している宛名に関する情報(以下、「不足宛名情報」と記載する)を送信するため、メッセージアプリケーション32は、お客様から不足宛名情報を受信する(S76)。この際、制御プログラム30は、その不足宛名情報をメッセージアプリケーション32から取得する(S78)。 If it is determined that there is a missing address (S70: YES), the control program 30 sends a message to the customer requesting input of the missing address (hereinafter referred to as "insufficient address request message"). The request is output to the message application 32 (S72). As a result, the message application 32 sends an insufficient address request message to the customer (S74). Additionally, in response to receiving the missing address request message, the customer sends information regarding the missing address (hereinafter referred to as "missing address information"), so the message application 32 receives the missing address information from the customer. (S76). At this time, the control program 30 acquires the missing address information from the message application 32 (S78).

そして、制御プログラム30は、選択テンプレートに、宛名情報に基づく宛名と、不足宛名情報に基づく宛名とを配置した宛名印刷用データを作成する(S80)。一方、不足する宛名は存在しないと判断されると(S70:NO)、制御プログラム30は、選択テンプレートに、宛名情報に基づく宛名を配置した宛名印刷用データを作成する(S80)。このように、宛名印刷用データが作成されると、S32(図4参照)以降の処理が実行される。つまり、宛名印刷用データに基づくプレビュー画像150が表示され、印刷ボタン152が操作されることで、宛名印刷用データがプリンタ50に送信され、プリンタ50により商品発送用のラベル印刷処理が実行される。 Then, the control program 30 creates address printing data in which an address based on the address information and an address based on the missing address information are arranged in the selected template (S80). On the other hand, if it is determined that there is no missing address (S70: NO), the control program 30 creates address printing data in which the address based on the address information is arranged in the selected template (S80). Once the address printing data is created in this way, the processes from S32 (see FIG. 4) onwards are executed. That is, a preview image 150 based on address printing data is displayed, and by operating the print button 152, the address printing data is sent to the printer 50, and the printer 50 executes a label printing process for shipping the product. .

このように、プリンタシステム1では、宛名メッセージに含まれる宛名情報に基づいて、その宛名情報に基づく宛名を配置可能なテンプレートが自動で選択される。これにより、ユーザが、宛名情報に基づく宛名を配置可能なテンプレートを検索する手間を省くことが可能となり、操作性が向上する。また、自動で検索されたテンプレートが、テンプレート選択画面において表示され、そのテンプレート選択画面において、任意のテンプレートをユーザが選択することが可能とされている。これにより、宛名情報に基づく宛名を配置可能なテンプレートのなかから、ユーザの好むテンプレートを選択することが可能となる。さらに言えば、制御プログラム30によるメッセージ学習が行われた後において、メッセージアプリケーション32で送受信されるメッセージから、自動で宛名メッセージが特定され、その宛名メッセージから自動で宛名情報が抽出される。これにより、ユーザによる宛名のコピー処理をも省くことが可能となり、操作性がさらに向上する。 In this way, in the printer system 1, based on the address information included in the address message, a template in which an address can be placed based on the address information is automatically selected. This makes it possible for the user to save time and effort in searching for templates in which addresses can be placed based on address information, thereby improving operability. Further, automatically searched templates are displayed on the template selection screen, and the user can select any template on the template selection screen. This makes it possible for the user to select a template that the user prefers from templates in which addresses can be placed based on the address information. More specifically, after message learning is performed by the control program 30, a destination message is automatically specified from messages sent and received by the message application 32, and destination information is automatically extracted from the destination message. This makes it possible to omit the process of copying addresses by the user, further improving operability.

また、制御プログラム30によるメッセージ学習が行われた後において、入金済みメッセージの受信が自動で判定され、メッセージアプリケーション32によって、要求メッセージが自動で送信される。これにより、ユーザによる要求メッセージの入力作業および送信作業を省くことが可能となり、操作性が向上する。 Further, after the control program 30 performs message learning, reception of a deposited message is automatically determined, and the message application 32 automatically transmits a request message. This makes it possible to omit the user's work of inputting and sending request messages, and improves operability.

なお、S14を実行するCPU12は、監視手段の一例である。S28を実行するCPU12は、第1出力手段の一例である。S30を実行するCPU12は、作成手段の一例である。S54を実行するCPU12は、選択手段の一例である。S60を実行するCPU12は、第2出力手段の一例である。S72を実行するCPU12は、第1出力手段の一例である。S80を実行するCPU12は、作成手段の一例である。S110を実行するCPU12は、設定手段の一例である。S154及びS156を実行するCPU12は、選択手段の一例である。S162及びS163を実行するCPU12は、選択手段の一例である。S164を実行するCPU12は、表示制御手段の一例である。 Note that the CPU 12 that executes S14 is an example of monitoring means. The CPU 12 that executes S28 is an example of the first output means. The CPU 12 that executes S30 is an example of a creation means. The CPU 12 that executes S54 is an example of a selection means. The CPU 12 that executes S60 is an example of second output means. The CPU 12 that executes S72 is an example of a first output means. The CPU 12 that executes S80 is an example of a creation means. The CPU 12 that executes S110 is an example of a setting means. The CPU 12 that executes S154 and S156 is an example of a selection means. The CPU 12 that executes S162 and S163 is an example of a selection means. The CPU 12 that executes S164 is an example of display control means.

また、本発明は、上記実施形態に限定されるものではなく、当業者の知識に基づいて種々の変更、改良を施した種々の態様で実施することが可能である。具体的には、例えば、上記実施形態では、制御プログラム30がメッセージアプリケーション32を監視し、メッセージに含まれる宛名情報に応じたテンプレートが自動で選択されているが、制御プログラム30が他の種類のアプリケーションプログラムを監視し、そのアプリケーションプログラムの処理による宛名情報に応じたテンプレートが自動で選択されてもよい。例えば、年賀状を作成するためのアプリケーションプログラムにおいて、そのアプリケーションプログラムの処理による宛名情報に応じたテンプレートが自動で選択されてもよい。 Furthermore, the present invention is not limited to the above-described embodiments, but can be implemented in various forms with various modifications and improvements based on the knowledge of those skilled in the art. Specifically, for example, in the embodiment described above, the control program 30 monitors the message application 32 and automatically selects a template according to the address information included in the message. An application program may be monitored and a template may be automatically selected according to address information processed by the application program. For example, in an application program for creating New Year's cards, a template may be automatically selected according to address information through processing of the application program.

また、上記実施形態では、メッセージのテキストデータに基づいて、テンプレートが選択されているが、テキストデータであれば、メッセージに限定されず、種々の形態のテキストのテキストデータに基づいてテンプレートが選択されてもよい。例えば、注文書,請求書等を作成するためのアプリケーションプログラムにおいて、ユーザにより入力された注文内容,請求額等のテキストのテキストデータに基づいて、テンプレートが選択されてもよい。 Further, in the above embodiment, the template is selected based on the text data of the message, but the template is not limited to messages and may be selected based on the text data of various forms of text. It's okay. For example, in an application program for creating an order form, invoice, etc., a template may be selected based on text data such as order details, invoice amount, etc. input by the user.

また、上記実施形態では、入金済みメッセージと要求メッセージとが学習されることで、要求メッセージが自動で作成され、その要求メッセージが自動で送信されているが、注文メッセージと入金依頼メッセージとが学習されることで、入金依頼メッセージが自動で作成され、その入金依頼メッセージが自動で送信されてもよい。 Further, in the above embodiment, a request message is automatically created by learning the deposited message and the request message, and the request message is automatically sent. However, the order message and the deposit request message are learned. By doing so, a deposit request message may be automatically created, and the deposit request message may be automatically transmitted.

また、上記実施形態では、PC10において宛名印刷用データが作成されて、その宛名印刷用データがプリンタ50に送信されることで、プリンタ50により宛名印刷用データに基づく印刷処理が実行されているが、プリンタ50において宛名印刷用データが作成されて、プリンタ50により宛名印刷用データに基づく印刷処理が実行されてもよい。 Further, in the above embodiment, the address printing data is created in the PC 10 and the address printing data is sent to the printer 50, so that the printer 50 executes the printing process based on the address printing data. , address printing data may be created in the printer 50, and the printer 50 may execute printing processing based on the address printing data.

また、上記実施形態では、CPU12によって図3乃至図9に示す処理が実行される例を説明したが、これら処理は、CPU12に限らず、ASICや他の論理集積回路により実行されてもよいし、これら処理が、CPU等やASIC、他の論理集積回路が協働することにより実行されてもよい。 Further, in the above embodiment, an example was explained in which the processes shown in FIGS. 3 to 9 are executed by the CPU 12, but these processes are not limited to the CPU 12, but may be executed by an ASIC or other logic integrated circuit. , these processes may be executed by the cooperation of a CPU, ASIC, or other logic integrated circuit.

10:PC、12:CPU、16:LCD、30:制御プログラム、32:メッセージアプリケーション 10: PC, 12: CPU, 16: LCD, 30: Control program, 32: Message application

Claims (5)

情報処理装置のコンピュータが読み取り可能な制御プログラムであって、
前記コンピュータを、
前記制御プログラムと異なるアプリケーションプログラムであり、前記情報処理装置と異なる装置とメッセージのテキストデータの送受信を行うための前記アプリケーションプログラムにおいて受信されたメッセージのテキストデータを監視する監視手段と、
前記監視手段により監視されたテキストデータが所定の条件を満たした場合に、当該所定の条件を満たしたテキストデータを、印刷対象のテキストデータとして前記アプリケーションプログラムら取得する取得手段と、
前記取得手段により取得されたテキストデータに基づくテキストを配置可能なテンプレートのデータであるテンプレートデータを、複数のテンプレートデータから選択する選択手段と、
前記選択手段により選択されたテンプレートデータに基づくテンプレートに、前記取得手段により取得されたテキストデータに基づくテキストを配置した印刷用画像データを作成する作成手段と、
前記印刷対象のテキストデータを要求する要求メッセージの送信依頼を、前記アプリケーションプログラムに出力する第2出力手段と
して機能させ
前記取得手段は、
前記要求メッセージの送信依頼に応じて前記アプリケーションプログラムが当該要求メッセージを送信した場合に、当該要求メッセージの送信に応じて受信したメッセージのテキストデータが前記所定の条件を満たしているものとして、当該メッセージのテキストデータを、前記アプリケーションプログラムから取得することを特徴とする制御プログラム。
A computer-readable control program for an information processing device,
The computer,
a monitoring means that is an application program different from the control program and monitors text data of messages received in the application program for transmitting and receiving text data of messages with a device different from the information processing device;
acquisition means for acquiring text data that satisfies a predetermined condition from the application program as text data to be printed when the text data monitored by the monitoring means satisfies a predetermined condition ;
selection means for selecting template data from a plurality of template data, which is data of a template in which text based on the text data acquired by the acquisition means can be placed;
creating means for creating print image data in which text based on the text data acquired by the acquiring means is arranged in a template based on the template data selected by the selecting means;
a second output means for outputting to the application program a request to send a request message requesting the text data to be printed;
and make it work ,
The acquisition means is
When the application program transmits the request message in response to a request to transmit the request message, the text data of the message received in response to the transmission of the request message satisfies the predetermined condition. A control program that obtains text data from the application program .
前記選択手段は、
前記取得手段により取得されたテキストデータに基づくテキストの言語に応じたテンプレートのテンプレートデータを、複数のテンプレートデータから選択することを特徴とする請求項1に記載の制御プログラム。
The selection means is
2. The control program according to claim 1, wherein template data of a template corresponding to the language of the text based on the text data acquired by the acquisition means is selected from a plurality of template data.
前記コンピュータを、
前記選択手段により複数のテンプレートデータが選択された場合に、当該複数のテンプレートデータの中から任意のテンプレートデータを選択するための選択画面を、前記情報処理装置のディスプレイに表示させる表示制御手段として機能させることを特徴とする請求項1又は2に記載の制御プログラム。
The computer,
Functions as display control means for displaying a selection screen for selecting arbitrary template data from among the plurality of template data on the display of the information processing device when a plurality of template data are selected by the selection means. 3. The control program according to claim 1, wherein the control program performs the following operations.
前記コンピュータを、
前記選択手段により選択されたテンプレートデータに基づくテンプレートに、前記取得手段により取得されたテキストデータに基づくテキストを配置するために、テキストに不足が生じている場合に、不足しているテキストの要求を出力する第1出力手段として機能させることを特徴とする請求項1乃至3の何れか1項に記載の制御プログラム。
The computer,
In order to arrange the text based on the text data acquired by the acquisition means in the template based on the template data selected by the selection means, when there is a shortage of text, a request for the missing text is made. The control program according to any one of claims 1 to 3, characterized in that the control program functions as a first output means for outputting.
前記コンピュータを、
前記アプリケーションプログラムを監視対象のプログラムとして設定する設定手段として機能させ、
前記監視手段は、
前記設定手段により設定された前記アプリケーションプログラムで処理されるテキストデータを監視することを特徴とする請求項乃至の何れか1項に記載の制御プログラム。
The computer,
Functioning as a setting means for setting the application program as a program to be monitored,
The monitoring means includes:
5. The control program according to claim 1 , wherein the control program monitors text data processed by the application program set by the setting means.
JP2019144999A 2019-08-07 2019-08-07 control program Active JP7354661B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019144999A JP7354661B2 (en) 2019-08-07 2019-08-07 control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019144999A JP7354661B2 (en) 2019-08-07 2019-08-07 control program

Publications (2)

Publication Number Publication Date
JP2021026578A JP2021026578A (en) 2021-02-22
JP7354661B2 true JP7354661B2 (en) 2023-10-03

Family

ID=74663119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019144999A Active JP7354661B2 (en) 2019-08-07 2019-08-07 control program

Country Status (1)

Country Link
JP (1) JP7354661B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259302A (en) 2001-02-28 2002-09-13 Sharp Corp Information processor
JP2008305278A (en) 2007-06-08 2008-12-18 Noritsu Koki Co Ltd Data processor, storefront terminal therewith and data processing program
JP2011022932A (en) 2009-07-17 2011-02-03 Noritsu Koki Co Ltd Template posting system, photographic print order system and template creating program
JP2019057093A (en) 2017-09-20 2019-04-11 富士ゼロックス株式会社 Information processor and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08290629A (en) * 1995-04-25 1996-11-05 Nec Corp Printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259302A (en) 2001-02-28 2002-09-13 Sharp Corp Information processor
JP2008305278A (en) 2007-06-08 2008-12-18 Noritsu Koki Co Ltd Data processor, storefront terminal therewith and data processing program
JP2011022932A (en) 2009-07-17 2011-02-03 Noritsu Koki Co Ltd Template posting system, photographic print order system and template creating program
JP2019057093A (en) 2017-09-20 2019-04-11 富士ゼロックス株式会社 Information processor and program

Also Published As

Publication number Publication date
JP2021026578A (en) 2021-02-22

Similar Documents

Publication Publication Date Title
US20180198930A1 (en) Input/output device and information processing system
JP4743260B2 (en) Printer
JP7367431B2 (en) Programs and information processing equipment
US20200314250A1 (en) Image processing apparatus, method for controlling the same, and storage medium
US20210075919A1 (en) Image processing apparatus, image processing system, image processing method, and storage medium
JP2014002532A (en) Control device
JP2017173892A (en) Information processing device, program, and printing system
US9965235B2 (en) Multi-function peripheral and non-transitory computer-readable recording medium storing computer-readable instructions causing device to execute workflow
US11171954B2 (en) Server and non-transitory computer-readable recording medium storing computer-readable instructions for server
JP2019040564A (en) Printer driver, and information processing device
JP7354661B2 (en) control program
JP2021036397A (en) Control program and information processing device
JP6950391B2 (en) Control program and image data creation module
JP7367432B2 (en) program
US10116640B2 (en) Image processing system, image processing device, and authentication method
JP7047504B2 (en) Job system, job execution method, information processing device, program
JP2020161013A (en) Control program
JP6759620B2 (en) program
JP2021002245A (en) Control program and information processor
JP4645349B2 (en) Information processing apparatus and program
US20230132868A1 (en) Information processing apparatus, information processing system, non-transitory computer readable medium storing information processing program, and information processing method
JP2019128691A (en) Control program and program group
US11449282B2 (en) Control device configured to cause print executing unit to print and non-transitory computer-readable recording medium storing computer readable instructions for control device
JP6048535B2 (en) Server, printer, and computer program for server
US20220198184A1 (en) Information processing apparatus and non-transitory computer readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220726

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230509

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230705

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230822

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230904

R150 Certificate of patent or registration of utility model

Ref document number: 7354661

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150