Sean Wenzel
Home Mouse Grid Password Manager Advanced Scripting Dictation Box HTML by voice Hippocampus




A simple way to move windows and place them where you want by voice

This a quick and easy way to drag windows around the screen completely hands-free.

Moving a window (simple)

Here is Advanced Scripting that will allow you to quickly and easily move a window around the screen. Just like clicking the window title and holding the most button-down dragging and then releasing the mouse button.

Example usage:

  • win up 20
  • window down 30
  • win left 10

MyCommand Name: <window> <direction> <1to50>
Description: move a window (simple)
Availability: Global
Command Type: Advanced Scripting

You will need to create the following lists:

<direction>
<window>
<1to100>

{mospagebreak}

And here is the script:

'
' Move a window with simple up , down, left , right commands
'
' (c) 2005 Sean Wenzel sean@wenzel.net http://sean.wenzel.net/
'
'
'' Released under the GNU General Public license
' http://www.gnu.org/licenses/copyleft.html
'
' No warranty is implied or expressed.
'
'
'
Sub Main
	SendDragonKeys "{Alt+Space}m"
	If (ListVar2 = "up") Then SendDragonKeys "{Up " + ListVar3 + "}"
	If (ListVar2 = "down") Then SendDragonKeys "{Down " + ListVar3 + "}"
	If (ListVar2 = "left") Then SendDragonKeys "{Left " + ListVar3 + "}"
	If (ListVar2 = "right") Then SendDragonKeys "{Right " + ListVar3 + "}"
	SendDragonKeys "{Enter}"
End Sub

To avoid having to type the script in yourself copy and paste the following XML export into a file and imported through the Command Browser.