Windows 7 Forums


Windows 7: Need Help Coding a VBScript

27 Nov 2009   #1

Windows 7 Ultimate_x64
NC
 
 
Need Help Coding a VBScript

I am trying to include a context menu item which will duplicate and open a new window and then position both windows side by side. I attempted to use the SendKeys command to achieve this by using the WIN+Right Arrow and WIN+Left Arrow key combination, but apparently, the WIN key can't be used with the SendKey command. Is there another way to accomplish this?

As of now, I have my "Duplicate Window" added to the context menu and am able to open a new window, but I would also like for both windows to open side by side in one continuous step. Here is the script I made:



Code:
set DWinShell = WScript.CreateObject("WScript.Shell")
DWinShell.SendKeys "^n"
My System SpecsSystem Spec

Reply

 Need Help Coding a VBScript problems?



Thread Tools



Similar help and support threads for: Need Help Coding a VBScript
Thread Forum
Rainmeter coding Customization
Weird problem with Norton internet security and coding Software
Intros and coding Chillout Room
Microsoft.NET and C# coding Software
Dangerous coding errors revealed Chillout Room


All times are GMT -5. The time now is 10:26 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32