Get Selected Element?

  • baizuo
    18th Dec 2012 Member 0 Permalink

    I tried tpt.selectedl/selectedr, all I got is something like 9258936

    FYI, it won't change when I change the selection, it only changes after each TPT launch

     

     

    Like this

    tpt.log(tpt.selectedl)          >>9258936

  • boxmein
    18th Dec 2012 Former Staff 0 Permalink
    Seems like it's malfunctioning.. Tell a mod
  • jacob1
    18th Dec 2012 Developer 0 Permalink
    We actually already know about this, I just haven't had time to attempt to fix it, i'm putting off fixing lua bugs (there are a lot) in order to fix other things that affect more people. A lot of scripts are broken though.
  • baizuo
    18th Dec 2012 Member 0 Permalink

    @jacob1 (View Post)

     So it's an accident... I thought I were done something wrong :[

    Then I'll just wait.

     

    BTW, fs.isFile/fs.isDirectory is ... broken in an interesting way: (windows)

    fs.isFile("C:/")                          >>true

    fs.isDirectory("C:/testFile.7z")    >>true