Is it possible to use lua or some other method to load a jpg in a popup window via a trigger?
Mushclient Graphics?
Posted by Robert Powell on Fri 11 Jul 2008 09:20 AM — 2 posts, 15,092 views.
See this thread:
http://www.gammon.com.au/forum/?id=6581
Using the method described there I was able to load up a picture using the default viewer (in my case, Irfanview), by simply executing this line:
For this to work you need to have loaded windows_utils.dll, and enabled "Allow DLLs to be loaded" in the Lua sandbox.
Here is how to load the DLL:
The DLL is available for downloading from the MUSHclient download page (see button above).
http://www.gammon.com.au/forum/?id=6581
Using the method described there I was able to load up a picture using the default viewer (in my case, Irfanview), by simply executing this line:
assert (windows_utils.shell_execute ("c:\\my_picture.png"))
For this to work you need to have loaded windows_utils.dll, and enabled "Allow DLLs to be loaded" in the Lua sandbox.
Here is how to load the DLL:
assert (package.loadlib ("windows_utils.dll", "luaopen_windows_utils")) ()
The DLL is available for downloading from the MUSHclient download page (see button above).