my main code have a thread and inside that all have the #include to use the lib outside but when i compiling the #include do not combine the lib ahk to exe so after compiled it still need a lib ahk
this is my main script
Code: Select all
#NoEnv
#NoTrayIcon
#SingleInstance force
#persistent
CoordMode, ToolTip, Screen
SetBatchLines, -1
myUI =
(`
#include <Gdip_All>
#include <BTT>
#include <NonNull>
#Persistent
#NoTrayIcon
SetBatchLines, -1
global object:= object(A_Args.1)
loop {
if(object.toggle){
gosub, GetStyles
btt("hi",,,,OwnStyle3)
}else{
btt()
}
}
GetStyles:
OwnStyle3 := {TextColor:0xffffffff
, BackgroundColor:0x00ffffff
, FontSize:14}
return
)
global PinkTeddy := CriticalObject()
PinkTeddy.toggle := true
global thread2 := AhkThread(myUI,(&PinkTeddy))