I don't know why your code isn't working, but I'm wondering whether you
could achieve the functionality you're aiming for with something like
AutoHotKey? There's a script called HotkeyR that seems to do something of
what you want.
Jim
--
Too brief? Here's why! http://emailcharter.org
On Tue, 4 May 2021 at 14:23, Theodore Cooke <theodorecooke@xxxxxxxxx> wrote:
I am aware of those windows hotkeys, but they don't do all that I
want. I often have different setups, and it's difficult to rearrange
the pinned apps on the fly. Those hotkeys also only switch between
windows in the current desktop. For example, if I Chrome pinned as the
first app, and have multiple desktops open, and want to jump to a
chrome window in another desktop, then windows key plus 1 will open a
new chrome window in the current desktop instead of switching.
So I like my system because it can switch between desktops, the
ordering of apps can be rearranged more easily, and finally the
hotkeys can be customised.
On 4/17/21, Bob <temp@xxxxxxxxxxxxxxx> wrote:
I canât spot any obvious issues in your code.that
Similar functionality exists in Windows by default though.
Assuming you use mostly the same apps you can do the following.
Open the 10 apps you use most frequently.
Focus the taskbar and work your way across the icons there and using the
applications menu unpin the ones you donât use and pin the ones you do
arenât pinned already.key
Now in the order of the apps on the bar you can use Windows + NumberRow
to switch to that app. If the app isnât already open it will be opened.If
there are multiple copies of that open the Windows key can be held andthe
number tapped multiple times to perform and alt tab but just between thatapp
apps Windows.
You can also do Windows + Shift + Number to open another instance of an
that is already open.wrote:
Windows + Control + Number also does something but I canât remember what!
Hope this helps.
Bob
On 16 Apr 2021, at 23:02, Theodore Cooke <theodorecooke@xxxxxxxxx>
__________�
Hello folks.
I have never fully been satisfied with the options for switching
windows. Alt-tabbing gets a bit verbose when I'm frequently switching
between 3-4 windows, as is common when developing. Using Jawskey+f10
often ends up requiring me to type a few more keys than I prefer. I
tried searching the interwebs, but could not find any way for setting
up hotkeys to switch to a given window.
Turns out this problem is not too difficult to solve with Jaws
scripts. I have a system of hotkeys set up that allow me to mark a
window with Jawskey+ctrl+number, then I can switch to that window with
Jawskey+alt+number. For example, when coding, I'll type Jawskey+ctrl+1
in my compiler window, Jawskey+ctrl+2 in my text editor,
Jawskey+ctrl+3 in file explorer and so on. Then I can switch to the
compiler with Jawskey+alt+1 ETC.
The only problem is that after a long session of using these
keystrokes many times, Window's native alt+tab behavior malfunctions.
It gets to a point that alt+tabbing only cycles between the current
window and the most recent window, as if no other windows were open.
For some strange reason, alt-shift-tabbing works, but not alt-tabbing.
I am wondering if anybody could look at this code or try running it
then telling me what you think the problem might be.
:default.jss
include "HJConst.jsh"
use "default.jsb"
globals
HandleArray windows
Void Function SetBookmarkedWindow (int index)
if not windows then windows ÿew HandleArray[10] endIf
windows[index] ÿetAppMainWindow (GetCurrentWindow ())
say("set bookmarked window number " + IntToString(index), OT_MESSAGE)
EndFunction
Void Function SwitchToBookmarkedWindow (int index)
if windows[index] then
if windows[index] ÿ GetAppMainWindow (GetCurrentWindow ()) then
say("Already on " + GetWindowName(windows[index]), OT_MESSAGE)
else
SetFocus (windows[index])
endIf
else
say("Window "+intToString(index)+" not set", OT_ERROR)
endIf
EndFunction
Script setBookmarkedWindow1 ()
SetBookmarkedWindow(1)
EndScript
Script SwitchToBookmarkedWindow1 ()
SwitchToBookmarkedWindow(1)
EndScript
Script setBookmarkedWindow2 ()
SetBookmarkedWindow(2)
EndScript
Script SwitchToBookmarkedWindow2 ()
SwitchToBookmarkedWindow(2)
EndScript
Script setBookmarkedWindow3 ()
SetBookmarkedWindow(3)
EndScript
Script SwitchToBookmarkedWindow3 ()
SwitchToBookmarkedWindow(3)
EndScript
Script setBookmarkedWindow4 ()
SetBookmarkedWindow(4)
EndScript
Script SwitchToBookmarkedWindow4 ()
SwitchToBookmarkedWindow(4)
EndScript
Script setBookmarkedWindow5 ()
SetBookmarkedWindow(5)
EndScript
Script SwitchToBookmarkedWindow5 ()
SwitchToBookmarkedWindow(5)
EndScript
__________�
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts
__________�
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts