Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
recoil
46 discussion posts
I downloaded function "Load Monitor Profile and Launch Application" and it works great. But I'd like to execute another app's hotkey after loading a monitor profile and before launching an application. The hotkey is to switch to the virtual desktop I want the app to launch on.

How do I execute a hotkey command (e.g., CTRL + G) inside a scripted function?
Jan 2, 2017 (modified Jan 2, 2017)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
This should do the trick:

Code

BFS.Input.SendKeys("^({VK_71})");
Jan 4, 2017  • #2
User Image
recoil
46 discussion posts
Quote:
This should do the trick:

Code

BFS.Input.SendKeys("^({VK_71})");

Thanks Keith. Can you provide a link to the list of sendkeys codes (i.e., what the code is for the various letters and other keyboard keys)?
Jan 4, 2017  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You can actually just use the code editor to build the scan codes. When you do "BFS.Input.SendKeys(" it will prompt you to enter the keystrokes and automatically convert them to the right scan codes for SendKeys :)
Jan 5, 2017  • #4
User Image
recoil
46 discussion posts
Perfect, thanks!
Jan 5, 2017  • #5
steve2022's profile on WallpaperFusion.com
is there updated instructions for this?
I don't get useful prompt or suggestions for control, WIN or right arrow. Looking to find a way to send ctrl+win+right

Quote:
You can actually just use the code editor to build the scan codes. When you do "BFS.Input.SendKeys(" it will prompt you to enter the keystrokes and automatically convert them to the right scan codes for SendKeys :)
Aug 27, 2023  • #6
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
This key code should do it for you: BFS.Input.SendKeys("^({WIN}({VK_39}))");
Aug 28, 2023  • #7
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(2)  Login to Vote(1)