+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, CMD HIDE SCRIPT (AutoIT) in Coding and Web Development; Hi i found this nice script but dont under stand it so good. Can somebidy explain and then my next ...
  1. #1

    Join Date
    Apr 2010
    Location
    kl
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    CMD HIDE SCRIPT (AutoIT)

    Hi i found this nice script but dont under stand it so good.

    Can somebidy explain

    and then my next question is can i use this script on another App.?

    ; <AUT2EXE VERSION: 3.1.1.112>

    ; ----------------------------------------------------------------------------
    ; <AUT2EXE INCLUDE-START: C:\Documents and Settings\OWNER\Desktop\cmdhide.au3>
    ; ----------------------------------------------------------------------------

    Opt("ExpandEnvStrings", 1)
    If $CMDLIne[0] = 1 Then
    If StringInStr($CMDLine[1], '/name:') Then
    $WinName = StringReplace($CMDLine[1], '/name:', '')
    While 1
    If WinExists($WinName) Then
    WinActivate($WinName)
    WinWaitActive ($WinName)
    WinSetState ($WinName, "", @SW_HIDE)
    ExitLoop
    EndIf
    WEnd
    Else
    If StringInStr ($CMDLine[1], '\') Then
    $WorkingDir = StringReplace($CMDLine[1], "\"&StringRegExpReplace($CMDLine[1], ".*[\\|/]", "", 0), "")
    $file = ($CMDLine[1])
    Run($file, $WorkingDir, @SW_Hide)
    Else
    $WorkingDir = ''
    $file = ($WorkingDir&'\'&$CMDLine[1])
    Run($file, $WorkingDir, @SW_Hide)
    EndIf
    ;~ If FileExists($CMDLine[1]) Then
    ;~ Run($file, $WorkingDir, @SW_Hide)
    ;~ EndIf
    EndIf
    EndIf


    ; ----------------------------------------------------------------------------
    ; <AUT2EXE INCLUDE-END: C:\Documents and Settings\OWNER\Desktop\cmdhide.au3>
    ; ----------------------------------------------------------------------------

  2. #2
    superfletch's Avatar
    Join Date
    Nov 2007
    Location
    South
    Posts
    436
    Thank Post
    146
    Thanked 77 Times in 61 Posts
    Rep Power
    31
    Hey there,

    This is probably a question for the AutoIt forum and not here. As far as I can tell the code shown is aimed at deciphering what happens when you run an autoit exe with a particular switch.

    eg -

    myautoitapp.exe /silent
    or
    myautoitapp.exe /installpath

    The idea is you modify the code and embed it into your autoit application to add switch options.

    Depending on what the app you create does then you could target other apps, but the value would be limited to the switches the other apps supports and OS based things that can affect apps like runas.

SHARE:
+ Post New Thread

Similar Threads

  1. AutoIT Script
    By My220x in forum Scripts
    Replies: 2
    Last Post: 13th September 2008, 05:29 AM
  2. AutoIt / cmd file
    By superfletch in forum Scripts
    Replies: 5
    Last Post: 19th August 2008, 01:41 PM
  3. AutoIt time script
    By My220x in forum Scripts
    Replies: 2
    Last Post: 17th May 2008, 08:07 PM
  4. AutoIt Script Help - Get Last Changed File
    By russdev in forum Scripts
    Replies: 8
    Last Post: 8th August 2007, 05:34 AM
  5. Stupid CMD error with logon script
    By tarquel in forum Windows
    Replies: 37
    Last Post: 14th June 2006, 09:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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