Jump to content

Auto-open with autoit?


Recommended Posts

i'm scripting a sudoku-program, that also can save and load sudoku's.

in windows, you can open a file by clicking on it and it will start the program

AND open the file in it.

q: is this possible with autoit, and if yes, who???

Edited by rakudave
Link to comment
Share on other sites

Compile to exe, and the first param sent to the exe would be the full path of the file that is being opened

If $cmdline[0] > 0 Then
Run(@COMSPEC & ' /c notepad.exe ' & $cmdline[1])
EndIf

Compile that code, associate a text file to it, and it will auto-open those files in notepad...

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
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...