Difference between revisions of "Trigger: USB Device Connect/Disconnect"

m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
This trigger will fire when a USB peripheral device such as a keyboard, mouse or USB memory stick is connected/disconnected from the Android phone/tablet.
 
This trigger will fire when a USB peripheral device such as a keyboard, mouse or USB memory stick is connected/disconnected from the Android phone/tablet.
  
 
Note that this trigger will not fire in the case where the Android device is connected to a PC or similar.
 
Note that this trigger will not fire in the case where the Android device is connected to a PC or similar.
 
</pre>
 
</pre>
<br>
+
* ''When this trigger is present, you can use more [...]'' ''[https://macrodroidforum.com/wiki/index.php/Magic_text#USB_device_connected magic text]''
'''Example Usage'''<br/>
 
If the USB device is connected, open the file manager.
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
 
 
USB device connected
 
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
 
 
Launch app (File manager)
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constraints
 
 
 
 
 
</pre><br>
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
 
 
 
 
</pre><br>
 

Latest revision as of 17:19, 29 January 2024

This trigger will fire when a USB peripheral device such as a keyboard, mouse or USB memory stick is connected/disconnected from the Android phone/tablet.

Note that this trigger will not fire in the case where the Android device is connected to a PC or similar.
  • When this trigger is present, you can use more [...] magic text