AutoHotkey Community

It is currently May 27th, 2012, 12:00 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 2nd, 2009, 2:46 pm 
Offline

Joined: October 3rd, 2007, 9:32 pm
Posts: 157
Location: UK
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 3:20 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 3:23 pm 
Offline

Joined: October 3rd, 2007, 9:32 pm
Posts: 157
Location: UK
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 3:28 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2009, 9:37 pm 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6068
Location: San Diego, California
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, hyper_, Leef_me, Pulover, rbrtryn, XstatyK and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group