forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with Windows-Key Shortcuts

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Chuckler
Newbie


Joined: 08 Dec 2003
Posts: 3

PostPosted: Mon Dec 08, 2003 5:29 am    Post subject: Help with Windows-Key Shortcuts Reply with quote

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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Dec 08, 2003 6:56 am    Post subject: Reply with quote

Hi Chuckler!

First of all, welcome to the VDS community. We're glad to see new "faces" around Wink

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Dec 08, 2003 7:46 am    Post subject: Reply with quote

Hi Chuckler
I think this one (last one I posted) can help you even for VDS 4
http://forum.vdsworld.com/viewtopic.php?t=1863&highlight=minimize+windows

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Chuckler
Newbie


Joined: 08 Dec 2003
Posts: 3

PostPosted: Mon Dec 08, 2003 8:38 am    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Dec 08, 2003 9:43 pm    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Mon Dec 08, 2003 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Chuckler
Newbie


Joined: 08 Dec 2003
Posts: 3

PostPosted: Tue Dec 09, 2003 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Dec 09, 2003 12:18 am    Post subject: Reply with quote

Check out the list of Virtual Key-Codes at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/VirtualKeyCodes.asp

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group