Sign in to follow this  
Followers 0
pumpas

its problems with run !.. anyone help ?

3 posts in this topic

see my source of script

;Script generated by AutoBuilder 0.4


Opt("GUICoordMode", 1)
Opt("GUINotifyMode", 1)
GuiCreate("MyGUI", 392,273,(@DesktopWidth-392)/2, (@DesktopHeight-273)/2 , 0x04CF0000)

$group_2 = GUISetControl("group", "", 190, 0, 200, 270)
    $button_7 = GUISetControl("button", "Storm-Mu", 200, 20, 180, 30)
    $button_8 = GUISetControl("button", "Diablo 2", 200, 70, 180, 30)
    $button_10 = GUISetControl("button", "Sting's HackMap", 200, 120, 180, 30)
    $button_11 = GUISetControl("button", "IE", 200, 170, 180, 30)
    $button_12 = GUISetControl("button", "Gta", 200, 220, 180, 30)
GUISetControl("group","",-99,-99,1,1) ;close group

$group_1 = GUISetControl("group", "", 0, 0, 190, 270)
    $button_1 = GUISetControl("button", "cs 1.5", 10, 20, 170, 30)
    $button_2 = GUISetControl("button", "cs 1.6", 10, 70, 170, 30)
    $button_3 = GUISetControl("button", "C-D", 10, 120, 170, 30)
    $button_5 = GUISetControl("button", "Winamp 5", 10, 170, 170, 30)
    $button_6 = GUISetControl("button", "Lineage 2", 10, 220, 170, 30)
GUISetControl("group","",-99,-99,1,1) ;close group


GuiShow()

While 1
    sleep(100)
    $msg = GuiMsg(0)
    Select
    Case $msg = -3
        Exit
    Case $msg = 12
       ;;;
    Case $msg = $group_2
       ;;;
    Case $msg = $button_7
        run("D:\games\Mu def\Storm-Mu.bat")
    Case $msg = $button_8
        run("D:\games\Diablo II\Diablo II.exe")
    Case $msg = $button_10
        run("D:\games\Diablo II\Plugin\d2hackmap.exe")
    Case $msg = $button_11
        run("C:\Program Files\Internet Explorer\IEXPLORE.EXE")
    Case $msg = $button_12
        run("D:\games\gtavc\gta-vc.eXe")
    Case $msg = $group_1
       ;;;
    Case $msg = $button_1
        run(@comspec & "/c D:\games\Counter-Strike\hl.exe" & " -cstrike -game -console")
    Case $msg = $button_2
        run(@comspec & "/c D:\games\Counter-Strike 1.6\hl.exe" & " -nomaster -game cstrike")
    Case $msg = $button_3
        run("C:\Program Files\Cheating-Death\cdeath.exe")
    Case $msg = $button_5
        run("C:\Program Files\Winamp\winamp.exe")
    Case $msg = $button_6
        run("C:\Program Files\Lineage II\LineageII.exe")
    EndSelect
WEnd
Exit

and .. all exxelent works but not this

run(@comspec & "/c D:\games\Counter-Strike\hl.exe" & " -cstrike -game -console")
    Case $msg = $button_2
        run(@comspec & "/c D:\games\Counter-Strike 1.6\hl.exe" & " -nomaster -game cstrike")
dont work this options this
-cstrike -game -console
and this
-nomaster -game cstrike

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

see my source of script

<{POST_SNAPBACK}>

Try:

run(@comspec & ' /c "D:\games\Counter-Strike\hl.exe" -cstrike -game -console')
    Case $msg = $button_2
        run(@comspec & ' /c "D:\games\Counter-Strike 1.6\hl.exe" -nomaster -game -cstrike')

EDIT: :ph34r: , good catch ezzetabi

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Also you should put a space after the @comspec & '

run(@comspec & ' /c "D:\games\Counter-Strike\hl.exe" -cstrike -game -console')

run(@comspec & ' /c "D:\games\Counter-Strike 1.6\hl.exe" -nomaster -game -cstrike')

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0