主权项 |
1. A non-transitory computer-readable storage medium storing a computer program that, when executed by a processing unit of a wireless communication device, causes the wireless communication device to perform steps comprising:
displaying, by the wireless communication device, a preview screen of data selected for printing; detecting an image forming apparatus by way of a short-range communication protocol; determining that the wireless communication device detects the image forming apparatus by way of the short-range communication protocol, wherein in a state where a transition has occurred from the wireless communication device not detecting the image forming apparatus to the wireless communication device detecting the image forming apparatus, hiding, by a second computer program, the preview screen and displaying an input screen on the wireless communication device, wherein the input screen includes a first prompt for a user to provide a first input to cause the wireless communication device to start communication with the image forming apparatus by a wireless communication protocol; in response to determining that the wireless communication device no longer detects the image forming apparatus by way of the short-range communication protocol: hiding the input screen, and displaying a message on the wireless communication device, the message including an operation to be performed by the user using the wireless communication device to reestablish communication between the wireless communication device and the image forming apparatus using the short-range communication protocol; in response to the first input being received by the wireless communication device when the input screen is displayed after detecting the image forming apparatus by way of the short-range communication protocol, hiding the input screen, redisplaying the preview screen, starting to communicate with the image forming apparatus by the wireless communication protocol, and communicating, by the short-range communication protocol and the wireless communication protocol different from the short-range communication protocol, with the image forming apparatus to enable the image forming apparatus to execute a printing function, the communicating including transmitting image data from the wireless communication device to the image forming apparatus using the wireless communication protocol different from the short-range communication protocol, starting a timer in a state that the second computer program has caused the input screen to be displayed on the wireless communication device and prior to the image forming apparatus executing the printing function, the input screen being displayed based on the wireless communication device detecting the image forming apparatus using the short-range communication protocol; and in response to the timer having elapsed, displaying the message on the wireless communication device regarding communication between the wireless communication device and the image forming apparatus using the short-range communication protocol. |