sendkkeys in DX scripts

Does anyone know how to send the Windows key to an application using DX? I've tried using {lwin} and {rwin} but they don't seem to be supported. thanks in advance for any help



Powered by SkinBrowser!
3,758 views 5 replies
Reply #1 Top
I don't know how to do it in DXScript, but if you want to do it in a VBS file, it would look like this.

Set wShell=wscript.createobject('wscript.shell')
wShell.sendkeys '^{ESC}'

How to translate that into DX I don't know, but maybe you can play with it and figure it out.

Alternatively, if you want to just launch the Start Menu, DX comes with a plug-in for that...
Reply #2 Top
Sorry I should have been more specific, what I want to send is "{win}a", ^{esc} is the windows key, but it does not look like you can combine it with anything. Or at least ctrl-esc from the keyboard does not let you add the "a" after it, so I'm still stuck, but thanks for the sugestion



Powered by SkinBrowser!
Reply #3 Top
What exactly are you trying to do? What application do you need to send a key too and why? Maybe if you describe it, there is a different way of doing it without sendkeys.
Reply #4 Top
All I wanted was a small object to toggle altdesk on and off. you can set altdesk to toggle on and off by using hotkeys so i wanted to simulate the hotkeys. What I did to get around the key issue is to change the hotkeys for altdesk to someting easier to send




Powered by SkinBrowser!
Reply #5 Top
Sorry, never used Alt-Desk so I don't know how it works, but it doesn't seem possible. Perhaps if you can make a shortcut to bring up alt-desk, you can make an object to activate the shortcut. Alternatively, if you could make your own script file, like .js or .vbs, you could link to them in DX. But I don't have nearly enough scripting knowledge to know if it's even possible to make in DX itself. You may want to email Martin, he's the authority on DXScript, he might be able to tell you if it's possible and how you would go about doing it. I believe his email is Martin@stardock.com

Sorry I couldn't be more of a help...