Author Topic: Chat command to open webpage window?  (Read 1435 times)

0 Members and 1 Guest are viewing this topic.

Offline nicwillu

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
Chat command to open webpage window?
« on: May 10, 2014, 04:16:36 PM »
Greetings. A long time ago after googling like crazy, I found this piece of lua code which upon a chat command, opens up a webpage window with set dimensions (in pixels).

And I've tried to find this and I haven't managed to do so, I've only found the gui.OpenURL-version which opens up the steam browser, which is not what I want to do.

Ex. "!google" would open up a simple window displaying google.

Help appreciated!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Chat command to open webpage window?
« Reply #1 on: May 10, 2014, 04:36:00 PM »
Go to our developers corner section of the forums, then, in the search box near top of screen, search for "openURL"
There are many discussions regarding 'custom' mord type page commands, perhaps one of them will lead you on your way
If not, ask in one of the discussions that at least is the closest to what you want.
Our own ULX motd code allows setting of a external website, and indeed uses the OpenURL command within confines of a set size.


"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming