Ventura

How to run/open files inside compiled script?

5 posts in this topic

#1 ·  Posted (edited)

I have  this simple GUI code here, I wanted to run/open files as title says, inside a compiled script instead of using FileInstall, I have added files with Wrapper, but the only way I can run/open it is to use FileInstall and run normally which I know.. so if I click run file in GUI it will run the file insdie the compiled .exe, so is this possible? i have searched around and didn't seen a topic for it.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_File_Add=C:\server\serverstart.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form = GUICreate("Run", 278, 127, 316, 216)
$Button = GUICtrlCreateButton("Run file", 82, 43, 113, 41)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button

    EndSwitch
WEnd

 

Edited by Ventura

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

Are you wanting to run an app that shows in your GUI?

As would appear that the file is a part of your .exe?

Share this post


Link to post
Share on other sites

I mean run file inside the .exe

Normally we use FileInstall but i want without the need of FileInstall and run/open the file inside the .exe I compiled..

I have read those posts in above links and I can't seem to understand anything to hard for me.. i'm novice to this... maybe if someone can show me how to use them.

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