Results 1 to 6 of 6

Thread: Running a VBScript from a button

  1. #1
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1

    Running a VBScript from a button

    How can I run a VBScript from a button? I tried Run, RunQ ect,

    Would I need to use wscript.exe, and if so, how would I pass the parameters to it to load the script I want.

    Let's say the VBScript file is named test.vbs

    It would look SOMETHING like this:
    "RUN;wscript.exe,c:\test.vbs"
    (I know the syntax is wrong... as this does not work )
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  2. #2
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    Try this:

    "RUN;wscript.exe|c:\test.vbs"
    Jarrod - Holden VX S!

  3. #3
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1

    Thanks Jarrod!

    Jarrod Thanks! That did it, I tried a few variations, but never even concidered using a SINGLE Pipe (|), I did try the typical || thought.

    Regardless, that works PERFECTLY, and NOW I can start doing some serious scripting! I am right at home with VBScript!
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #4
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    From the Skin Commands.txt:
    Code:
    OBS: Anywhere you can run an application you can also specify it's arguments, by using a pipe (|) symbol.
    	Example: "RUN;C:\WINDOWS\NOTEPAD.EXE|c:\t.txt;NOTEPAD;NOTEPAD"
    	(The same can be used within the Launch INI files)
    Glad it worked
    Jarrod - Holden VX S!

  5. #5
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1

    RUN Command

    Hehe I missed the OBS: section entirely.

    I just found the RUN section, and it makes NO mention of that.

    Code:
    "RUN"		- Dynamic Commands: set the code of a button to: "RUN;COMMAND|PARAMETER1|PARAMETER2" will
    		  make it so clicking this button runs the specified command&parameters in the computer.
    		  As an option you can run the command specifying the application name to embed in the current
    		  screen (the application will be enbedded using the "A" settings in the skin file of screen:
    			Example: "RUN;C:\WINDOWS\NOTEPAD.EXE;NOTEPAD" (to run embedded)
    		 		 "A,000,055,800,545,000,000,000"   (.skin definition)
    		  Optionally you can also set the text to be "spoken" when clicking the button: 
    			Example "RUN;C:\WINDOWS\NOTEPAD.EXE;NOTEPAD;NOTEPAD"
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  6. #6
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    it does say: "RUN;COMMAND|PARAMETER1|PARAMETER2" hehe, which is what you wanted, just didnt explain the parameter part

    either way, its working now! so who cares hehe
    Jarrod - Holden VX S!

Similar Threads

  1. Button request: Minimize
    By DaveB in forum Mobile Impact
    Replies: 17
    Last Post: 01-04-2007, 09:35 PM
  2. power problems while car is running..
    By TimW in forum General Hardware Discussion
    Replies: 28
    Last Post: 03-18-2006, 10:11 PM
  3. Opus green wire "T"ing with soft power computer button
    By tangeray in forum Power Supplies
    Replies: 4
    Last Post: 12-06-2005, 11:32 PM
  4. Replies: 23
    Last Post: 03-21-2005, 04:45 AM
  5. Shuttle power button?
    By mazda3uzr in forum Power Supplies
    Replies: 2
    Last Post: 02-06-2005, 05:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •