Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ Enter Text Into Miniwindow

Enter Text Into Miniwindow

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Sediket   (10 posts)  Bio
Date Tue 25 Sep 2018 04:51 PM (UTC)
Message
This is a cosmetic question. I use multiple chat miniwindows which requires Mushclient to be maximized or expanded to a big portion of the screen. This seems to be the best way to utilize the miniwindows.

So I have lots and lots of text maps and notes saved in txt files so I made some aliases to list all the files in a directory/search and open with notepad from within Mushclient.

But, given the size of the Mushclient on my laptop, notepad or Mushclient will take the foreground. So, what I would love to do is have the txt file open up in a miniwindow and be able to make changes to it there. Looking at the miniwindow code it looks super challenging so I'm wondering if this has been done by someone else or if it's even possible without being super and ultra complicated?

BTW I don't post too much on here and I've been using Mushclient for many years, it's very awesome!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 25 Sep 2018 05:45 PM (UTC)
Message
There is no support for that. One thing you would have to introduce is the concept of focus to the miniwindows because normally what you type goes to command window at the bottom of the world window.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Sediket   (10 posts)  Bio
Date Reply #2 on Tue 25 Sep 2018 05:54 PM (UTC)
Message
Thanks for the response. Do you have pointers into just reading a text file into a mini window?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 26 Sep 2018 05:10 AM (UTC)
Message
I’m on holidays just now, so I’m unable to give a detailed answer to that question, sorry.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Sediket   (10 posts)  Bio
Date Reply #4 on Wed 26 Sep 2018 05:35 PM (UTC)
Message
Oh, no problem, enjoy :D
Top

Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Reply #5 on Wed 26 Sep 2018 08:12 PM (UTC)

Amended on Wed 26 Sep 2018 08:13 PM (UTC) by Fiendish

Message
Quote:
Do you have pointers into just reading a text file into a mini window?


Well, to put it into terms you're already familiar with...

You're already using chat miniwindows to display lines of text from the game, right?

You could do exactly the same thing except instead of displaying lines from the game you could open the file and display lines from that.

Per https://www.gammon.com.au/scripts/doc.php?lua=f:lines you would do something like


f = io.input("your_text_file.txt")
for line in f:lines() do
      -- SEND THE line TO YOUR CHAT MINIWINDOW HERE
end 
f:close()

https://github.com/fiendish/aardwolfclientpackage
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


24,506 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.