| View previous topic :: View next topic |
| Author |
Message |
Chuckler Newbie
Joined: 08 Dec 2003 Posts: 3
|
Posted: Mon Dec 08, 2003 5:29 am Post subject: Help with Windows-Key Shortcuts |
|
|
Hi,
I'm new to VDS, using version 5.
I'm trying to write a little script with which I can minimize all applications on the desktop. I know that Windows-Key M will allow this, but the machines that I'm writing this for are touch-screens, so can't go down that path.
I also know that there's an icon in the Windows XP quicklaunch bar, but that isn't available either.
What I've got so far is this:
WINDOW Send, Program Manager, @CTRL(@ESC())
but of course,
WINDOW Send, Program Manager, @CTRL(@ESC(M))
doesn't work, because the @ESC control doesn't seem to let you hold down another key with it?
Also, I've tried
WINDOW Send, Program Manager, @CHR(91)
where 91 is the ASCII-code for the left windows key, but this doesn't work.
Any help would be appreicated.
TIA,
Chuckler |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Dec 08, 2003 6:56 am Post subject: |
|
|
Hi Chuckler!
First of all, welcome to the VDS community. We're glad to see new "faces" around
Back to your question... You might try something like this:
| Code: |
WINDOW Send,Program Manager,@CTRL(@KEY(ESC))
WINDOW Send,Program Manager,@ALT(M)
|
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
|
| Back to top |
|
 |
Chuckler Newbie
Joined: 08 Dec 2003 Posts: 3
|
Posted: Mon Dec 08, 2003 8:38 am Post subject: |
|
|
Thanks both for replies.
I'll play with these tomorrow. Surely there should be some way of WINDOW SENDing the Windows key, though! Perhaps I'll suggest it to the developer.  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Dec 08, 2003 9:43 pm Post subject: |
|
|
You can also try this:
Paste this in notepad and save it as "minimize.scf"
| Code: | [Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop |
Then you can use this VDS code to launch the minimize shell object:
| Code: | | shell open,minimize.scf |
I hope this helps.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Mon Dec 08, 2003 11:01 pm Post subject: |
|
|
Using VDS 5, you can try the following code:
| Code: |
LOADLIB user32
REM $05B = Left Windows-Key
REM $04D = M-Key
REM Push Keys Down
%x = @lib(user32,keybd_event,NULL:,INT:$05B,INT:0,INT:0,INT:0)
%x = @lib(user32,keybd_event,NULL:,INT:$04D,INT:0,INT:0,INT:0)
REM Let Keys Up
%x = @lib(user32,keybd_event,NULL:,INT:$05B,INT:0,INT:$002,INT:0)
%x = @lib(user32,keybd_event,NULL:,INT:$04D,INT:0,INT:$002,INT:0)
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Chuckler Newbie
Joined: 08 Dec 2003 Posts: 3
|
Posted: Tue Dec 09, 2003 12:16 am Post subject: |
|
|
SnarlingSheep, that's perfect! Any idea where I can find other $xxx key references for this?
eg rem $04D = M-Key
Thanks so much all for the replies ... |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|