Jump to content

Problems Running .exe


Guest Beefteck
 Share

Recommended Posts

Guest Beefteck

Ok, here is my problem:

I have made 2 scrpits... both i made into .exe but because they are in different folders it won't load it, i checked everything like a billion times and it should work... i moved the .exe's into the same folder and then it worked... anyone else having this problem???!!! because this program must be done by this coming week-end i really need help... thank-you guys!!! (and girls)

Link to comment
Share on other sites

Ok, here is my problem:

I have made 2 scrpits... both i made into .exe but because they are in different folders it won't load it, i checked everything like a billion times and it should work... i moved the .exe's into the same folder and then it worked... anyone else having this problem???!!! because this program must be done by this coming week-end i really need help... thank-you guys!!! (and girls)

Is the macro

@ScriptDir

in the line that runs the other script?

Link to comment
Share on other sites

Guest Beefteck

yes, yes sry bout that... i was really busy when doing this.... ok here is 2 codes....

1) make a folder in C:/ called "Keyed It Options v0.8"

2) Inside that make a folder called "Data"

3) Place "script 1" into the folder "Keyed It Options v0.8"

4) Place "script 2" into the folder "Data"

5) Compile them and try to run it... they do not work....

6) If you make the directory in the same folder (For example, Turn THIS: Run("script1.exe", "C:\Keyed It Options\Data\") INTO THIS: Run("script1.exe", "C:\Keyed It Options\")

7) Because they are in the same folder that is the only reason why they work...

Well dead line is only 6 days away... (o noo!) lol... here are the scripts thank-you guys for all the help!!! :whistle:

SCRIPT 1:

#cs ----------------------------------------------------------------------------
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.1.1.0 (BETA)
 Author:         Adam R Neveu (Beefteck) (kiosuppot@aol.com / adamn@rcn.com)

 Script Function:
    Keyed It Options v0.8 July 2006

#ce ----------------------------------------------------------------------------

;----------------------

;#NOTRAYICON

;----------------------


#include <GUIConstants.au3>
#include <Animatewindow.au3>

;----------------------

SoundPlay ( "C:\Keyed It Options v0.8\Data\sst.wma", 0)

Sleep(2000)

$GUI1 = GUICreate ("K.I.O v0.8",100,243, 913, 500, $WS_EX_TRANSPARENT, $WS_EX_TOPMOST)

GUISetBkColor (0xffdab9)

GUISetCursor ( 3, 1)

_WinAnimate($GUI1, $AW_FADE_IN)

;-------------------------------------------------------------

$exit1 = GUICtrlCreateButton ("Close", 70,0,40,20,$BS_ICON)
GUICtrlSetTip(-10,"Will close K.I.O Beta 3 v0.8")

$info1 = GUICtrlCreateButton ("Info", 30,0,40,20,$BS_ICON)
GUICtrlSetTip(-11,"About K.I.O Beta 3 v0.8")

$max1 = GUICtrlCreateButton ("More", 0,0,30,20,$BS_ICON)
GUICtrlSetTip(-12,"Will open the newest part of K.I.O Beta 3")

;-------------------------------------------------------------


$run1 = GUICtrlCreateButton ("run", 0,50,50,40,$BS_ICON)
GUICtrlSetImage (-1, "C:\Keyed It Options v0.8\Data\07.ico")
GUICtrlSetTip(-1,"Opens 'Run' Dialog")

$control1 = GUICtrlCreateButton ("control", 60,50,50,40,$BS_ICON)
GUICtrlSetImage (-2, "C:\Keyed It Options v0.8\Data\01.ico")
GUICtrlSetTip(-2,"Opens 'Control Pannel'")

$mail1 = GUICtrlCreateButton ("mail1", 60,90,50,40,$BS_ICON)
GUICtrlSetImage (-3, "C:\Keyed It Options v0.8\Data\08.ico")
GUICtrlSetTip(-3,"Runs your default mail program")

$network1 = GUICtrlCreateButton ("network", 0,130,50,40,$BS_ICON)
GUICtrlSetImage (-4, "C:\Keyed It Options v0.8\Data\03.ico")
GUICtrlSetTip(-4,"Opens your 'Network Places'")

$off1 = GUICtrlCreateButton ("off", 60,130,50,40,$BS_ICON)
GUICtrlSetImage (-5, "C:\Keyed It Options v0.8\Data\04.ico")
GUICtrlSetTip(-5,"Shuts down your computer")

$search1 = GUICtrlCreateButton ("search", 0,90,50,40,$BS_ICON)
GUICtrlSetImage (-6, "C:\Keyed It Options v0.8\Data\02.ico")
GUICtrlSetTip(-6,"Search your computer")

$closecd1 = GUICtrlCreateButton ("CD Close", 0,20,50,30,$BS_ICON)
GUICtrlSetImage (-7, "C:\Keyed It Options v0.8\Data\06.ico")
GUICtrlSetTip(-7,"Closes several CD Drives")

$opencd1 = GUICtrlCreateButton ("CD Open", 60,20,50,30,$BS_ICON)
GUICtrlSetImage (-10, "C:\Keyed It Options v0.8\Data\09.ico")
GUICtrlSetTip(-10,"Opens several CD Drives")

$bin1 = GUICtrlCreateButton ("bin", 0,170,50,40,$BS_ICON)
GUICtrlSetImage (-8, "C:\Keyed It Options v0.8\Data\10.ico")
GUICtrlSetTip(-8,"Opens your 'Recycling Bin'")

$pc1 = GUICtrlCreateButton ("My PC", 60,170,50,40,$BS_ICON)
GUICtrlSetImage (-9, "C:\Keyed It Options v0.8\Data\05.ico")
GUICtrlSetTip(-9,"Opens 'My Computer'")

;-------------------------------------------------------------

GUISetState()

;-------------------------------------------------------------



While 1
    
        $msg = GUIGetMsg()

;-------------------------------------------------------------

If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then SoundPlay ( "C:\Keyed It Options v0.8\Data\ssd.wma", 0)
    If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then Sleep(2000)
            If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then _WinAnimate($GUI1, $AW_FADE_OUT)
                If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then ExitLoop

;-------------------------------------------------------------

If $msg = $info1 Then MsgBox(8256,"About","This is a GUI hand scripted program by Beefteck. This program (Keyed It Options) is an easier way of using many diffrent options on your computer. All you do is look at the button labled for the option you want to run then click on it. Keyed It Options will get the job done, QUICK, FAST, and EFFECTIVLY. For more info go to (site not yet running)")        

If $msg = $info1 Then MsgBox(8256, "Version Info", "Welcome to Keyed It Options Beta 3 v0.8 Made July 21st 2006. In this version we have added nice smooth graphics, better handle over CD Drives, custom sounds, slash screen, AND BEST OF ALL 2 APPS!!! PSProKIO v0.1 Beta 1 and Desktop Paint v0.1 Beta 1 have both hit K.I.O and they are makeing a big mark. Keyed It Options Beta 3 v0.8 acts as a tool bar like program that will stay on top of everything and start above your clock, then you can move K.I.O to any position on your screen . It is a simple easy accsess program that will handle some tasks. The tasks are the same as the last version but the next version will have more (no update for the apps in next version, only tasks, apps are the one after that). For more info please read the ReadMe file or questions/comments e-mail us at kiosuppot@aol.com (P.S the e-mail address IS kios-u-p-p-o-t@aol.com)",0)

If $msg = $info1 Then MsgBox(8256, "Donate", "Thank-you for wanting to donate! At this time we can only accept cash to one of our mailboxes if you would like to donate please send and e-mail with the subject donate to kiosuppot@aol.com Thank-you.")
;-------------------------------------------------------------

If $msg = $run1 Then Send("{LWINDOWN} r {LWINUP}")

If $msg = $control1 Then Run("Control Panel")

If $msg = $mail1 Then Send("{LAUNCH_MAIL}")

If $msg = $network1 Then FileSelectFolder ("Your Network", "::{208D2C60-3AEA-1069-A2D7-08002B30309D}", 1) 

If $msg = $search1 Then Send("{BROWSER_SEARCH}")

If $msg = $bin1 Then FileSelectFolder ("Your Dump", "::{645FF040-5081-101B-9F08-00AA002F954E}", 1) 

If $msg = $pc1 Then FileSelectFolder ("Your Computer", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", 1) 

If $msg = $closecd1 Then CDTray ( "D:", "close" )
    If $msg = $closecd1 Then CDTray ( "E:", "close" )
        If $msg = $closecd1 Then CDTray ( "F:", "close" )
            If $msg = $closecd1 Then CDTray ( "G:", "close" )

If $msg = $opencd1 Then CDTray ( "D:", "open" )
    If $msg = $opencd1 Then CDTray ( "E:", "open" )
        If $msg = $opencd1 Then CDTray ( "F:", "open" )
            If $msg = $opencd1 Then CDTray ( "G:", "open" )

If $msg = $off1 Then Shutdown(9)

If $msg = $max1 Then Run ( "kiomore.exe", "C:\Keyed It Options v0.8\Data\")
    If $msg = $max1 Then _WinAnimate($GUI1, $AW_FADE_OUT)
                If $msg = $max1 Then ExitLoop
;-------------------------------------------------------------


;-------------------------------------------------------------

Wend

GUIDelete()

SCRIPT 2:

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.1.1.0 (BETA)
 Author:         Adam R Neveu (Beefteck) (kiosuppot@aol.com / adamn@rcn.com)

 Script Function:
    Keyed It Options v0.8 - Extra July-August 2006

#ce ----------------------------------------------------------------------------

;----------------------

;#NOTRAYICON

;----------------------


#include <GUIConstants.au3>
#include <Animatewindow.au3>

;----------------------

SoundPlay ( "C:\Keyed It Options v0.8\Data\sstm.wma", 0)

Sleep(4500)

$GUI1 = GUICreate ("K.I.O v0.8 - Extra v0.1 Beta 1",100, 740, 913, 0, $WS_EX_TRANSPARENT, $WS_EX_TOPMOST)

GUISetBkColor (0xffdab9)

GUISetCursor ( 3, 1)

_WinAnimate($GUI1, $AW_FADE_IN)

;-------------------------------------------------------------

$exit1 = GUICtrlCreateButton ("Close", 70,0,40,20,$BS_ICON)
GUICtrlSetTip(-1,"Will close K.I.O Beta 3 v0.8 - Extra v0.1")

$info1 = GUICtrlCreateButton ("Info", 30,0,40,20,$BS_ICON)
GUICtrlSetTip(-2,"About K.I.O Beta 3 v0.8 - Extra v0.1")

$back1 = GUICtrlCreateButton ("Back", 0,0,30,20,$BS_ICON)
GUICtrlSetTip(-3,"Will restore back to the original size.")

;-------------------------------------------------------------

$color1 = GUICtrlCreateButton ("Desktop Paint v0.1 Beta 1", 0,20,40,40,$BS_ICON)
GUICtrlSetImage (-1, "C:\Keyed It Options v0.8\Data\11.ico")
GUICtrlSetTip(-1,"Opens the add-on Desktop Paint v0.1 Beta 1")

;-------------------------------------------------------------

GUISetState()

;-------------------------------------------------------------



While 1
    
        $msg = GUIGetMsg()

;-------------------------------------------------------------

If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then SoundPlay ( "C:\Keyed It Options v0.8\Data\sshm.wma", 0)
    If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then Sleep(7500)
            If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then _WinAnimate($GUI1, $AW_FADE_OUT)
                If $msg = $GUI_EVENT_CLOSE Or $msg = $exit1 Then ExitLoop

;-------------------------------------------------------------

If $msg = $info1 Then MsgBox(8256,"About","This is a GUI hand scripted program by Beefteck. This program (Keyed It Options) is an easier way of using many diffrent options on your computer. All you do is look at the button labled for the option you want to run then click on it. Keyed It Options will get the job done, QUICK, FAST, and EFFECTIVLY. For more info go to (site not yet running)")        

If $msg = $info1 Then MsgBox(8256, "Version Info", "Welcome to Keyed It Options Beta 3 v0.8 - Extra v0.1 Beta 1 Made July - August 2006. In this version we have added nice smooth graphics, better handle over CD Drives, custom sounds, slash screen, AND BEST OF ALL 3 Add-ons!!! PSProKIO v0.1 Beta 1, Desktop Paint v0.1 Beta 1, and K.I.O Beta 3 v0.8 - Extra v0.1 Beta 1 have all hit K.I.O and they are makeing a big mark. Keyed It Options Beta 3 v0.8 acts as a tool bar like program that will stay on top of everything and start above your clock, then you can move K.I.O to any position on your screen .When using this add-on K.I.O will become larger with more tasks and stay above everything, we understand that it can get in the way so we made it possible to make it back to it's orriginal state.=====TASKS=====. For more info please read the ReadMe file or questions/comments/donations e-mail us at kiosuppot@aol.com (P.S the e-mail address IS kios-u-p-p-o-t@aol.com)",0)

If $msg = $info1 Then MsgBox(8256, "Donate", "Thank-you for wanting to donate! At this time we can only accept cash to one of our mailboxes if you would like to donate please send and e-mail with the subject 'Donate' to kiosuppot@aol.com Thank-you.")
;-------------------------------------------------------------

If $msg = $back1 Then Run ( "K.I.O v0.8.exe", "C:\Keyed It Options v0.8\")
    If $msg = $back1 Then _WinAnimate($GUI1, $AW_FADE_OUT)
                If $msg = $back1 Then ExitLoop
;-------------------------------------------------------------

If $msg = $color1 Then MsgBox(0, "SRY!", "Sry i did not have time to do this yet",0)
    If $msg = $color1 Then Run ( "Desk Top Paint Menu v0.1 Beta 1.exe", "C:\Keyed It Options v0.8\")


;-------------------------------------------------------------

Wend

GUIDelete()
Link to comment
Share on other sites

You are not specifing the paths to the files to run in your script If you want to run a file in another directory, then you need to supply a valid absolute, or use relative addressing with the knowledge of the working directory. Using FileChangeDir is a method to permanently change the working directory that could also be used.

; in C:\Keyed It Options v0.8\
Run (@ScriptDir & "\kiomore.exe", "C:\Keyed It Options v0.8\Data\")

; in C:\Keyed It Options v0.8\Data
Run (@ScriptDir & "\..\K.I.O v0.8.exe", "C:\Keyed It Options v0.8\")
Run (@ScriptDir & "\..\Desk Top Paint Menu v0.1 Beta 1.exe", "C:\Keyed It Options v0.8\")
oÝ÷ Ù±ßÛ"ÙË
+·­µêåG­+²+p¢é][z«uÊ{­­Æ®¶­s`£²â3¢b3#´¶WVBB÷Föç2cãb3#°¥'Vâ67&DF"fײgV÷C²b3#¶¶öÖ÷&RæWRgV÷C²Â67&DF"fײgV÷C²b3#´FFb3#²gV÷C² £²â3¢b3#´¶WVBB÷Föç2cãb3#´FF¥'Vâ67&DF"fײgV÷C²b3#²ââb3#´²ääòcãæWRgV÷C²Â67&DF"fײgV÷C²b3#²ââb3#²gV÷C²¥'Vâ67&DF"fײgV÷C²b3#²ââb3#´FW6²F÷çBÖVçRcã&WFæWRgV÷C²Â67&DF"fײgV÷C²b3#²ââb3#²gV÷C²
Edited by MHz
Link to comment
Share on other sites

I see deadlines and money...

They'll be shared with those that helped, won't they? :)

Hint: Why not combine your two programs into one, and then it won't matter which folder it is in?

Comment: Your sound file has a hard coded location. Why not FileInstall it in the @SCRIPTDIR?

Lotsa ideas in the help file - you should be able to read it in five days. :whistle:

Link to comment
Share on other sites

Guest Beefteck

ok, cool this seems to be wut i need... i will try it out tommorow.... and the programs are combined in my full version and it is under like a general user licence under my name sooo idk i could get $$$ for this project... i will see... o well ty for that help let me see if it works lada... bye! :whistle:

hmmm. it dont seem to work... well i will try again tommorow (i tried it tonite a little) lol

Edited by Beefteck
Link to comment
Share on other sites

Guest Beefteck

it dont seem to work, even when compiled....

for more info on this let me give u a folder structure of it...

1) C:\

2) C:\Keyed It Options v0.8\ =====>Basic Program w/ read me

3) C:\Keyed It Options v0.8\Data ======> icons, sounds, and other stuff

4) C:\Keyed It Options v0.8\Data\app\ =====> Where the Add-on apps go, kiomore, Desktop Paint, PSProKIO ect.

5) C:Keyed It Options v0.8\Data\app\appdat\ =====> Where the data for the Add-ons go, Red, Blue, etc.

hope this helps... i really need help on this... ty alot !!!

Edited by Beefteck
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...