ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

coded needed launch url's

(1/4) > >>

Contro:
I need to adapt this code to launch urls instead of search strings in google with IE.


--- Code: Autohotkey ---#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.#Warn  ; Recommended for catching common errors.pongo ; inicial por error al compilar sobre esta lĂ­nea.SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.URL = http://www.google.com/search?q= navOpenInNewWindow = 1 navOpenInNewTab = 2048 navOpenInBackgroundTab = 4096 navOpenNewForegroundTab = 65536  FileSelectFile, filepath wb := ComObjCreate("InternetExplorer.Application") ; create IE wb.Visible := true ; 'false' to not show IE loop, Read, %filepath% { if (A_index = 1)         wb.Navigate2(URL . A_LoopReadLine, navOpenNewForegroundTab) ; Navigate else         wb.Navigate2(URL . A_LoopReadLine, navOpenInBackgroundTab) ; Navigate sleep 100 } return
How can i do that ?

 :-*

MilesAhead:
In the navigate calls delete the "URL . " from the font and just use  A_LoopReadLine

The file should have a URL per line instead of a search string

Contro:
thanks very much Miles
Goes like the angels.

 :-*

Contro:
Miles the difficult point seems to be the same script for Firefox and other browsers. Exists or is a pending task ?


Best Regards

MilesAhead:
Miles the difficult point seems to be the same script for Firefox and other browsers. Exists or is a pending task ?


Best Regards

-Contro (February 04, 2014, 09:15 PM)
--- End quote ---

IE based browsers have an ActiveX engine hat can be programed.  That's why BrowserBunch ignores it.  It's a different animal than Firefox/Opera/chrome.

Navigation

[0] Message Index

[#] Next page

Go to full version