AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cannot use winset with 0x8 exstyle

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
tuna



Joined: 03 Oct 2007
Posts: 155
Location: UK

PostPosted: Fri Oct 02, 2009 1:46 pm    Post subject: Cannot use winset with 0x8 exstyle Reply with quote

Hi, I was wondering why I can't use winset with 0x8 (topmost) like:
Code:
WinSet, Exstyle, ^0x8, ahk_id %winid%

I get no effect on the target window and also Errorlevel = 1, indicating a failure. What am I doing wrong?

(Also, I want to avoid using the "Winset, AlwaysOnTop, Toggle" function as I'm dealing with other styles and exstyles as well and was hoping to be able to apply all exstyles using the above code.)

Thanks
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Fri Oct 02, 2009 2:20 pm    Post subject: Reply with quote

Quote:
Failure occurs if the target window is not found or the style is not allowed to be applied (which happens more often on Windows 9x).

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
tuna



Joined: 03 Oct 2007
Posts: 155
Location: UK

PostPosted: Fri Oct 02, 2009 2:23 pm    Post subject: Reply with quote

Thanks for your reply. However, I'm certain that ahk_id %winid% is valid (window does exist) since the all other exstyles/styles can be applied successfully, just not 0x8. Also, I'm running windows Vista x86 and not 9x.

The odd thing is that "Winset, AlwaysOnTop, Toggle" succeeds where "WinSet, Exstyle, ^0x8" fails.

Thanks
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Fri Oct 02, 2009 2:28 pm    Post subject: Reply with quote

I'm not the best person to figure it out, but maybe that specific style is not appliable.
Tell us which exactly is the target window. Someone should be able to tell you what's wrong.
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Leef_me



Joined: 08 Apr 2009
Posts: 5333
Location: San Diego, California

PostPosted: Fri Oct 02, 2009 8:37 pm    Post subject: Reply with quote

Quote:
Also, I'm running windows Vista x86...

Also tell us what version of Vista 32 bit vs 64 bit
IMHO x86 is not useful information.
I happen to be running "windows vista home premium" SP1
You can find this info by hitting the WINDOW and BREAK keys
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group