It is currently April 26th, 2024, 3:18 am

Can I make buttons execute keyboard commands?

Get help with creating, editing & fixing problems with skins
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Can I make buttons execute keyboard commands?

Post by kyriakos876 »

Rel wrote: December 9th, 2018, 9:48 pm Worked great, thanks!
I would try using:

Code: Select all

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^%{TAB}"
WshShell.SendKeys "{ENTER}"
as it should be less problematic than calling the other one 2 times. But if you find that calling twice is consistent, then go with it :)
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

Re: Can I make buttons execute keyboard commands?

Post by Mor3bane »

Is there some kind of list where these vbs scripts are described?

There have been in the past times when I would have liked to have this functionality for different win10 behaviours.

Thanks

By the way - this thread is very interesting and intriguing.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Can I make buttons execute keyboard commands?

Post by kyriakos876 »

Mor3bane wrote: December 11th, 2018, 8:41 pm Is there some kind of list where these vbs scripts are described?

There have been in the past times when I would have liked to have this functionality for different win10 behaviours.

Thanks

By the way - this thread is very interesting and intriguing.
Well, this is my go to site when it comes to vbs.
https://ss64.com/vb/
Stack overflow also has a lot of stuff if you type "vbs"

Generally, you can pretty much everything when it comes to actions with a simple vbs script.