Log In
Sign Up and Get Started Blogging!
JoeUser is completely free to use! By Signing Up on JoeUser, you can create your own blog and participate on the blogs of others!
Jaramia
Scripting question
Published on July 16, 2006 By
Jaramia
In
DesktopX
How can u open 2 or more programs with one shortcut... ex. opening a window blind and a cursor or an object dock theme??
Article Tags
desktopx
Popular Articles in this Category
Keep an Eye Out!
Popular Articles from Jaramia
Photoshop noob Question
Comments (Page 1)
2 Pages
1
2
Next
1
dragonmage
on Jul 17, 2006
I guess you could make a batch file to do that.
2
thomassen
on Jul 17, 2006
Function Object_OnLButtonUp(x, y, Dragged)
If Not Dragged Then
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "app_nr1"
objShell.Run "app_nr2"
End If
End Function
3
ZubaZ
on Jul 17, 2006
Function Object_OnLButtonUp(x, y, Dragged)
If Not Dragged Then
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "app_nr1"
objShell.Run "app_nr2"
End If
End Function
Sweet!
I wish there was a library for scripts like these? Or a WIKI . . . or something.
GreenReaper? RomanDA? CereboJD? [ . . . anyone but me? ]
4
thomassen
on Jul 17, 2006
hmm.... A wiki would be interesting. Anyone know how to get a wiki and set it up?
I know there's a section for script objects, but I think it'd be more useful for an area where you could actually read the scripts. If I get time I might be able to set something up. But at the moment I'm somewhat busy as I'm preparing to move to London.
5
rabidrobot
on Jul 17, 2006
CerebroJD set up a wiki just last week. http://scratchpad.wikia.com/wiki/DesktopX
The "Includes" article is by me!
6
thomassen
on Jul 17, 2006
That include article was very interesting. I'll have to look into that. Looks like it might be a very useful thing for one of my projects. I've been hoping for a similar behaviour like that.
7
ZubaZ
on Jul 17, 2006
CerebroJD set up a wiki just last week. Link
The "Includes" article is by me!
That should be a big ol' news item. Very cool. Thanks.
I like your include segment. It might be a cool idea to link to a WC object that uses the code.
8
thomassen
on Jul 17, 2006
That should be a big ol' news item. Very cool. Thanks.
I second that!
9
Jaramia
on Jul 17, 2006
Sorry im not very farmiliar with...well anything so i dont quite know all about scripts and im not sure how to make a batch file... any help?
10
ZubaZ
on Jul 17, 2006
well anything so i dont quite know all about scripts and im not sure how to make a batch file... any help?
So . . would it be better to retitle your request to "Will someone make me [something]that will open these two shortcuts?"
Because . . . the script posted, when customized, and inserted in a DX object . . . will do what you asked.
What
do
you know about DX builder?
What shortcuts do you want?
Are you willing to learn?
11
thomassen
on Jul 17, 2006
Create an object
In the Script section of the Properties window that appear when you created the object, click "new"
Paste the following code:
Function Object_OnLButtonUp(x, y, Dragged)
If Not Dragged Then
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "notepad.exe"
objShell.Run "calc.exe"
objShell.Run "charmap.exe"
End If
End Function
This will start Notepad, Calculator and Character Map. Change the filename to any program you want and add/remove as many objShell.Run lines you want to fit your need. Did that help
12
ZubaZ
on Jul 17, 2006
I threw an error when I tried to launch a app with spaces in it's name/path. Watch out for that.
13
thomassen
on Jul 17, 2006
hm.. yea, that's true. Forgot about that. The only workaround I found for that is to enclose the string with Chr(34). It's the ASCII code for the quote " symbol.
Function Object_OnLButtonUp(x, y, Dragged)
If Not Dragged Then
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run Chr(34) & "C:\Program Files\Stardock\SDCentral\BACKUP\eula.txt" & Chr(34)
End If
End Function
The reason is that otherwise it'll break down the string and think that it should execute "C:\Program" with the argument "Files\Stardock\SDCentral\BACKUP\eula.txt"
(ARGH! the WYSIWYG Editor is really buggy. Too often eats what I try to post!)
14
Jaramia
on Jul 17, 2006
well my sort of idea is to creat buttons that can change the cursor, wb , destop theme and object dock all at once...im playing around with the scripts given, thanks
ill post again if i have any problems
15
Jaramia
on Jul 17, 2006
ok where do u find the wba.'s for skins that automatically come with window blinds? (ex. Aura)
2 Pages
1
2
Next
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
Richer content, access to many features that are disabled for guests like commenting on the forums.
Access to a great community, with a massive database of many, many areas of interest.
Access to contests & subscription offers like exclusive emails.
It's simple, and FREE!
Sign Up Now!
Meta
Views
» 6389
Comments
»
16
Category
»
DesktopX
Comment
Recent Article Comments
Let's start a New Jammin Thr...
LightStar Design - February ...
I'm Getting Another 'New' PC...
Windows File Manager Not Ope...
LightStar Design Windowblind...
Let's see your political mem...
GalCiv IV: Supernova Dev Jou...
GalCiv IV: Supernova Dev Jou...
Opera Air
Windows Defender has a VPN.....
Sponsored Links