Jump to content

Run a file


Recommended Posts

Keen Studios

Keen Studios is located in Oregon. We currently have 11 employees and are working on game development for our game system. If you would like to work on the game project PM me or email me at Keen@free-adz.net.

Amp Music Release Dates:

7 Versions Will Come Out. Some will have extention Packs.

Amp Music Final 1.0 Somming Spring!

Amp Music Final 2.0 Comming Summer!

Amp Music Final 3.0 Comming Winter!

Amp Music Final 3.1 Extention Feature Pack Comming Winter!

Amp Music Final 4.0 Comming Next Spring!

Amp Music Final 5.0 Comming Next Summer!

Amp Music Final 6.0 Comming Next Winter!

Amp Music Final 6.1 Extention Pack Comming Next Winter!

Amp Music Final 7.0 Comming In 2009!

Amp Music Final 7.1x Delux Un-cut Version Fully Loaded Comming In 2009!

be, all that true...

You best be getting to "run" darn quick

8)

NEWHeader1.png

Link to comment
Share on other sites

Well it isnt all trueHavent updated my siggy in a while.

Anyway here is teh script.

#include <GUIConstants.au3>
$Form2 = GUICreate("Form1", 641, 469, 202, 123)
$Group1 = GUICtrlCreateGroup("", 20, 30, 602, 158)
GUICtrlCreateLabel("Welcome to Whopper Boards Download. You are currently using version 1.0 Beta. The newest version is . You may either login to the program or create a new account below.  Enjoy!", 69, 50, 508, 92, $SS_CENTER)
GUICtrlCreateLabel("You are curently using 1 out of your 1 accounts.", 28, 158, 584, 20, $SS_CENTER)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("", 20, 286, 602, 158)
GUICtrlCreateLabel("Login As: ", 187, 325, 62, 20)
$Combo1 = GUICtrlCreateCombo("Choose An Login ID", 256, 325, 238, 24)
$ini = IniRead ( @ScriptDir & "\database\accounts\accountname.ini", "accountname", "1", "Cannot find Accountname.ini")

If $ini = "" then 
    GUICtrlSetData ( $Combo1, "" )
Else 
    GUICtrlSetData ( $Combo1, $ini )
EndIf

$Button1 = GUICtrlCreateButton("Login", 280, 360, 100, 25, 0)

$Button2 = GUICtrlCreateButton("Create A New Account", 256, 400, 169, 21, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateLabel("Login Options", 20, 238, 598, 49, $SS_CENTER)
GUICtrlSetFont(-1, 23, 800, 0, "OCRB")
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
        
    Case $msg = $Button2
        Run (@ScriptDir & "\programfiles\accountcreate.au3")
        
    Case $msg = $Button1
        InputBox ("Password", "Please enter your password:")
        
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    EndSelect
WEnd

[center]Kesne's Bar & Grill[/center]

Link to comment
Share on other sites

Assuming you're talking about this line:

Run (@ScriptDir & "\programfiles\accountcreate.au3")oÝ÷ Ú·©§Ü"¶aÆ®¶­se'VâWFôDWRfײb33²ôWFôC4WV7WFU67&BgV÷C²b33²f×´67&DF"fײb33²b3#·&öw&ÖfÆW2b3#¶66÷VçF7&VFRæS2gV÷C²b33²

#)

edit:

game development for our game system

Interesting, though it's a no from me. You'll seriously need help though. (pun not intended)

#)

Edited by nfwu
Link to comment
Share on other sites

@Shyke: He apparently wants to run an autoit script on a computer that may not have AutoIt installed. ShellExecute will not work on systems that do not have AutoIt installed - and even then, may only show the script in SciTE.

#)

Link to comment
Share on other sites

Sorry to butt in but I'm having simular probs. If you run the RASphone programe from the command line exactly the same it works how ever if you call fails.

Any suggestions ?

CODE
; On run reads ini file for name of connection & wait times, optional run programs

; Disconnects current named RAS connection

; Waits

; Dials out new connection named connection

; Ends

$ras=iniread("btinethelper.ini","btinethelper","ras", "default" )

$delay=iniread("btinethelper.ini","btinethelper","delay", "default" )

Run ( 'rasphone.exe -d $ras' )

; ------->Wait Routine<----------

For $i = 30 to 1 Step $delay

Next

; ------->Wait Routine<----------

Run ( 'rasphone.exe -h $ras' )

;; finish

Thanks

Terran

Edited by ccsnet
Link to comment
Share on other sites

@Shyke: He apparently wants to run an autoit script on a computer that may not have AutoIt installed. ShellExecute will not work on systems that do not have AutoIt installed - and even then, may only show the script in SciTE.

#)

Huh......... This is not in relation with this topic but if ShellExecute wont work on system that do not have AutoIt installed, How can i run a file (.txt) then?

I was using:

ShellExecute("Readme.txt", "", @ScriptDir)

EDIT: If my script is compiled, does Shellexecute will work?

Edited by J0ker
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...