| View previous topic :: View next topic |
| Author |
Message |
tuna
Joined: 03 Oct 2007 Posts: 155 Location: UK
|
Posted: Fri Oct 02, 2009 1:46 pm Post subject: Cannot use winset with 0x8 exstyle |
|
|
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 |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Fri Oct 02, 2009 2:20 pm Post subject: |
|
|
| 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 |
|
 |
tuna
Joined: 03 Oct 2007 Posts: 155 Location: UK
|
Posted: Fri Oct 02, 2009 2:23 pm Post subject: |
|
|
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 |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Fri Oct 02, 2009 2:28 pm Post subject: |
|
|
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 |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5333 Location: San Diego, California
|
Posted: Fri Oct 02, 2009 8:37 pm Post subject: |
|
|
| 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 |
|
 |
|