Jump to content

Run external script


mud409
 Share

Recommended Posts

Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript' & "c:\scriptdir\script.au3"')

How would I use @scriptdir instead of defining the full path?

I know, compiling to exe would make it so much easier, but the exe I'm trying to include with my script (created with autoit) is reported as a virus by some cheap AV programs. I'd like to give the user an option to download autoit, and use a .au3 instead of a .exe (supposedly some AV programs will not allow exceptions, and will delete the file instantly).

Link to comment
Share on other sites

I know, compiling to exe would make it so much easier, but the exe I'm trying to include with my script (created with autoit) is reported as a virus by some cheap AV programs. I'd like to give the user an option to download autoit, and use a .au3 instead of a .exe (supposedly some AV programs will not allow exceptions, and will delete the file instantly).

Maybe if you give us the code in the script you are trying to run, we could tell you why it is being detected by AV, its up to you.

shanet

[font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS:

%programfiles%/AutoIt3/autoit3.chm
Link to comment
Share on other sites

It's just a simple _GetIP script. The program I'm automating is a p2p game client (that's for a bunch of different games), and requires the user to share their IP with others (manual copy and paste). It used to have this feature built in, but since the original author's site is down, the feature is broken. My script is to fix these broken features.

#include <Inet.au3>

AutoItSetOption("TrayIconHide", 1)

$PublicIP = _GetIP()

MsgBox(262144, "IP Address", $PublicIP & " has been copied.")

ClipPut($PublicIP)

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