Search found 17 matches

by g0ss
23 Apr 2019, 03:08
Forum: Ask For Help
Topic: [COM IE] Open link in new tab, as new object Topic is solved
Replies: 2
Views: 716

Re: Re: Topic is solved

(Write a title for this question! (may be more can read and answer!) How the solution will be depends entirely on which browser is used. (I think it's not that easy) But if it is the default browser, I would only use the command (something like this) Run "https se.yahoo.com /" Broken Link for safet...
by g0ss
23 Apr 2019, 01:07
Forum: Ask For Help
Topic: [COM IE] Open link in new tab, as new object Topic is solved
Replies: 2
Views: 716

[COM IE] Open link in new tab, as new object Topic is solved

Hello. Please, tell me how to make the link open in a new tab as a new object - I need the script to perform actions on a new tab. I have this script (opens in a new window): pwb := ComObjCreate("InternetExplorer.Application") pwb.Visible := True pwb.Navigate(navSite) While pwb.readyState != 4 || pw...
by g0ss
18 Apr 2019, 01:05
Forum: Ask For Help
Topic: ControlSend not working
Replies: 4
Views: 598

Re: ControlSend not working

Albireo wrote:
17 Apr 2019, 18:56
I have no idea!
Maybe this will help? Internet Explorer: activate tab or you must run the script as "Administrator"?
Found a solution - pwb.Document.ParentWindow.scrollBy(0, 1000)
by g0ss
17 Apr 2019, 13:34
Forum: Ask For Help
Topic: ControlSend not working
Replies: 4
Views: 598

Re: ControlSend not working

Albireo wrote:
17 Apr 2019, 10:56
ControlSend is an instruction that sends something, essentially to a control field.
Where in internet explorer do you want to send "space"?
I want to scroll page down, but IE should stay in background.
by g0ss
17 Apr 2019, 10:18
Forum: Ask For Help
Topic: ControlSend not working
Replies: 4
Views: 598

ControlSend not working

Hello, I faced with the problem - ControlSend does not send a command in IE 11. The script looks like this: ;WinSpy ;Name - Internet Explorer ;ahk_class IEFrame ;ahk_exe iexplore.exe SetTitleMatchMode, 2 sleep 1000 loop, { ControlSend,, {Space}, Name - Internet Explorer Sleep 1000 } Pause::Pause ret...
by g0ss
06 Dec 2018, 10:26
Forum: Ask For Help
Topic: [AHK IE] Set User Agent
Replies: 0
Views: 524

[AHK IE] Set User Agent

Hello,

I found how to set user agent through Navigate():

Code: Select all

pwb.Navigate("https://www.whatismybrowser.com",0,0,0, UserAgent)
but if you continue to navigate through the site using buttons or links, it will reset user agent to the default.

Is there another way to set User Agent? Thanks!
by g0ss
06 Dec 2018, 04:08
Forum: Ask For Help
Topic: [AHK COM IE] How to get button url Topic is solved
Replies: 4
Views: 1114

Re: [AHK COM IE] How to get button url Topic is solved

In accessing the correct button or link, you'll have to identify the element somehow - here's a basic example: Thanks for the reply. It helped a lot! Final script: While ( value <> "Button name" ) value := pwb.document.getElementsByTagName( "a")[ A_Index - 1].innerText, index := A_Index - 1 element...
by g0ss
05 Dec 2018, 23:57
Forum: Ask For Help
Topic: [AHK COM IE] How to get button url Topic is solved
Replies: 4
Views: 1114

Re: [AHK COM IE] How to get button url Topic is solved

Can you post the HTML from the page? This is a button from a letter. <a class="btn-primary_mailru_css_attribute_postfix" style='border-width: 10px 20px; border-style: solid; border-color: rgb(19, 175, 240); margin: 5px 10px 5px 0px; padding: 0px; border-radius: 25px; border-image: none; text-align:...
by g0ss
05 Dec 2018, 13:07
Forum: Ask For Help
Topic: [AHK COM IE] How to get button url Topic is solved
Replies: 4
Views: 1114

[AHK COM IE] How to get button url Topic is solved

Hello,

How to get a button or link URL? href="This value".
IE opens some links in new tab. I want to take URL from a button and navigate to this URL manually. This way it will be on the same tab.

Thanks!
by g0ss
05 Dec 2018, 06:42
Forum: Ask For Help
Topic: [COM IE] Error - field is required
Replies: 2
Views: 629

Re: [COM IE] Error - field is required

I would try triggering the onchange event manually like in this post: https://stackoverflow.com/questions/2856513/how-can-i-trigger-an-onchange-event-manually Thanks for the answer. It seems form registering input only if pressing "a-z, 0-9". It seems that the form "count" the entered data only whe...
by g0ss
04 Dec 2018, 11:24
Forum: Ask For Help
Topic: [COM IE] Error - field is required
Replies: 2
Views: 629

[COM IE] Error - field is required

Hello, I trying to put text in the field: as_pro_input := pwb.document.getElementsByTagName("input")[0] as_pro_input.value := Profession text is shown in field, but site retun error - field is required. https://imgur.com/ShfdSso Also this element has the parameter "Name", but the site does not respo...
by g0ss
29 Nov 2018, 13:19
Forum: Ask For Help
Topic: Limit the number of "while" cycles Topic is solved
Replies: 2
Views: 687

Limit the number of "while" cycles Topic is solved

Hello, How can I limit the number of "while" cycles, so script will do "while" until it hit conditions, but no more then 10 times. While pwb.readyState != 4 || pwb.document.readyState != "complete" || pwb.busy Sleep 1000 While ( value <> "click" ) value := pwb.document.getElementsByTagName( "button"...
by g0ss
27 Oct 2018, 13:03
Forum: Ask For Help
Topic: COM IE How to be sure that a webpage is loaded (not readystate)
Replies: 1
Views: 548

COM IE How to be sure that a webpage is loaded (not readystate)

Hello, ReadyState doesn't work for me because page is "ready" when its loaded in memory, not necessarily visible or ready for the script to input text. I found solution in this post: https://www.reddit.com/r/AutoHotkey/comments/5c8jou/how_to_be_really_sure_that_a_webpage_is_loaded_to/ while test != ...
by g0ss
22 Oct 2018, 01:58
Forum: Ask For Help
Topic: COM IE - Drop-down menu value isn't selecting
Replies: 2
Views: 727

Re: COM IE - Drop-down menu value isn't selecting

When running from web browser console do you get value that you select in user country manualy? Yes, it gives me value that I selected manually. But when I try to set value in console nothing changes in browser. document.getElementById("user_country").selectedIndex 92 document.getElementById("user_...
by g0ss
21 Oct 2018, 11:21
Forum: Ask For Help
Topic: COM IE - Drop-down menu value isn't selecting
Replies: 2
Views: 727

COM IE - Drop-down menu value isn't selecting

Hello, I use this line for setting value 85, but nothing happens pwb.document.getElementById("user_country").selectedIndex :=85 I assume this is because the drop-down menu isn't standard. Image of Menu. Code: <div class="form-group country required user_country"> <label class="control-label country ...
by g0ss
19 Oct 2018, 23:32
Forum: Ask For Help
Topic: COM IE Basics
Replies: 2
Views: 574

Re: COM IE Basics

The problem was that I did not use wb.Quit() and several iexplorers have been opened.
by g0ss
19 Oct 2018, 11:45
Forum: Ask For Help
Topic: COM IE Basics
Replies: 2
Views: 574

COM IE Basics

Hello,
I'm trying to learn COM. It might be a stupid question, but code from tutorial gives me an error.

Sleep 4000
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
wb.Navigate("Google.com")

https://imgur.com/a/oV8v1LH

What I did wrong? Thanks!

Go to advanced search