Announcement

Collapse
No announcement yet.

I Need Help With File Association

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Add your file association code to link the file extension to this program and run it. This version should work with Web Executable builds as well.
    Attached Files
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #17
      Originally posted by charliechaps View Post
      Did you try the project plugin by Centauri , it gives you the file path of the calling file



      So then you can use that to load your file into Grid / Input / Para etc - That is assuming that you have got your file assocation to open your program
      This is exactly what I was looking for!

      Actions >> On Startup
      Code:
      dosyaTablo = Project.GetFileCode(".rkl");
      if dosyaTablo.Code == 1 then
          dosya = dosyaTablo.File;
          Page.Jump("KListesi");
      elseif dosyaTablo.Code == -1 then
          Dialog.Message("Hata", "Ne yazık ki bu dosya türünü tanımıyoruz.");
      end
      I thank you a million times for your help!

      Comment


      • #18

        Finally someone who understands what many people want: Create a program with a custom extension (ex: .jkv) in which, when you open it, it reads the text of the file opened by that extension (ex: .jkv). Sorry for coming back here so late.

        Comment


        • #19

          I don't know if there is anyone online nowadays in this forum. But there is always someone who does their best to help other users of the program (AUTOPLAY MEDIA STUDIO).

          Comment


          • #20
            Originally posted by mburaksaglik View Post

            This is exactly what I was looking for!

            Actions >> On Startup
            Code:
            dosyaTablo = Project.GetFileCode(".rkl");
            if dosyaTablo.Code == 1 then
            dosya = dosyaTablo.File;
            Page.Jump("KListesi");
            elseif dosyaTablo.Code == -1 then
            Dialog.Message("Hata", "Ne yazık ki bu dosya türünü tanımıyoruz.");
            end
            I thank you a million times for your help!
            A new problem has appeared 😞
            Project plugin is no longer available because the AAA plugin license period has expired.

            Please help me to fix this issue 🙏😢
            Or if you know a method where I can do the same function without using a plugin, please share it with me.

            Comment


            • #21
              I managed to solve the problem by getting faster results without using an external plugin.

              Solution :
              Global Functions
              Code:
              function DosyaUzantisiAl(url)
              return url:match("^.+(%..+)$")
              end
              
              function dosyakontrol()
              local degiskenturu = type(_CommandLineArgs[1]);
              if (degiskenturu == "string") then
              dosyauzantisi = DosyaUzantisiAl(dosyaTablo.File);
              dosyaTablo.Code = 1;
              end
              end
              Actions/On Startup
              Code:
               dosyakontrol();
              if (dosyaTablo.Code == 1) then
              if (dosyauzantisi == ".rkl") then
              dosya = dosyaTablo.File;
              Page.Jump("KListesi");
              else
              Dialog.Message("Hata", "Ne yazık ki bu dosya türünü tanımıyoruz.");
              end
              end

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎