 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Visioneer
Joined: 19 Nov 2007 Posts: 37
|
Posted: Fri Jul 18, 2008 9:25 pm Post subject: Fullscreen Titles in IE XPsp2 etc. |
|
|
About fullscreen Titles,
Did you know that IE6 XPsp2 screws up fullscreen/popup titles? Probably
IE7 & Vista too. Set your IE browser to fullscreen or use -k with run. Then
check what WinGetActiveTitle gives you. Even though you can't see the
title, (it's fullscreen after all), Microsoft thought they should add the URL to
the front of the Title. So, all the TitleMatchMode is ruined. A 2 mode
greatly reduces control. A regex mode I need needs to skip the
URL%A_Space%-%A_Space%, excepting when the Title is not being
messed with. It's a real fix. I would like to see a new mode like 1, which
always ignores URLs at the beginning of the Title. Maybe even including
WinGetTitle also.
Thanks
Last edited by Visioneer on Sun Jul 20, 2008 7:04 am; edited 1 time in total |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6804 Location: Pacific Northwest, US
|
Posted: Sat Jul 19, 2008 12:49 am Post subject: |
|
|
Is this a question or a statement?
You could always get the URL from the addressbar and concatenate it to your window title.
There are other ways to access windows besides titles. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1020 Location: The Interwebs
|
Posted: Sat Jul 19, 2008 12:51 am Post subject: |
|
|
| engunneer wrote: | | Is this a question or a statement? |
A desire for a new feature:
| Visioneer wrote: | I would like to see a new mode like 1, which
always ignores URLs at the beginning of the Title. |
Should be moved to wish list? |
|
| Back to top |
|
 |
Visioneer
Joined: 19 Nov 2007 Posts: 37
|
Posted: Sun Jul 20, 2008 6:42 am Post subject: |
|
|
Sorry for not making my request for help more coherent. It's a regex
help request basically. Although, you never know if there is something
new you had not thought of before. Like maybe even tweaking the AHK
source code itself.
Let me break it down a little.
Let's say your application is intended to work in mass market.
That means 98/XP/XPsp2/Vista IE6/IE7 basically.
Let's say you have a Large number of IE, (that's Internet Explorer)
ahk_class IEFrame windows that need to be detected if they are active, or
exist, are closed etc. Those fullscreen windows are created by popups,
php, document.writes etc. so the URL of those windows tells you nothing.
They inherit the URL from whatever page they were created in by my
js injects.
Now let's say that arbitrarily depending on the OS/browser version, the
Title of those IE windows will have a URL prepended to the front of the
Title or maybe not.
eg:
http://www.google.com - MyTitle - Microsoft Internet Explorer
or
MyTitle - Microsoft Internet Explorer
So, I am talking about IfWinActive for example:
Now let's say the SetTitleMatchMode is set to 1. IfWinActive, MyTitle
will fail on XPSP2 IE6 +
I really want to avoid SetTitleMatchMode 2 as that would create many
false positives, anytime a webpage's title contains an "unlucky" word.
Very little control.
Now let's say the SetTitleMatchMode is "regex".
This is what Chris recommended I ask the forum about.
What would be the IfWinActive, regex to match
http://www.whatever.com - MyTitle - Microsoft Internet Explorer
or
MyTitle - Microsoft Internet Explorer
What would be the regex to get a WinGetTitle var to always
just be just the actual Title, sans the URL at the front IF it exists.
Keep in mind the URL at the front could be https, ftp, possibly any URL,
or null at the front is some cases.
Keep in mind that people can change the Microsoft Internet Explorer part,
and different languages ? I dunno.
For my app which is basically finished after about 2 years of work, I
would have to SetTitleMatchMode, regex as the default (top of script),
and do a huge ton of rewriting thousands of IfWin's, WinWaits, etc.
Basically half program needs to take this variable into account.
So sure I "wish" there was an easy way out. Like a new mode, or some
way I did not think of to AHK the "TRUE" titles.
I was even thinking of if there would be a way to tweak the source code
of AHK to "auto-regex"/fix the effect I have described. Anyone know how
I could attempt that?
Thanks |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 807
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|