Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Automation IE7 Navigation and Scripting with Tabs


  • This topic is locked This topic is locked
214 replies to this topic

Poll: Do you find this group pf wrapper functions for IE Automation Usefull (35 member(s) have cast votes)

Do you find this group pf wrapper functions for IE Automation Usefull

  1. no you suck (3 votes [8.33%])

    Percentage of vote: 8.33%

  2. need better Documentation (10 votes [27.78%])

    Percentage of vote: 27.78%

  3. What is DHTML i dont understand how this helps (4 votes [11.11%])

    Percentage of vote: 11.11%

  4. I use Firefox this is a stupid idea (10 votes [27.78%])

    Percentage of vote: 27.78%

  5. I know DHTML this is a reasonably good AHK adaption (2 votes [5.56%])

    Percentage of vote: 5.56%

  6. This is the best DHTML too in the AHK Forum (7 votes [19.44%])

    Percentage of vote: 19.44%

Vote
tank
  • Administrators
  • 4345 posts
  • AutoHotkey Foundation
  • Last active: Oct 13 2016 01:04 AM
  • Joined: 21 Dec 2007
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

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

Never lose.
WIN or LEARN.

temp01
  • Members
  • 120 posts
  • Last active: May 18 2013 08:27 PM
  • Joined: 09 Jul 2009
How about..
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.

tank
  • Administrators
  • 4345 posts
  • AutoHotkey Foundation
  • Last active: Oct 13 2016 01:04 AM
  • Joined: 21 Dec 2007
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
Never lose.
WIN or LEARN.

temp01
  • Members
  • 120 posts
  • Last active: May 18 2013 08:27 PM
  • Joined: 09 Jul 2009

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.

tank
  • Administrators
  • 4345 posts
  • AutoHotkey Foundation
  • Last active: Oct 13 2016 01:04 AM
  • Joined: 21 Dec 2007
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 <!-- m -->http://www.autohotke...pic.php?t=51020<!-- m -->
Never lose.
WIN or LEARN.