A non-transitory computer-readable medium storing an application program including computer-readable instructions for a communication apparatus, wherein the computer-readable instructions, when executed by a processor mounted on the communication apparatus, cause the communication apparatus to perform:
- receiving, from a function performing apparatus different from the communication apparatus, scanner information including network information to be used in a wireless network to which both the communication apparatus and the function performing apparatus are to belong and an activation instruction for activating the application program on the communication apparatus related to the function performing apparatus performing scanning, via a first interface of the communication apparatus, the wireless network being a network for performing wireless communication between the communication apparatus and the function performing apparatus via a second interface of the communication apparatus, the first interface being an interface configured to perform wireless communication in accordance with a first scheme, and the second interface being an interface configured to perform wireless communication in accordance with a second scheme different from the first scheme;
- receiving related information related to a state of the function performing apparatus from the function performing apparatus via at least one of the first interface and the second interface;
- sending a scan performing instruction to the function performing apparatus via the second interface by using the wireless network, in a first case where the received related information is placed related information, even if an instruction related to starting of a scanning is not given by a user to any of the function performing apparatus and the communication apparatus after a communication session has been established by using the first interface, the placed related information being information related to a placed state, and the placed state being a state where a document is being placed on the function performing apparatus;
- not sending the scan performing instruction to the function performing apparatus, in a second case where the received related information is non-placed related information, the non-placed related information being information related to a non-placed state, the non-placed state being a state where the document is not being placed on the function performing apparatus;
- and
- receiving image data from the function performing apparatus via the second interface by using the wireless network after the scan performing instruction has been sent to the function performing apparatus, the image data being created by the function performing apparatus scanning the document.