1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Scripting using Autoit

Discussion in 'Programming & Webmastering' started by brandonwh64, Jan 6, 2011.

  1. brandonwh64

    brandonwh64 Addicted to Bacon and StarCrunches!!!

    Joined:
    Sep 6, 2009
    Messages:
    19,419 (7.05/day)
    Thanks Received:
    6,878
    Location:
    Chatsworth, GA
    Well at my work, we are trying to get all of the installs for the machines and workstations down were all they have to do is run the script and it installs the software and all extras at once with no errors so i have been studying hard on this autoit software and got some scripts down for our installs, The first one attached to the post checks your windows version for x86 or X64 and then runs command prompt with pretty writings then closes. If anyone else uses this or has alot of experinece, please share and we can get a bunch of good scripts that can be used in larger ones. i will post some of what i have written as well.

    Code:
    MsgBox(1,"Windows Type",@OSArch)
    
    If @ProcessorArch = "X64" Then; or @OSArch depends on AutoIt version
        Run("CMD")
    	Send("HELLO WELCOME TO DOS PROMPT THIS IS X64 BIT WINDOWS")
    	Sleep(2000)
    	Send("{ENTER}")
    	Send("Exit")
    	Send("{ENTER}")
    EndIf
    
    If @ProcessorArch = "X86" Then; or @OSArch depends on AutoIt version
        Run("CMD")
    	Send("HELLO WELCOME TO DOS PROMPT THIS IS X86 BIT WINDOWS")
    	Sleep(2000)
    	Send("{ENTER}")
    	Send("Exit")
    	Send("{ENTER}")
    EndIf
    AutoIT Website
     

    Attached Files:

    Last edited: Jan 6, 2011
    Crunching for Team TPU

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)