Search found 21 matches

by g0ss
27 Oct 2023, 06:20
Forum: Ask for Help (v1)
Topic: ImageSearch and buttons with fonts Topic is solved
Replies: 8
Views: 336

Re: ImageSearch and buttons with fonts Topic is solved

Unfortunately the text is very thin. It may not help, but are you able to post a screenshot of whole screen, and one of the target image detail? Screen: https://i.imgur.com/kEM710m.png Visit button part: https://i.imgur.com/fr9t2cq.png In this example, I can limit the search area to coordinates, bu...
by g0ss
27 Oct 2023, 06:06
Forum: Ask for Help (v1)
Topic: ImageSearch and buttons with fonts Topic is solved
Replies: 8
Views: 336

Re: ImageSearch and buttons with fonts Topic is solved

Thanks for answers. Have you tried adjusting the variation setting? Although the text is very contrasting to the background it worked, but I'm afraid that due to the very high value (*150) it's not a very reliable solution. When it’s an issue with text being rendered differently because of antialias...
by g0ss
27 Oct 2023, 05:20
Forum: Ask for Help (v1)
Topic: ImageSearch and buttons with fonts Topic is solved
Replies: 8
Views: 336

ImageSearch and buttons with fonts Topic is solved

Hello. I use ImageSearch in Chrome to automatically press buttons, but if the button moves even a little, script stops finding them (unless I make a new image for the search). I turned off font smoothing in Windows, but the problem remained. The same problem occurs in other programs if there are fon...
by g0ss
15 Oct 2023, 12:53
Forum: Ask for Help (v1)
Topic: Click command doesn't work
Replies: 0
Views: 188

Click command doesn't work

Hello. I use AHK on a virtual machine (VMware) with Windows 10-11. For some reason, the click command doesn't work for me on some builds of Windows. Even if the macro consists of one line: click 123, 456 ;or Send {Click 123, 456} it may work on one and not on the other. Maybe there is some setting i...
by g0ss
23 Apr 2019, 03:08
Forum: Ask for Help (v1)
Topic: [COM IE] Open link in new tab, as new object Topic is solved
Replies: 2
Views: 1216

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 (v1)
Topic: [COM IE] Open link in new tab, as new object Topic is solved
Replies: 2
Views: 1216

[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 (v1)
Topic: ControlSend not working
Replies: 4
Views: 871

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 (v1)
Topic: ControlSend not working
Replies: 4
Views: 871

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 (v1)
Topic: ControlSend not working
Replies: 4
Views: 871

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 (v1)
Topic: [AHK IE] Set User Agent
Replies: 0
Views: 727

[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 (v1)
Topic: [AHK COM IE] How to get button url Topic is solved
Replies: 4
Views: 1452

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 (v1)
Topic: [AHK COM IE] How to get button url Topic is solved
Replies: 4
Views: 1452

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 (v1)
Topic: [AHK COM IE] How to get button url Topic is solved
Replies: 4
Views: 1452

[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 (v1)
Topic: [COM IE] Error - field is required
Replies: 2
Views: 766

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 (v1)
Topic: [COM IE] Error - field is required
Replies: 2
Views: 766

[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 (v1)
Topic: Limit the number of "while" cycles Topic is solved
Replies: 2
Views: 859

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 (v1)
Topic: COM IE How to be sure that a webpage is loaded (not readystate)
Replies: 1
Views: 713

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 (v1)
Topic: COM IE - Drop-down menu value isn't selecting
Replies: 2
Views: 978

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 (v1)
Topic: COM IE - Drop-down menu value isn't selecting
Replies: 2
Views: 978

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 (v1)
Topic: COM IE Basics
Replies: 2
Views: 681

Re: COM IE Basics

The problem was that I did not use wb.Quit() and several iexplorers have been opened.

Go to advanced search