sendkkeys in DX scripts

Wednesday, October 13, 2004 by Black Knight | Discussion: Stardock Software

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!
Hus
Reply #1 Wednesday, October 13, 2004 9:57 PM
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...
Black Knight
Reply #2 Friday, October 15, 2004 1:15 AM
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!
Hus
Reply #3 Friday, October 15, 2004 10:12 PM
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.
Black Knight
Reply #4 Sunday, October 17, 2004 12:36 AM
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!
Hus
Reply #5 Sunday, October 17, 2004 1:24 PM
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 [email protected]

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

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01