arch-tag: 88542d6e-4638-4c41-b046-d2a1a93c27ce This document shows some examples, how to use sww.exe * sww Explorer switch to a window that window name starts with the string "Explorer" * sww -m Firefox switch to a window that contains the string "Firefox" (match in the Middle) The -m Flag can be used for all examples that expect a window name * sww -h Explorer hide all windows that start with "Explorer" * sww -s Explorer show all windows that start with "Explorer" * sww -c Explorer close all windows that start with "Explorer" * sww -x "viewer.exe something" View something switch to a window called View something if that window does not exist launch the programm "viewer.exe something" this method gives you the ability to switch to an already running application or to start it if it is not running. * sww -f state.sww -x "hh index.chm" krks switch to a window called krks if that window does not exist launch the programm "hh index.chm" and store the process id of the new started application in the file "state.sww" sww -f state.sww HTML switch to a window called HTML with the process number stored in state.sww * sww -F windowstate.sww Save all available windows in the file windowstate.sww The file contains a tab separated list of all windows that have names: processID threadID visible? name * sww -P1 GNU Emacs Change the process priority from any window called "GNU Emacs" to HIGH_PRIORITY_CLASS The following priorities are defined: 0: REALTIME_PRIORITY_CLASS; 1: HIGH_PRIORITY_CLASS; 2: NORMAL_PRIORITY_CLASS; 3: IDLE_PRIORITY_CLASS; * sww -k "Hello world" GNU Emacs Switch to the window called "GNU Emacs" and type "Hello world" There is a notation for special keys: , , ... There is a special syntax to type the control key: There is a special syntax to type the alt key: There is a special syntax to type the shift key: ==> () on a german keyboard e.g.: Type "r()" followed by RET in the application PyCrust: sww -k"r()" PyCrust This is equivalent to the following on a german keyboard: sww -k"r" PyCrust -------------------------------------------------------------------------------- If you have further suggestions please send them to stefan@xsteve.at Have Fun.