#include inside the thread can not combine in exe when compile

Ask for help, how to use AHK_H, etc.
nminhdangit
Posts: 2
Joined: 29 Oct 2022, 03:31

#include inside the thread can not combine in exe when compile

13 Nov 2022, 00:17

Hi, guys i have use ahk_h v1
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))
So is there any sollution for this ?

Return to “Ask for Help”

Who is online

Users browsing this forum: No registered users and 54 guests