Jump to content

Recommended Posts

Posted

so i tried to find the answer to this but couldnt. heres what i want to do. i am making a program that handles a filetype. the filetype is just a made up extension but its basically just an ini or text file. i want to be able to doubleclick on the filetype and have it open with the autoit exe where autoit would read the file and perform the rest of its function. i just dont know how to go about it. any ideas?

  • Moderators
Posted

bobbintb,

This might offer some help - look at the last post. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

thank you but that is not quite what im looking for. let me clarify a little. the autoit program i am writing isnt meant to be run without any arguments. so i plan on calling the program something like "mdlnk". it will handle ini files with the extension ".mdlnk". the issue im having is not with file association but with getting the autoit program to handle arguments. the program will never be run by "double clicking" on "mdlnk.exe" but will be run by opening a "*.mdlnk" file. the problem i have is once the file is associated, how do i pass arguments to the program so it knows what to do? i know how to write an autoit program to open a file but i dont know how to get an autoit program to handle a file passed to it .

  • Moderators
Posted

bobbintb,

Alas, neither do I when it is associated - I can only do it when the file is dropped onto the GUI. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

bobbintb,

After searching around I think it is passed as $CmdLine[1] - if that is not the case please let us know how you solved the problem so that others who find this thread can use the answer too. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

bobbintb,

Looks like we both stumbled on the same thing at the same time. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

Didn't work?

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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...