You are here

trying tolearn and write vbs script

5 posts / 0 new
Last post
Debray6379
Offline
Last seen: 14 years 4 months ago
Joined: 2009-05-04 05:19
trying tolearn and write vbs script

I've just started to try and teach myself how to write and work with .vbs script.
I was just wondering if someone could help me out I'd like to try and write a script that can send the ALT + Win + Spacebar command to portableapps platform???

please be kind... thanks for your time!

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-12-06 18:07
I would recommend AutoIt or

I would recommend AutoIt or AutoHotkey for that type of automation....vbscript is great for windows administration and text processing and stuff like that, but for window control and key sending, it's somewhat lacking

The developer formerly known as ZGitRDun8705

Debray6379
Offline
Last seen: 14 years 4 months ago
Joined: 2009-05-04 05:19
Thanks for the tip

Thanks for the tip! I'll look into it, I did have the idea of making a portableapps start docklet for rocketdock{portablized} and have been looking into ways of doing it besides the standard shortcut... anyway I'm only new to this type of thing and wanted the docklet to have the same function as if alt+win+spacebar was pressed??

if Autoit or AutoHotkey won't work I'll try something else. Again thanks for your help!!!

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 5 months 1 week ago
Joined: 2006-11-18 10:26
PowerShell > VBScript

If you want something that's built in to Vista and Windows 7, use PowerShell. PowerShell is replacing VBScript as the Windows scripting language of choice.

http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx

If you REALLY want to do it in VBScript, I can help you out. I've been writing VBScript for about 9 years now.

http://msdn.microsoft.com/en-us/library/8c6yea83%28VS.85%29.aspx

Per a comment at the bottom of that page, the SendKeys method has been disabled in Vista (and I assume Win7) so AutoIt may be the way to go.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Debray6379
Offline
Last seen: 14 years 4 months ago
Joined: 2009-05-04 05:19
Sorry for taking so long to reply

Sorry for taking so long to reply,
I've been reading the links you gave me and been checking out Autoit, which may be the way to go but it's going to take me a while to learn how to write the script correctly to send the commands.

Thanks for the links by the way they are a bit confusing at first but I'm slowly understanding more and more although I think it will be a while before I can actually produce any type of script that will do what I want it to... But that is the way it goes when you try and teach yourself how to do something you've never done before lol.. again thanks for your help!!!!!

Log in or register to post comments