AutoHotkey Community

It is currently May 27th, 2012, 1:06 pm

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 215 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15

Do you find this group pf wrapper functions for IE Automation Usefull
no you suck 8%  8%  [ 3 ]
need better Documentation 28%  28%  [ 10 ]
What is DHTML i dont understand how this helps 11%  11%  [ 4 ]
I use Firefox this is a stupid idea 28%  28%  [ 10 ]
I know DHTML this is a reasonably good AHK adaption 6%  6%  [ 2 ]
This is the best DHTML too in the AHK Forum 19%  19%  [ 7 ]
Total votes : 36
Author Message
 Post subject:
PostPosted: October 10th, 2009, 2:27 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
matter of fact i had :lol:
but since this was origionally designed to be a library for users with relatively little knowledge of iWebBrowser2 interface i decided to go with something less alien to the average user since suffixes can be altered in the registry and in corp environs often are i tend to use the follwoing to remove them

Code:
StringSplit,LocationName,pTitle,-                  ;;   ensure no crazy browser suffixes
         LocationName=%LocationName1%

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2009, 8:36 am 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
How about..
Code:
iWeb_GetWin(title){
   WinGet, hwnd, ID, %title%
   If psh := COM_CreateObject("Shell.Application"){
      If psw := COM_Invoke(psh, "Windows")
         Loop, % COM_Invoke(psw, "Count")
            If COM_Invoke( pwb:=COM_Invoke(psw, "Item", A_Index-1), "HWND" ) = hwnd
               Break
            Else COM_Release(pwb)
      COM_Release(psw), COM_Release(psh)
   }
   Return pwb
}


Then you can use things like A, system32 ahk_class ExploreWClass etc. for title and configure the matching behaviour with SetTitleMatchMode.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2009, 5:47 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
while that can work well if you dont have tabs in IE it will fail on you if you have more than one tab open and your active tab isnt first in the stack

no the best methods are still the title and or url

I do this for a living automating web pages so you can take my word or not

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2009, 6:04 pm 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
tank wrote:
while that can work well if you dont have tabs in IE it will fail on you if you have more than one tab open and your active tab isnt first in the stack

Ah, right; I forgot about tabs - oops.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 10:10 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
I have asked this thread be locked because it is outdated and i no longer have the time to keep up with it in the future please refer to http://www.autohotkey.com/forum/viewtopic.php?t=51020

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 215 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, sks and 20 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