This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 How to detect the window topmost or not?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ETime

13 Posts

Posted - 01/14/2015 :  05:11:00  Show Profile
local aliencore = alien.core
local user32 = aliencore.load("user32.dll")
local topmost = user32.GetWindowLong
topmost:types{ret='long',abi='HWND','int'} --It is't work on this sentence
local hw = acGetWindowByPoint(gsx, gsy)
local top = topmost(hw , GWL_EXSTYLE)
if top == WS_EX_TOPMOST then
acMessageBox("top most", "top or not", nil)
else
acMessageBox("not top most", "top or not", nil)
end


I didn't know lua, these were the best what I could do.
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000