MMOMinion

Full Version: clilpboard functions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a function that would allow me to place text on the windows clipboard?

I have a button on my GUI window that, if clicked, would put text on the clipboard, but I can't figure out how to do it.

This is my code snippet:

Code:
          if (GUI:Button("Copy location to clipboard",200,15) ) then
            local     ClipText = '["mapid"] = '..MapID..';\n'
            ClipText = ClipText..'["pos"] = {\n'
            ClipText = ClipText..'  ["x"] = '..PosX..';\n'
            ClipText = ClipText..'  ["y"] = '..PosY..';\n'
            ClipText = ClipText..'  ["z"] = '..PosZ..';\n'
            ClipText = ClipText..'  ["h"] = '..PosH..';\n'
            ClipText = ClipText..'};\n'
--            clipboard.settext(ClipText)
          end

I've found an LUA module called clipboard.dll on the interwebs (http://luaforge.net/projects/jaslatrix/), but when I tried to use the require function I got a console error:  failed with
    [string "C:\Games\FFXIV\MinionApp\Bots\FFXIVMinion64\LuaMods\/DataSave/DataSave.lua"]:1: attempt to call global 'require' (a nil value)

I even tried to add it to my module.def file: Dependencies=minionlib,clipboard, but I got a console error: [CLuaModuleManager::InitalizeModule] - Module clipboard.dll not found.

Is there a specific folder I should put it in?

Will this even work?

Does Minion already have clipboard functions that I should be using?

I would appreciate any help you can give me.