Tuesday 16 December 2014

USB Remote v1.21

Here's what's new in latest update:


Auto connect:

When enabled (Settings -> Auto connect), application will automatically try to connect when launched or resumed. Auto connect won't be triggered when connection is lost while using the app.


Fixed mousepad bug:

Accidental clicks that appeared when using mousepad (fast finger movements) are now eliminated.


New mouse macro actions:

To make manual macro editing simpler, I've introduced following macro actions:
  • <click>button, clicks, example: <click>left, 2
  • <move>x,y, example: <move>10, -15
  • <scroll>z, example: <scroll>5


Text editor shortcut:

If macro is stored as a text file, it can be now easily opened in text editor:



"Pause" macro action:

When "pause" action is used, macro execution will be paused until "Yes" button is clicked. This can be useful when you need to wait for some time consuming operation (like starting an application or opening a file on USB host) to finish before proceeding with macro execution.

When recording a macro, use "Timer"icon to add "pause" action.

 



Autoexec macro:

If /USBRemote/Macros/autoexec.txt macro file is present it can be automatically executed as soon as connection is established. Useful for time critical situations, like entering BIOS before OS starts to boot. Checkbox "Run autoexec macro?" must be checked (each time) before connection is established. The checkbox won't be visible if autoexec.txt is not present.

Note: "pause" macro actions will be ignored in this case.


Thursday 11 December 2014

USB Remote v1.20

I've just uploaded v1.20 to Google Play. Here's what's new:


InputStick (Type):

Now you can use InputStick to type: text files, phone numbers, URLs, email addresses etc (anything text/plain for SEND and VIEW actions).



This is definitely useful when your bank sends authentication codes via SMS: just long press on received code, choose share option and select "InputStick (type)":


If you don't want "InputStick (type)" to appear on list of available actions, it can be disabled in settings. There are also some other things that can be adjusted:
  • Auto connect - if InputStick is not connected,application will automatically try to establish connection.
  • Auto type - will start typing text automatically. Be careful with this!
  • Auto close - activity will close itself as soon as it is done with typing text.


Export macros:

Macros can be now exported to .txt files in /USBRemote/Macros/ location. You can edit such macro file using any text editor (on your phone or on PC). You can also send such files to some other device.
Note: after editing such file, it has to be imported into internal database (or you can entirely switch to use file system for storing macros, more details later).



Import macros:

Macros from /USBRemote/Macros/ directory can be imported into internal macro database. 



File system storage:

You can also set /USBRemote/Macros/ directory as a default storage location for macros. In Settings screen, click on Macro storage and choose: File system (.txt files).

In such case internal database won't be used. You'll probably want to export your macros before switching to this option. Now it is no longer necessary to do anything after editing such macro, it will be loaded from file before executing.




Macro file format:

Here's an example of macro file (I'll cover this in more details in a separate post):

#begin of file (demo.txt)
#just a comment line

#display name for the macro:
<name>DemoMacro

#type text, *only single line*
<type>hello
#press key, use standard US key labels
<press>enter
<type>world

#delay in ms
<delay>500

#press key combination:
<press>ctrl+s
<d>3000
<press>esc

#wait until all interface buffers are empty
#in this case: make sure that "Ecs" was received by USB host, before executing any mouse

action
<sync>

#mouse click: button (left, right, middle), how many times
<click>right 1
#move mouse left & down:
<mouse>0, -20, 10, 0
#scroll up:
<mouse>0, 0, 0, 5
#press left button (and hold)
<mouse>1, 0, 0, 0
<delay>3000
#release:
<mouse>0, 0, 0, 0


#consumer control actions: volup, voldown, mute, prev, next, play, stop
<consumer>mute
<delay>3000
#unmute:
<consumer>mute
#end of file


Other changes:

There are also some UI changes. Last but not least, new line and tab characters are now supported when typing text.