It is currently May 2nd, 2024, 7:03 am
I need help with keyboard shortcuts
-
- Posts: 3
- Joined: August 20th, 2012, 4:39 am
I need help with keyboard shortcuts
How can execute with LeftMouseUpAction, keyboard shortcuts, like "ctrl+1"? Thanks
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: I need help with keyboard shortcuts
You will need to install AutoHotKey and create a script in that which you can call with the LeftMouseUpAction in Rainmeter.
-
- Posts: 3
- Joined: August 20th, 2012, 4:39 am
Re: I need help with keyboard shortcuts
Thank for your reply. The keyboard shrtcuts is already defined by programs (example : in dexpot, keyboard shortcut Alt+1 switch to desktop1). I want to use rainmeter LeftMouseUpAction, to switch the desktop. Excuse my English.
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: I need help with keyboard shortcuts
Yeah, the problem is that Rainmeter can't emulate keyboard strokes. You don't need AHK for defining the shortcuts, you need it to actually execute them.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 25
- Joined: September 17th, 2010, 9:26 am
Re: I need help with keyboard shortcuts
You can also use nifty tool nircmd
http://www.nirsoft.net/utils/nircmd.html
and use it exactly like you want to:
!Execute ["\NirCmd.exe" sendkeypress ctrl+1]
You can also do more with this; change volume, execute power commands (shutdown, sleep, hibernate), move cursor, and many more!
http://www.nirsoft.net/utils/nircmd.html
and use it exactly like you want to:
!Execute ["\NirCmd.exe" sendkeypress ctrl+1]
You can also do more with this; change volume, execute power commands (shutdown, sleep, hibernate), move cursor, and many more!
-
- Posts: 3
- Joined: August 20th, 2012, 4:39 am
Re: I need help with keyboard shortcuts
Thank you very much, it worked perfectly with nircmd.