Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send windows key in vbs?

Tags:

vbscript

I've looked everywhere for this, is it actually possible to do? If you press WIN + LEFT ARROW it will mount your selected window to the left of your screen, and that's exactly what I'm trying to do.

I have tried things like:

shl.sendkeys "#{LEFT}"

Because I found out that # could be for WIN just like + is for Shift and % is for Alt.

This may be a stupid question but it would help me out so much. Thank you for you time

like image 223
Bradley McInerney Avatar asked May 10 '14 01:05

Bradley McInerney


People also ask

What is Wshshell SendKeys?

SendKeys strKeyString. The SendKeys method sends one or more keystrokes to the active window as if they were typed at the keyboard. This method is similar to VB's SendKeys method. Each ordinary key can be represented by the character of the key itself.


1 Answers

VBScript's SendKeys doesn't support the Windows key.


You can use AutoIt instead:

Send("{#Left}")
like image 198
Helen Avatar answered Sep 18 '22 23:09

Helen