Sign in to follow this  
Followers 0
1bobby

Edit and compile from portable HDD

5 posts in this topic

I have a small USB portable Hard Disk Drive. I would like to install the Autoit software to the HDD then I could execute the (Autoit) application on any computer and be able to change or compile script as required on any computer with out installing the Autoit software on that computer. When you down load the package and install it, you don't get the option of where to install the software. Is this possible and how would I do it.

This would expedite the creation of scrip programs.

Thank you, a newbee

:">

Share this post


Link to post
Share on other sites



I believe the Aut2Exe works independing of installation directory, but I'm not sure.

Here's the portable app concept. Let's imagine you want to open scite from the portable drive and hit F5 to run the script. Scite looks on it's configuration file for the path and file name of autoit. Scite finds C:\program files\autoit\autoit.exe. But you need it to look at H:\Autoit\autoit.exe. This tells you that the path is variable. You need an environment variable.

You must open scite's config file for editing. You're gonna use an environment variable like %AUTOITDIR%. In AutoIt there's a function to set environment variables, but I don't remember it's name now. So, put in Scite's configuration file: %AUTOITDIR%\autoit.exe

You must always use a compiled script to run scite, because the script must set the environment variable %AUTOITDIR% to @ScriptDir before it runs scite.exe.

I believe that's simple to implement, although my explanation was a little confusing. Here are the steps:

- You run PortableScite.exe.

- PortableScite.exe checks it's path using @ScriptDir.

- PortableScite.exe sets %AUTOITDIR% with the @ScriptDir value.

- PortableScite.exe launches Scite.exe

- Scite.exe reads it's configuration file to get autoit.exe's path. It reads %AUTOITDIR%\autoit.exe

- Scite.exe runs %AUTOITDIR%\autoit.exe. It works, and autoit.exe is launched from the portable device.


[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites

Spammer - in the qurey for the portable hard disk drive you talk about a program called "PortableScite.exe" which I have not been able to locate. I am still having problems with trying to run autoit, scite, or the script from a portable hard disk drive. I would really like to carry all the programs that I am working on and the software on the HDD. Guess I am missing something someplace. This should make debug and correction faster as I can set it up on a computer, write it, debut it and compile it and leave no trace of Autoit. As you can see I don't get a lot of time to work on this project.

newbee :shocked:

Share this post


Link to post
Share on other sites

Spammer - in the qurey for the portable hard disk drive you talk about a program called "PortableScite.exe" which I have not been able to locate. I am still having problems with trying to run autoit, scite, or the script from a portable hard disk drive. I would really like to carry all the programs that I am working on and the software on the HDD. Guess I am missing something someplace. This should make debug and correction faster as I can set it up on a computer, write it, debut it and compile it and leave no trace of Autoit. As you can see I don't get a lot of time to work on this project.

newbee :shocked:

Have you looked at what i recommended ?


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

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