Search:

Type: Posts; User: BoOkWoRm

Search: Search took 0.02 seconds.

  1. Re: VB Script for complete XML parsing using XMLUtil.CreateXML() with VB script

    http://msdn.microsoft.com/en-us/library/cc189056(v=vs.95).aspx
  2. Re: need vbscript to convert .txt(comma seperated) to XLSX file

    First part is easy since the text files are already comma separated you can just create a function to rename those files to .csv after that you would need to open the csv files with Excel and perform...
  3. Replies
    7
    Views
    5,800

    Re: Send keystrokes on INternet Explorer

    1. As I warned you above in previous post, SendKey is prone to failure. It relies on Sleep functions and an active window that it's working on in order to work properly (and even like that it fails...
  4. Replies
    3
    Views
    1,120

    Re: Looping/repeating macro in closed excel doc

    Stocks, huh? OK... here's an example which I put together since you didn't post all your code. This works on a loop to submit & request the information every minute. You should be able to implement...
  5. Replies
    3
    Views
    1,120

    Re: Looping/repeating macro in closed excel doc

    Yes. If you provide the code or example that might help. Limited information won't get you any help/issue resolved.
  6. Replies
    7
    Views
    5,800

    Re: Send keystrokes on INternet Explorer

    Create a shortcut for the item/software/script then right click on the shortcut and select properties, you will see a Hot Key box in the General tab - assign it what you want.

    Here's an example...
  7. Replies
    7
    Views
    5,800

    Re: Send keystrokes on INternet Explorer

    Assigning a "Hotkey" to CTRL+H is a function that is available in windows and should not be a problem once you write the script and assign it the hotkey of your choice. SendKey is also an easy script...
  8. Replies
    5
    Views
    11,357

    Re: Google speech in Vbscript

    OK, so again - I fail to see why you are having the script save the stream to an mp3 when it is not needed, it seems like you are doing more than what is needed in order to simply play back sound...
  9. Replies
    2
    Views
    552

    Re: VBS Object Error

    I couldn't figure it out either. Anyhow here's something I put together and tested just now to help out. Enjoy!


    'Login Audit
    Dim objShell, wshNetwork, objExec, strOutput, RegEx
    Set objShell =...
  10. Replies
    5
    Views
    11,357

    Re: Google speech in Vbscript

    English works OK until it errors out. Frech errors out even before you put in the text you want to translate. Are you just trying to get the translation from text to speech? Or do you need to save...
  11. Replies
    5
    Views
    11,357

    Re: Google speech in Vbscript

    I copied and pasted your code to test it and my antivirus freaked out! :D

    This works for me:

    inputTxt = InputBox("Enter a text to Speak","Enter a text to Speak","")
    saveDir = "C:\"
    saveMP3 =...
  12. Replies
    12
    Views
    1,939

    Re: How to separate code blocks in vbs

    For the sake of sanity and house cleaning, here's a better example to your final code above:


    Option Explicit
    Dim objShell, strEnvironment, objLink, CurrentDirectory
    Set objShell =...
  13. Replies
    12
    Views
    1,939

    Re: How to separate code blocks in vbs

    You need to specify the path for the shortcut, example:


    objLink.TargetPath = CurrentDirectory & "\downIt.bat"
  14. Replies
    12
    Views
    1,939

    Re: How to separate code blocks in vbs

    With the Option Explicit defined you need to include/set all variables accordingly. Try this:

    ' Make sure variables are declared.
    option explicit
    ' Program starts running here.
    call...
  15. Replies
    12
    Views
    1,939

    Re: How to separate code blocks in vbs

    Try this:


    'Define the current path
    CurrentDirectory = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".")
    'If running from desktop in WinXP result will be:
    'C:\Documents and...
  16. Re: Need to parse a username for login script

    I agree, here's an example:


    strUser = "John Doe"
    result = Mid(strUser, 1, 1)
    msgbox "The first letter is: " & result

    But what's going to happen when you have "Chris" or "Carol" login and...
  17. Replies
    5
    Views
    1,752

    Re: Need help with Error

    Try this:


    ' This initializes a 2-dimension array
    ' of IP Address. The first index +100
    ' is the room# and the second index+1
    ' is the computer# in the room.
    dim ipAddress(5,3)
    dim room
    dim...
Results 1 to 17 of 17



Click Here to Expand Forum to Full Width