Search found 116 matches
- 12 Jan 2024, 21:24
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 337
- Views: 46526
Re: UIA v2
@songdg, the WaitElement call doesn't even work on the penultimate page because the button is of Type Link, so no element is found with the condition {Name:"»", Type:"Text"} . Try MsgBox chromeEl.ElementExist({Name:"»", Type:"Text"}) . @Virlix, I currently have no plans on creating examples on Java...
- 14 Dec 2023, 21:33
- Forum: Ask for Help (v1)
- Topic: Descolada UIA speed issue
- Replies: 3
- Views: 358
Re: Descolada UIA speed issue
Hi Descolada, thank you for answering, awesome job there! I'll cover all relevants points for your answer. 1.- I thought caching might be a good idea because I actually use the script (pressing F3) a LOT. I am a translator, and every time I find a term I don' tknow, I press F3 to check the terminolo...
- 13 Dec 2023, 22:41
- Forum: Ask for Help (v1)
- Topic: Descolada UIA speed issue
- Replies: 3
- Views: 358
Descolada UIA speed issue
Hi people! I have been working with the fantastic UIA libraries by Descolada, but I have an issue. The thing is, it is too slow. I have been trying for hours to use caching but it's not very documented (or I am dumb, as I have been reading all wikis and examples)... If someone could help me point ou...
- 07 Nov 2023, 19:33
- Forum: Ask for Help (v1)
- Topic: Can you do web scraping with AHK in the background?
- Replies: 3
- Views: 558
Re: Can you do web scraping with AHK in the background?
Thank you for your answer, but the Web Scraping thread seems to be about Internet Explorer and COM, which is dead now. I have tried to use Wget and I get a Unable to establish the SSL connection I can't bypass, and curl .. I have to look onto that, but the last link "curl to ahk" seems to be about I...
- 03 Nov 2023, 19:54
- Forum: Ask for Help (v1)
- Topic: Can you do web scraping with AHK in the background?
- Replies: 3
- Views: 558
Can you do web scraping with AHK in the background?
Hi people! A quick question. Does anybody know of a library, a script or anything that performs web scraping in the background? I have managed to perform some web scraping with UIA libraries but it requires an active browser window. I can't work on the PC while the script is running (it reads text f...
- 01 Nov 2023, 20:21
- Forum: Ask for Help (v1)
- Topic: How to check if a simple array is empty. Topic is solved
- Replies: 11
- Views: 5098
Re: How to check if a simple array is empty. Topic is solved
Why the "==" in the code? Shouldn't a simple "=" in if !(value == "") { suffice, like this if (value != "") or is there a difference I am missing? Because it seems a way of overcomplicating things... Also, I am finding a strange behaviour for the function script, something I am not able to explain. ...
- 27 Oct 2023, 20:47
- Forum: Ask for Help (v1)
- Topic: Variable hotkeys
- Replies: 1
- Views: 175
Variable hotkeys
I want what I believe is a simple thing but for the sake of me, I cannot get it to work. I have an script that makes some operations after pressing a hotkey and obtains an array (named Array) with several numerical values. (For example, Array=[2.5,3.3,5.7] I want the script to create a hotkey for ^1...
- 15 Sep 2023, 08:58
- Forum: Ask for Help (v1)
- Topic: Search and replace with regex after some manipulation.
- Replies: 1
- Views: 169
Search and replace with regex after some manipulation.
Hi everyone! I am fighting with the RegexReplace and RegexMatch functions as they are not very intuitive. It happens that I need to convert units to metric in a string. For example, the string Source is: Source:="It has a range of 1,274 miles and it cruises at 270 miles per hour" And I want it to re...
- 14 Sep 2023, 20:51
- Forum: Ask for Help (v1)
- Topic: Combine multiple numeric hotkeys into one
- Replies: 2
- Views: 280
Combine multiple numeric hotkeys into one
I want to write ❶ (Unicode+2776) when I press AltGr+1, ❷ (Unicode+2777) when I press AltGr+2, and so on. Is there a way to do it that is neater than this: #1:: #2:: #3:: #4:: #5:: #6:: #7:: #8:: #9:: Code:=0x2776 ;+Base in hexadecimal, corresponds to character ❶ Code+=HotkeyNumber-1 ; Adds pressed n...
- 02 May 2022, 19:20
- Forum: Ask for Help (v1)
- Topic: Reading a currently open webpage and getting data
- Replies: 108
- Views: 15454
Re: Reading a currently open webpage and getting data
A simple example. Open https://time.is/Unix_time_now in Chrome, run the script: How the heck is this simple? It's Navajo mixed with ancient Chinese and a pinch of prehistoric Greek for me! I understand not a thing! Isn't there a simple way to get the text for the translation result frame in a simpl...
- 02 May 2022, 19:17
- Forum: Ask for Help (v1)
- Topic: Transition from IE to Edge (gathering info from frames)
- Replies: 5
- Views: 1236
Re: Transition from IE to Edge (gathering info from frames)
It seems your system only shows a few characters of the translation string and ends it with an ellipsis (...).
So if the translation result is "I want to break free from your arms", the string shown is "I want to break..." so it's no good for the purpose of obtaining a translation.
So if the translation result is "I want to break free from your arms", the string shown is "I want to break..." so it's no good for the purpose of obtaining a translation.
- 02 May 2022, 19:14
- Forum: Skripte und Funktionen
- Topic: getDeepL() - Online Textübersetzung mit Chrome/Edge abfragen
- Replies: 5
- Views: 2953
Re: getDeepL() - Übersetzung unter Chrome/Edge abfragen
This script cuts the translation line short. Doesn't show the entire translation, it shows a short string and then three dots, unless I am doing something wrong. And I believe the series of numbers for Chrome is "4.1.1.2.2.2.1.3.3.1.3.3.1.1". So if you write a sentence-long translation, your script ...
- 02 May 2022, 12:47
- Forum: Ask for Help (v1)
- Topic: Transition from IE to Edge (gathering info from frames)
- Replies: 5
- Views: 1236
- 02 May 2022, 10:01
- Forum: Ask for Help (v1)
- Topic: Transition from IE to Edge (gathering info from frames)
- Replies: 5
- Views: 1236
Transition from IE to Edge (gathering info from frames)
Hi, I used to have a script that worked to retrieve information from the Target section of the DeepL translator. It went like this: IE := ComObjCreate("InternetExplorer.Application") ;~ Creation of hidden Internet Explorer instance to look up Deepl Translate and retrieve translation IE.Visible := fa...
- 02 May 2022, 07:46
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 610
- Views: 124741
Re: Rufaydium WebDriver (no selenium/websocket)
It may be a stupid question, but how do I get Rufaydium to open an Edge session instead of a Chrome one? I need to obtain information from Edge frames. #Include Rufaydium.ahk ChromeDriver := A_ScriptDir "\chromedriver.exe" ; choose different driver in order to automate different Browser Driver := ne...
- 11 Nov 2021, 08:27
- Forum: Ask for Help (v1)
- Topic: Weird space trimming in variable assignation
- Replies: 4
- Views: 468
Re: Weird space trimming in variable assignation
As expected, it works beautifully. Now I have to study why, of course, so I can learn.
Do you have any idea why my method does not work? Why it does that strange trimming on the left of the string?
And of course, a huge THANK YOU!
Do you have any idea why my method does not work? Why it does that strange trimming on the left of the string?
And of course, a huge THANK YOU!
- 11 Nov 2021, 06:18
- Forum: Ask for Help (v1)
- Topic: Weird space trimming in variable assignation
- Replies: 4
- Views: 468
Weird space trimming in variable assignation
Hi everyone! This must be probably stupid, but I am puzzled by this and I cannot find the way to solve it elegantly. Simply said, I want to enclose a string in parentheses when I use a hotkey. If I double click in a word, it usually adds spaces to the right of it, doesn't it? And sometimes, if I am ...
- 07 Oct 2021, 19:36
- Forum: Ask for Help (v1)
- Topic: Switching to Edge object instead of IE object?
- Replies: 0
- Views: 304
Switching to Edge object instead of IE object?
Hi everyone! I have a problem. I have a script that creates a hidden IE instance, navigates to a certain URL that is supplied and then retrieves information from a frame within that page. The thing is that I need to navigate to a veeery long URL (over 2500 characters), and I have found out that IE l...
- 19 Sep 2021, 21:42
- Forum: Ask for Help (v1)
- Topic: Creating backup files on my script
- Replies: 2
- Views: 438
Creating backup files on my script
I am writing a critical and very large script and I am constantly changing/updating it. I fear that some day, I might add a modification to the script that is not working and I won't be able to revert it (or the PC crashes, or whatever reason). So I have tried to create backup copies of the script i...
- 19 Sep 2021, 16:17
- Forum: Ask for Help (v1)
- Topic: Use regexreplace maintaining original capitalization
- Replies: 5
- Views: 527
Re: Use regexreplace maintaining original capitalization
There is an issue with the replace function that I am trying to solve. If Haystack is, for example, man(kind)\b, during its operation it will try to search for the strings man(kind)\b, Man(kind)\b and MAN(KIND)\B. Evidently, since \b is NOT the same as \B, I must find a way so the regex operators ar...