Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
guides:com:internetexplorer.application [2022-02-27 15:06] – ↷ Page moved from ahk:com:internetexplorer.application to guides:com:internetexplorer.application geek | guides:com:internetexplorer.application [2022-02-27 15:51] (current) – Adding content geek | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== InternetExplorer.Application ====== | ====== InternetExplorer.Application ====== | ||
- | [[https:// | + | //Original post by [[user: |
+ | |||
+ | ---- | ||
+ | |||
+ | **COM Object:** '' | ||
+ | |||
+ | **Purpose: | ||
+ | |||
+ | **System Requirements: | ||
+ | |||
+ | **Documentation Link: | ||
+ | |||
+ | **Other Links:** [[http:// | ||
+ | |||
+ | **Code Example: | ||
+ | |||
+ | <code AutoHotkey> | ||
+ | ;// open Standard Internet Explorer | ||
+ | wb := ComObjCreate(" | ||
+ | wb.Visible := true ;// show IE | ||
+ | wb.GoHome() ;// Navigate Home | ||
+ | |||
+ | ;// the ReadyState will be 4 when the page is loaded | ||
+ | while wb.ReadyState <> 4 | ||
+ | continue | ||
+ | |||
+ | ;// get the Name & URL of the site | ||
+ | MsgBox % "Name: " wb.LocationName | ||
+ | . " | ||
+ | . " | ||
+ | |||
+ | ;// get the Document - which is the webpage | ||
+ | document := wb.document | ||
+ | |||
+ | ;// Navigate to AutoHotkey.com | ||
+ | wb.Navigate(" | ||
+ | |||
+ | ;// the Busy property will be true while the page is loading | ||
+ | while wb.Busy | ||
+ | continue | ||
+ | MsgBox Page Loaded...Going Back Now | ||
+ | |||
+ | ;// Go Back | ||
+ | wb.GoBack() | ||
+ | |||
+ | while wb.Busy | ||
+ | continue | ||
+ | MsgBox The page is loaded - now we will refresh it... | ||
+ | |||
+ | ;// Refresh the page | ||
+ | wb.Refresh() | ||
+ | while wb.Busy | ||
+ | continue | ||
+ | MsgBox Now that the page is Refreshed, we will Select All (^a)... | ||
+ | |||
+ | ;// Execute Commands with ExecWB() | ||
+ | SelectAll := 17 ;// see CMD IDs | ||
+ | wb.ExecWB(SelectAll, | ||
+ | |||
+ | Sleep 2000 | ||
+ | MsgBox Now that we are done, we will exit Interent Explorer | ||
+ | |||
+ | ;// Quit Internet Explorer | ||
+ | wb.Quit() | ||
+ | </ | ||
+ | |||
+ | **Note** - Internet Explorer uses the [[http:// |