<< DiscussionsReply
How to execute a keyboard shortcut inside a scripted function?
recoil's profile on WallpaperFusion.com
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
Binary Fortress Administrator
 Binary Fortress Administrator
This should do the trick:
Jan 4, 2017  • #2
recoil's profile on WallpaperFusion.com
Quote:
This should do the trick:

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
Binary Fortress Administrator
 Binary Fortress Administrator
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
recoil's profile on WallpaperFusion.com
Perfect, thanks!
Jan 5, 2017  • #5
Was this helpful?  Login to Vote(1)  Login to Vote
<< DiscussionsReply
Visit DisplayFusion on FacebookVisit DisplayFusion on TwitterVisit DisplayFusion on Google+Visit DisplayFusion on LinkedInSearch for DisplayFusion on RedditFollow DisplayFusion on RSSVisit DisplayFusion on Instagram
©2017 Binary Fortress  •  News  •  Discussions  •  FAQ  •  Support  •  Privacy  •  ToS