It is currently May 2nd, 2024, 7:03 am

I need help with keyboard shortcuts

Get help with creating, editing & fixing problems with skins
tosani
Posts: 3
Joined: August 20th, 2012, 4:39 am

I need help with keyboard shortcuts

Post by tosani »

How can execute with LeftMouseUpAction, keyboard shortcuts, like "ctrl+1"? Thanks
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: I need help with keyboard shortcuts

Post by jsmorley »

You will need to install AutoHotKey and create a script in that which you can call with the LeftMouseUpAction in Rainmeter.
tosani
Posts: 3
Joined: August 20th, 2012, 4:39 am

Re: I need help with keyboard shortcuts

Post by tosani »

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.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: I need help with keyboard shortcuts

Post by MerlinTheRed »

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!
User avatar
Church Punk
Posts: 25
Joined: September 17th, 2010, 9:26 am

Re: I need help with keyboard shortcuts

Post by Church Punk »

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!
Image
tosani
Posts: 3
Joined: August 20th, 2012, 4:39 am

Re: I need help with keyboard shortcuts

Post by tosani »

Thank you very much, it worked perfectly with nircmd.