Results 1 to 5 of 5

Thread: Script/Batch file? Have a form field automatically have input text?

  1. #1

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    Script/Batch file? Have a form field automatically have input text?

    I was wondering if there was a way to set up some kind of script, etc. that would fill in a form field with a name when I double clicked that script on the desktop.
    For example, a web browser would open to a specific page and the name of a person would be filled into the proper form field on that page.
    ex: opens ie, then directs it to nbc.com/whathaveyoupage.html, then finds the input box with the name name and adds a specific name into that form field.
    I was hoping there was a simple way to do this without installing a specific piece of software to do it. Maybe not possible otherwise, I don't know, but I'd like to find out.


    Any information would be much appreciated.

    Thank you so much.

  2. #2

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    Re: Script/Batch file? Have a form field automatically have input text?

    Ok, I have found this for a batch file:

    start iexplore http://www.google.com

    But how do you add the part where I would like a specific name to go into the input field named q?
    input value would be?

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Script/Batch file? Have a form field automatically have input text?

    Automate the page by loading it into a webbrowser control.

    http://vbforums.com/showthread.php?t=416275
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    Re: Script/Batch file? Have a form field automatically have input text?

    I didn't know which forum to post this thread in, but I was hoping for a shell scripting solution using the command line/batch file.
    Sorry for the confusion, but I am hoping for a solution that doesn't require the installation of programs and/or .net to utilize.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Script/Batch file? Have a form field automatically have input text?

    Then you need to decide which language you are going to want to write it in. .NET will require the .NET framework. VB 6 will require the vb 6 runtimes, etc.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

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



Click Here to Expand Forum to Full Width