jeeswg's Internet Explorer and HTML tutorial

Helpful script writing tricks and HowTo's
User avatar
jeeswg
Posts: 4509
Joined: 19 Dec 2016, 01:58
Location: UK

jeeswg's Internet Explorer and HTML tutorial

14 May 2017, 21:36

==================================================

COM OBJECT: WBGET FUNCTION

- WBGet function, used in many of the scripts below.
- It can be used to latch onto an Internet Explorer_Server control in Internet Explorer/HTML Help/elsewhere, and do things like get/set the url and zoom etc.

WBGet function - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=39869

==================================================

COM OBJECT: OPEN A URL

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



==================================================

COM OBJECT: LATCH ONTO ACTIVE TAB, GET WEBPAGE TITLE AND URL, CLOSE TAB

Code: [Select all] [Download] GeSHi © Codebox Plus

q:: ;internet explorer - latch onto active tab, get webpage title and url, close tab
WinGet, hWnd, ID, A
oWB := WBGet("ahk_id " hWnd)
MsgBox, % oWB.document.title "`r`n" oWB.document.url
;oWB.Quit()
;oWB.Quit ;also works
oWB := ""
return


==================================================

COM OBJECT: FUNCTIONS FOR LISTING / COUNTING / FOCUSING TABS

Internet Explorer: activate tab - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=34222&p=173827#p173827

==================================================

COM OBJECT: ZOOM / TEXT SIZE (EXECWB)

Internet Explorer get/set zoom/text size - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=26359

==================================================

MENU ITEMS

[save as]
Windows 7 - invert selection, set details view/list view (trigger Explorer/Internet Explorer menu items) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=27564

[hide/show toolbars]
Internet Explorer Winset command list - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=28759

How to open the context menu of the window's title bar - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=35975&p=165570#p165570

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


==================================================

COM OBJECT: GET REDIRECTED URL

get redirected url (handle file links and focus loss) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=30778

==================================================

COM OBJECT: WINDOW SPY

[download iWB2 Learner]
Acc library (MSAA) and AccViewer download links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26201

Internet Explorer get element under cursor (show borders, show text) (any zoom percentage) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=29458

Internet Explorer Element Spy (alternative to iWB2 Learner) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=13031

==================================================

COM OBJECT: TABS

Internet Explorer: activate tab - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=34222

Internet Explorer - move tab to new window - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=26117

Firefox/Chrome, get tab names/focus tab - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26947

==================================================

COM OBJECT: FRAGMENT IDENTIFIERS

list fragment identifiers on a webpage (hash that jumps to point) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=28053

==================================================

COM OBJECT: CREATE UNIQUE IDENTIFIERS FOR TABS

Internet Explorer: get WB hWnds via object loop (+ do win objects have unique object IDs) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=26082

==================================================

COM OBJECT: CARET BROWSING

Internet Explorer: check if caret is visible (IHTMLCaret IsVisible) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=39615

==================================================

COM OBJECT: GET ELEMENT PROPERTY

[getAttribute method]
[try to get html element properties without causing an error message]
Getting href data, why is it so hard? - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=40267

==================================================

COM OBJECT: NAVIGATE TO PREVIOUS/NEXT ITEM (ALT+LEFT/ALT+RIGHT)

Suggestions on documentation improvements - Page 18 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=13&t=1434&p=201485#p201485

==================================================

COM OBJECT: TABLES: GET TEXT FROM CELLS

webpages: get table text - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=39131
[Google spreadsheet]
Get spreadsheet info - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=44517&p=202084#p202084
Extract table element from a page - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=43003&p=203780#p203780

==================================================

DOWNLOAD TO FILE/VARIABLE (NOT INTERNET EXPLORER SPECIFIC)

[UrlDownloadToFile via DllCall]
Simple Download (Bin, ToString und ToFile) - Gebrauchsfertige Skripte & Funktionen - AutoHotkey Community
https://autohotkey.com/board/topic/89198-simple-download-bin-tostring-und-tofile/
UrlDownloadToFile - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/97642-urldownloadtofile/

==================================================

CLIPBOARD (NOT INTERNET EXPLORER SPECIFIC)

[add in: html from clipboard]

[put html onto clipboard]
GUI COMMANDS: COMPLETE RETHINK - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=25893&p=170834#p170834

==================================================

HTMLFILE OBJECT

list of every command/function/variable from across all versions - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=27321
text/list/table functions (latest: add indentation, get nth(-to-last) line of specified length, html to/from text) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=27023
Using IE.Document.GetElementsByClassname - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=28791

==================================================

WINHTTPREQUEST OBJECT

download urls to vars, partially/fullly, via WinHttpRequest - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=26528
UrlDownloadToFile - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/97642-urldownloadtofile/

==================================================

MOZILLA FIREFOX / GOOGLE CHROME / OTHER WEB BROWSERS

Firefox/Chrome, get tab names/focus tab - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?t=26947
[Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium! - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=42890
Using Selenium with AutoHotkey- Cross browser automation! - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=32323
Get the URL of the current (active) browser tab - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=3702

==================================================

GRAPHICAL USER INTERFACES: ADD INTERNET EXPLORER_SERVER CONTROLS

[create an Internet Explorer_Server control]
[this is now doable via the Gui command and the ActiveX control]
IE_Add() or COM_AtlAxCreateContainer() or AtlAxWin() - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/32138-ie-add-or-com-atlaxcreatecontainer-or-atlaxwin/

==================================================

COM OBJECT (GENERAL)

Basic Webpage Controls with JavaScript / COM - Tutorial - Tutorials - AutoHotkey Community
https://autohotkey.com/board/topic/47052-basic-webpage-controls-with-javascript-com-tutorial/

==================================================

HTML HELP (AUTOHOTKEY HELP) (CHM FILES)

AutoHotkey help file, caret browsing - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=26116
[Solved] AutoHotkey help file navigation - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=30533
HTML Help alternative via Internet Explorer - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=42129
[AutoHotkey Help: focus Index tab]
SendMessage for the new help file of AutoHotkey - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=43262

HTML HELP (API)

DLLCall: Call a topic on existing help window (CHM) with hhctrl.ocx\HtmlHelpA - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=44462&p=201470#p201470
start chm file with specific page - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/12989-start-chm-file-with-specific-page/
[HTML Help: search keyword]
F1 help not jumping to particular URL with v1.1.27.00 help file - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=42014&p=191155#p191155

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests