Script for Firefox.

Get help with using AutoHotkey and its commands and hotkeys
amr_slr
Posts: 2
Joined: 06 Feb 2018, 20:31

Script for Firefox.

06 Feb 2018, 20:37

Hi,

This is an autologin script that works fine with IE. Is it possible to make a similar one that opens Firefox instead of IE?

Code: Select all

My_User_Name := "xxxx"
 
My_Pass_Word := "yyy"

web_browser := ComObjCreate("InternetExplorer.Application")

web_browser.Visible := true

web_browser.Navigate("https://au2.jobadder.com/auth/login?returnUrl=")

while web_browser.busy
        sleep 100

sleep 1000

username_input := web_browser.document.getElementById("Email")

username_input.value := My_User_Name

password_input := web_browser.document.getElementById("Password")

password_input.value := My_Pass_Word

web_browser.document.getElementById("u_0_n").click()

Return
Mod edit: Added code tags.
GreatGazoo
Posts: 69
Joined: 28 Dec 2017, 02:53

Re: Script for Firefox.

06 Feb 2018, 21:32

Code: Select all

:*:aa:: run, firefox.exe ;------------------------ press a 2ice to run firefox
return
gregster
Posts: 2512
Joined: 30 Sep 2013, 06:48

Re: Script for Firefox.

06 Feb 2018, 21:45

GreatGazoo, I am afraid, that is - by far - not what the original poster is looking for.

But no, Firefox doesn't have a COM interface, only Internet Explorer has.
You could install the Selenium Webdriver with Firefox (see https://autohotkey.com/boards/viewtopic ... +webdriver), but this is more difficult than COM and obviously needs additional software installed.
amr_slr
Posts: 2
Joined: 06 Feb 2018, 20:31

Re: Script for Firefox.

06 Feb 2018, 22:20

Thanks, guys.

Return to “Ask For Help”

Who is online

Users browsing this forum: bennybroseph, cahek0404, just me, Odlanir and 133 guests