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

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


13 Posts

Posted - 01/14/2015 :  05:11:00  Show Profile  Reply with Quote
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)
acMessageBox("not top most", "top or not", nil)

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