Jump to content


Photo

Init file, bind key command not working


    2 replies to this topic

    #1 Gukai

    Gukai

      Advanced Member

    • Members
    • PipPipPip
    • 95 posts

      Posted 19 August 2014 - 12:37 AM

      Hello

      In the init file I have made commands to bind certain commands such as opening sack,satchel,case,wardrobe.  

       

      I'm trying to make a command to help me toggle between sets in lua.  

       

      So the command is, if i were type from the chat bar, //gs c toggle TP set

       

      I wanted to bind that to a key.  I typed in the init file:   bind ^q input //gs c toggle TP set

      didnt work

      Tried it as:  bind ^q input "//gs c toggle TP set"

      didnt work.

       

      Verified that typing //gs c toggle TP set does work.  Something is wrong with the bind key command I wrote.  Please help, and thank you!



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 19 August 2014 - 12:56 AM

      Try putting this in your init.txt:
      bind ^q input /echo Success!

       

      Then try Ctrl+Q and see if it prints that to the chatlog. If that works, you know it's being bound correctly.

       

      While the way you did it should not be a problem, try this instead:
      bind ^q gs c toggle TP set

       

      "input //" is pretty much never needed and can be removed (there are some cases when they produce different results, but not usually something you need to worry about).

       

      "input" inputs whatever follows into the chatlog, hence "input //" just inputs the Windower command behind the "//", but "input" itself is a Windower command, so you can as well use it directly, without inputting it into the chatlog first.



      #3 Gukai

      Gukai

        Advanced Member

      • Members
      • PipPipPip
      • 95 posts

        Posted 31 August 2014 - 10:32 PM

        Sorry for late reply, I only was able to test this out last week!  Still making Lua's and finally got to play a job that has a lua made for it.  The commands you provided me worked, thank you so so much  :)






        1 user(s) are reading this topic

        0 members, 1 guests, 0 anonymous users