<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 1 sept. 2019 à 14:23, Stefan Löffler <<a href="mailto:st.loeffler@gmail.com">st.loeffler@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div class="gmail-m_-6199183557076520386moz-cite-prefix">Hi,<br></div></div></blockquote><div><br></div><div class="gmail-m_-6199183557076520386moz-cite-prefix"><div style="font-family:verdana,sans-serif" class="gmail_default">Hi Stefan,<br></div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div>
      On 29.08.19 23:09, Christophe Devalland wrote:<br>
    </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <blockquote type="cite">
      
      <div dir="ltr">I had a lua script for several years and after I
        updated texworks (now version 0.6.3), I have two issues for this
        script :
        <div style="font-family:verdana,sans-serif"><br>
        </div>
        <div style="font-family:verdana,sans-serif">1) the line :</div>
        <div style="font-family:verdana,sans-serif">TW.information(parent,"foo1",
          "foo2") <br>
        </div>
        <div style="font-family:verdana,sans-serif">shows :<br>
        </div>
        <div style="font-family:verdana,sans-serif">
          <p style="margin:0px;text-indent:0px;white-space:pre-wrap"> __call: couldn't call information with the given arguments</p>
        </div>
      </div>
    </blockquote>
    <br>
    This works fine for me - what system are you using, and what is
    "parent"? Can you post a minimal working example (MWE)?<br></div></blockquote><div><br></div><div><div style="font-family:verdana,sans-serif" class="gmail_default">I use Linux mint 18 (I updated it a few days ago)<br></div><div style="font-family:verdana,sans-serif" class="gmail_default">I don't remember why I wrote "parent" but it's the same issue with "null"</div><div style="font-family:verdana,sans-serif" class="gmail_default">Here is a MWE :</div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:verdana,sans-serif" class="gmail_default">--[[TeXworksScript<br>Title: test TW.information lua<br>Description: Bascule mode corrigé<br>Author: Christophe Devalland<br>Version: 1<br>Date: 2019-09-05<br>Script-Type: standalone<br>Context: TeXDocument<br>Shortcut: Shift+Ctrl+C<br>]]<br><br>TW.information(null,"test", "test")<br></div></blockquote><div><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">I get :<div><img src="cid:ii_k074zcz00" alt="image.png" width="502" height="143"><br></div></div></div><div><div style="font-family:verdana,sans-serif" class="gmail_default">ans shortcut doesn't work. If I change C to W for example, it's OK.</div><div style="font-family:verdana,sans-serif" class="gmail_default">I already changed shortcuts.ini file before I updated texworks. This is my shortcuts.ini :</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:verdana,sans-serif" class="gmail_default">actionReplace = <br>actionShow_Selection = <br></div></blockquote><div style="font-family:verdana,sans-serif" class="gmail_default">Then I don't understand why the shortcut doesn't work. Perhaps it's now a linux mint shortcut after my update, but I didn't find such a shortcut in the system.</div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">I tried the same script in javascript :</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:verdana,sans-serif" class="gmail_default">// TeXworksScript<br>// Title: test TW.information JS<br>// Description: test JS<br>// Author: Christophe Devalland<br>// Version: 1<br>// Date: 2019-09-05<br>// Script-Type: standalone<br>// Shortcut: Shift+Ctrl+C<br>// Context: TeXDocument<br><br>TW.information(null,"test", "test")</div></blockquote><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">It's ok for the message box (but still not for the shortcut !).<br></div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"> <span class="gmail_default" style="font-family:verdana,sans-serif"></span>This shortcut is used by default by the new Edit > Insert
    Citations... menu item. If two actions use the same shortcut,
    neither is triggered as the system does not know which one you are
    aiming for.<br>
    To work around this, either assign another shortcut to your script,
    or assign a different one to <span class="gmail_default" style="font-family:verdana,sans-serif"></span>actionInsert_Citations in shortcut.ini.</div></blockquote><div bgcolor="#FFFFFF"><br></div><div bgcolor="#FFFFFF"><div style="font-family:verdana,sans-serif" class="gmail_default">I add <br></div><div style="font-family:verdana,sans-serif" class="gmail_default">actionInsert_Citations = Ctrl+Shift+W</div><div style="font-family:verdana,sans-serif" class="gmail_default">in my shortcuts.ini (and this shortcut works) but my Ctrl+shit+C still not works :-(</div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">Thanks for advices...</div><div style="font-family:verdana,sans-serif" class="gmail_default">regards<br></div><div style="font-family:verdana,sans-serif" class="gmail_default"></div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

</blockquote></div></div>