View Single Post
Old 12-20-2018, 06:36 AM   #11
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default

Quote:
Originally Posted by lb0 View Post
Can you post the code where you're doing it?
Code:
-- Script generated by Lokasenna's GUI Builder


local lib_path = reaper.GetExtState("Lokasenna_GUI", "lib_path_v2")
if not lib_path or lib_path == "" then
    reaper.MB("Couldn't load the Lokasenna_GUI library. Please run 'Set Lokasenna_GUI v2 library path.lua' in the Lokasenna_GUI folder.", "Whoops!", 0)
    return
end
loadfile(lib_path .. "Core.lua")()

GUI.req("Classes/Class - Textbox.lua")()
GUI.req("Classes/Class - Button.lua")()
GUI.req("Classes/Class - Label.lua")()
GUI.req("Classes/Class - Options.lua")()
-- If any of the requested libraries weren't found, abort the script.
if missing_lib then return 0 end


GUI.name = "Reaper DAW Interface"
GUI.x, GUI.y, GUI.w, GUI.h = 245, 420, 1100, 250
GUI.anchor, GUI.corner = "mouse", "C"


local function Init()
	reaper.Main_OnCommand(40262) -- Enable Auto-View-Scroll while Recording
	reaper.Main_OnCommand(41172) -- Dock/undock currently focused window
	local f=io.open("C:/ProgramData/Reaper/RDI.rdi","r")
	if f~=nil then
		io.close(f)
		os.remove("C:/ProgramData/Reaper/RDI.rdi")
	end
	local f=io.open("C:/ProgramData/Reaper/GSN.rdi","r")
	if f~=nil then
		io.close(f)
		os.remove("C:/ProgramData/Reaper/GSN.rdi")
	end
	local f=io.open("c:/ProgramData/Reaper/RDIParseToDatabase.rdi","r")
	if f ~= nil then
		feDB:close(f)
		os.remove("c:/ProgramData/Reaper/RDIParseToDatabase.rdi")
	end
	gfx.loadimg(100,"C:/OneDriveTemp/OneDrive/Media Ministry/Logo.png") -- load imagefile into framebuffer 100
	gfx.x=5 -- set x-position to 5
	gfx.y=5 -- set y-position to 5
	gfx.blit(100,1,0) -- blit at x and y position in original size and unrotated
	gfx.update()
end

GUI.Init()
GUI.func = Main
GUI.freq = 0
GUI.Main()
That's some of it. I didn't include the declarations, elements, or functions.
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."
tXShooter is offline   Reply With Quote