(At the same time, any suggestions would be more than welcome. Now I have to figure out how to get the text off the screen, so it's time for me to do some more reading. Then I have Autoit open up a new browser window with the URL of the status page, and it goes right to it. I use Autoit to login, wait a few moments, and then close the browser. So I went about it another way, albeit probably not the cleanest way, but it works. Unfortunately, the Autoit tool that you can use to hover over something and find out info about it doesn't seem to work on the ngrok site- it doesn't find buttons or text at all. Learn how each Firefox product protects and respects your data. I was going to send some more TABs to get to the link I wanted and then click on it, but that seemed a little shaky- if they change the site the script would break. Get protection beyond your browser, on all your devices. So to follow up, my goal was to log into the ngrok service and (eventually) pull some text off the screen (the current HTTPS tunnels).Īfter login ngrok takes you to your dashboard, which wasn't where I wanted to go (I need to go to the status page). #Include #include #include $command = "C:\Program Files\Mozilla Firefox\firefox.exe -new-tab " $url = "" Run ( $command & $url, "" ) Sleep ( 5 ) WinActivate ( "ngrok" ) Sleep ( 4 ) send 2 tabs Send ( "" ) How can I open that URL and send keystrokes to the form? What am I doing wrong- why is the browser appearing behind things instead of on top? I tried pausing things a bit with some Sleep commands to give Firefox time to start up, but nothing seems to work so far. If I start the script by double-clicking on it (as opposed to running it from editor) the browser appears behind the file explorer window. I've tried to focus the window with WinActivate but it doesn't seem to find the window. The resulting keystrokes get sent to the SciTE editor. The script opens Firefox up correctly but the new browser window appears in the background, often behind the SciTE editor. The code below opens up Firefox to a given URL and tries to TAB to the first input box (the username). I'm trying to make a simple login script to an HTTPS tunneling service and I've hit a bit of a weird snag.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |