forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


AlWaysOnTop API ➜ SOLVED

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Dec 30, 2025 10:27 pm    Post subject: AlWaysOnTop API ➜ SOLVED Reply with quote

Hello

I'm having trouble getting the AlwaysOnTop API to work again.

The code I'm trying below:
Code:
 LOADLIB USER32
 %H = @lib(user32,SetWindowPos,BOOL:,%%CLASS,-1,0,0,0,0,3)
 FREELIB USER32
 WAIT 0.05

Maybe you have a better solution.


Never mind, I replaced CLASS with TITLE below:
Arrow %H = @strdel(@WINEXISTS(%%TITLE),1,1)
LOADLIB USER32
%H = @lib(user32,SetWindowPos,BOOL:,%H,-1,0,0,0,0,3)
FREELIB USER32
WAIT 0.05
*which fixed it..


UPDATE: <below is for OnTop OFF to work>
%%CLASS = "your CLASSNAME" <PUT AT top AREA of .dsc>
:offBUTTON
LOADLIB USER32
%H = @strdel(@WINEXISTS(#%%CLASS),1,1)
%H = @lib(user32,SetWindowPos,BOOL:,%H,-2,0,0,0,0,3)
FREELIB USER32
WAIT 0.05
goto evloop

Thanks for reading 😎

➳ ➳ ➳ ➳ ➳ ➳ ➳ ➳ ➳ ➳ ➳ ❌
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group