<< DiscussionsReply

Attach multiple key combinations to the same Scripted Function?

Avatar from Gravatar.com
1 discussion post
I've written a scripted function that I use to position windows at various pre-defined locations on the monitor, cycling through various pre-defined sizes, depending on the current location/position.

For convenience, I invoke it with these key Ctrl-Alt combinations:

q w e
a s d
z x c

Each of which selects a monitor corner or adjusts width/height.

The script is complicated enough, and I tweak the pre-defined sizes/positions enough that I don't want to have to copy it 9 times to apply it to each key combination. Currently my approach is to have each key combination call ScriptSettings.WriteValue with the key character, then invoke my WinMgmt script, which calls ScriptSettings.ReadValue to take the appropriate action.

Is there any way to directly connect all 9 of these keypresses to the same script? And to determine in script which key invoked it?

12 days ago (modified 11 days ago)  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com

Unfortunately, this isn't possible.

Sorry I couldn't be of more help!
9 days ago  • #2
Was this helpful?    
<< DiscussionsReply