Run Microsoft Edge

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
cardosod
Posts: 1
Joined: 25 Sep 2022, 16:44

Run Microsoft Edge

Post by cardosod » 25 Sep 2022, 16:57

Hello,

I would like to create a hotkey for the following, see below:

1 -Open Microsoft Edge
2 -Go to: https://brief-ng.ipma.pt/#showFlightOverview
3 -Insert: username:xxxxxx & password:xxxxxxx
4 -Select: Text Query - Recent Metars (https://brief-ng.ipma.pt/#showRecentMetar), Query METARs: LPLA - Time: last 36 hours - SEARCH (show results)
Run every hour and email results every hour.

Anyone to assist?

Thank you

User avatar
GabeCalderon
Posts: 7
Joined: 19 Aug 2022, 01:24

Re: Run Microsoft Edge

Post by GabeCalderon » 25 Sep 2022, 19:19

Hi @cardosod,

Not to say that you could not do this within AutoHotkey entirely, but it may be a lot more intuitive for a beginner to try out something like Microsoft's new Playwright library for Python to automate the requested steps you outline. Playwright has a tool that allows you to record your steps within the browser and compiles the code for you. Then you just need to tweak the code based on what will be most reliable (such as HTML element locators).

Once you have created a script through Playwright, you could easily execute that script by using the "Run" AHK command to run the script on a hotkey press.

A link to MS Playwright: http://playwright.dev/

Post Reply

Return to “Ask for Help (v1)”