Jump to content

Recommended Posts

Posted

just thought i would post this inf & maybe it would come in handy for someone..

if u rightclick a *.au3 file (autoit 3 script file) this adds a context menu entry executing the file autoit3.exe

Note: change the path (inf default path = %programfiles%\AutoIT)

%16422% = %programfiles% if anyone wasnt sure what it means.. rest is straight forward :)

Autoit.inf

[VERSION]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = autoit3

[DefaultUninstall]
DelReg = autoit3_Delete

[autoit3]
HKCR,".au3\shell\Open With AutoIT3\command",,,"%16422%\AutoIt\Autoit3.exe %1"
HKCR,".au3\shell\Compile AutoIT Script\command",,,"%16422%\AutoIT\Aut2Exe\Aut2exe.exe /in "%1" /out "%1".exe"

[autoit3_Delete]
HKCR,".au3"

you can execute this via cmdline by placing the following command:

Install

rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\Autoit.inf

Uninstall

rundll32 setupapi,InstallHinfSection DefaultUnInstall 128 .\Autoit.inf

the above code works if your batch file is in the same directory as the .inf file

Only Bug: when u compile the script.. the name of the script turns out to be <name>.au3.exe

Workaround: Rename it if u wish.. its still fully funtional tho :)


Posted

add a zip version? why :P u can download it from there site :P

i install it using INNO Setup & have this executed during setup :)

Posted

You can get the zip or installer. The zip would not have context execute?

I,ve only used the installer.

:hello:

Posted

huh :confused:

neither have a context menu execute entry.. thats why i made this :P

Update: Added "Compile AutoIT Script" to inf file :)

Posted

Oh, I also use Scite modified for Autoit. That must add context in for me. Did not notice that fact.

Can get Scite for Autoit from Autoit forum, if you like. It is fabulous. :thumbup

:D

Posted

@MCT

Just install Autoit v3.102 into VPC.

It has complie, edit and run script in context.

Maybe you have an earlier version.

:P

Posted

ive got it downloaded thanks :D no 1 has ever said anything about an update.. i never thought 2 check :P

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
  • Recently Browsing   0 members

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