Search found 1472 matches
- 04 May 2022, 11:25
- Forum: Ask for Help (v1)
- Topic: How to Get Number of Pages of Open Foxit PDF Document Topic is solved
- Replies: 18
- Views: 2340
Re: How to Get Number of Pages of Open Foxit PDF Document Topic is solved
if you open those pdf's in notepad and do edit find Pages/Count do you see number of pages? AHKStudent, opening in notepad gives me an inaccurate page count (my test .pdf is 11 pages, but Notepad thought it was 38 pages). keep on looking in the txt file you should see the correct number of pages
- 04 May 2022, 01:04
- Forum: Ask for Help (v1)
- Topic: How to Get Number of Pages of Open Foxit PDF Document Topic is solved
- Replies: 18
- Views: 2340
Re: How to Get Number of Pages of Open Foxit PDF Document Topic is solved
if you open those pdf's in notepad and do edit find Pages/Count do you see number of pages?
- 03 May 2022, 02:00
- Forum: Ask for Help (v1)
- Topic: Date larger or smaler
- Replies: 1
- Views: 152
Re: Date larger or smaler
your code works for me
Code: Select all
FormatTime, Today, Today, yyyyMMdd
Date_1 := 20220501
Date_2 := 20220510
If(Today >= Date_1 && Today <= Date_2)
{
MsgBox yes
}
ExitApp
- 03 May 2022, 01:47
- Forum: Ask for Help (v1)
- Topic: iniread issue Topic is solved
- Replies: 11
- Views: 833
Re: iniread issue Topic is solved
does your file look like this [Epiales] Key=https://www.autohotkey.com/ is so try simple first from the help file IniRead, OutputVar, Images.txt, Epiales, key MsgBox, The value is %OutputVar%. if it doesn't work, try fileread, x, Images.txt msgbox, % x does all the data show up from the file? if eve...
- 03 May 2022, 01:10
- Forum: Ask for Help (v1)
- Topic: Differentiate Chrome windows Topic is solved
- Replies: 18
- Views: 2433
Re: Differentiate Chrome windows Topic is solved
explain what you are trying to do, acc could be a solution for non active windows but I do not know what you need.
- 02 May 2022, 10:06
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138413
Re: Get the URL of the current (active) browser tab
Tested on Chrome and Edge, and no need to include Acc. #SingleInstance, Force SetTitleMatchMode, 2 F10:: MsgBox, % GetURL("Google Chrome") return GetURL(wTitle*) { ErrorLevel := 0 if !(wId := WinExist(wTitle*)) { ErrorLevel := 1 return } IUIAutomation := ComObjCreate(CLSID_CUIAutomation := "{ff48db...
- 02 May 2022, 02:56
- Forum: Ask for Help (v1)
- Topic: Select the correct POST button on a page
- Replies: 7
- Views: 446
- 02 May 2022, 00:23
- Forum: Ask for Help (v1)
- Topic: Keystroke Script help please!
- Replies: 2
- Views: 248
Re: Keystroke Script help please!
Code: Select all
loop, 30
{
send, E
sleep, 3500
}
- 28 Apr 2022, 17:17
- Forum: Ask for Help (v1)
- Topic: How to add clipboard content to script?
- Replies: 6
- Views: 1924
Re: How to add clipboard content to script?
Code: Select all
send, % clipboard " hi"
- 27 Apr 2022, 22:52
- Forum: Ask for Help (v1)
- Topic: Cleaning Google Translate URLs (with RegEx) Topic is solved
- Replies: 5
- Views: 520
Re: Cleaning Google Translate URLs (with RegEx) Topic is solved
I'm at a loss about what is wrong. Isn't Regexmatch supposed to output the match into the clipboard? I tested the regex using regex101's tester and it matches with the URLs correctly. No, RegexMatch returns the position of the match. The match itself (along with a pseudoarray for all captured subpa...
- 26 Apr 2022, 08:52
- Forum: Ask for Help (v1)
- Topic: Read and open URLs from a Google Doc
- Replies: 12
- Views: 1568
Re: Read and open URLs from a Google Doc
When I look at the html source of a google doc I see that all my hyperlinks are stored in the format
ulnk_url":"http://www.ahk.com"
Can you get the whole html? IF you can, you could run a regex loop and get everything between ulnk_url":" AND " and that will be a list of all urls in the document.
ulnk_url":"http://www.ahk.com"
Can you get the whole html? IF you can, you could run a regex loop and get everything between ulnk_url":" AND " and that will be a list of all urls in the document.
- 25 Apr 2022, 02:56
- Forum: Ask for Help (v1)
- Topic: Read and open URLs from a Google Doc
- Replies: 12
- Views: 1568
Re: Read and open URLs from a file
save the google doc as word I would, but on both the PC I'm writing the script on and the PC that will be using this script, they do not have Office installed, so being able to read in directly from the currently active document would be best. I'm currently watching @geek's webinar with @Joe Glines...
- 25 Apr 2022, 01:21
- Forum: Ask for Help (v1)
- Topic: Read and open URLs from a Google Doc
- Replies: 12
- Views: 1568
Re: Read and open URLs from a file
save the google doc as word I would, but on both the PC I'm writing the script on and the PC that will be using this script, they do not have Office installed, so being able to read in directly from the currently active document would be best. I'm currently watching @geek's webinar with @Joe Glines...
- 24 Apr 2022, 17:24
- Forum: Ask for Help (v1)
- Topic: Read and open URLs from a Google Doc
- Replies: 12
- Views: 1568
- 24 Apr 2022, 08:33
- Forum: Ask for Help (v1)
- Topic: Download using COM
- Replies: 9
- Views: 677
Re: Download using COM
And I only have this site (with "api": "api.europeana.eu") does not work, everything else download. And if remove the "api." from link — HTTP.Open("GET", "https://europeana.eu/record/473/https___www_esbirky_cz_detail_328612.json?wskey=nLbaXYaiH", 0) download the text: "{}". That is exactly what you...
- 24 Apr 2022, 04:10
- Forum: Ask for Help (v1)
- Topic: Extract/retrieve cell contents from grid-based app
- Replies: 2
- Views: 219
Re: Extract/retrieve cell contents from grid-based app
Run the WinSpy tool and post a screen shot of what happens when you roll over parts of the grid. The type of control it is will determine what methods should be tried.
- 24 Apr 2022, 00:27
- Forum: Ask for Help (v1)
- Topic: Download using COM
- Replies: 9
- Views: 677
Re: Download using COM
Code: Select all
URLDownloadToFile,https://api.europeana.eu/record/473/https___www_esbirky_cz_detail_328612.json?wskey=nLbaXYaiH,tempfile12345.txt
run, tempfile12345.txt
ExitApp
- 20 Apr 2022, 21:10
- Forum: Ask for Help (v1)
- Topic: Can I get a link title with AHK
- Replies: 8
- Views: 920
Re: Can I get a link title with AHK
JS selectors is much easier, regex is not optimal Of course it depends on the use case, but I prefer RegEx whenever possible as it is more performant. That gave me an idea to use regex replace to just remove the iframe tag thanks :thumbup: q:: gettitle := UrlDownloadToVar2(Clipboard) document := Co...
- 20 Apr 2022, 15:04
- Forum: Ask for Help (v1)
- Topic: Can I get a link title with AHK
- Replies: 8
- Views: 920
Re: Can I get a link title with AHK
I never found a solution Just use RegEx instead of the HTMLFILE object. I did manage to isolate the issue and it seems an iframe causes it, here is a quick sample var = ( <!DOCTYPE html> <html lang="en-US"> <head> <title>A Title</title> <iframe src="https://www.youtube.com/bb/bb.aspx?utm_source=bb"...
- 20 Apr 2022, 13:53
- Forum: Ask for Help (v1)
- Topic: Can I get a link title with AHK
- Replies: 8
- Views: 920
Re: Can I get a link title with AHK
post a sample link please
edit: this is an old issue on some pages, I never found a solution. There is something within the html (possibly a #) that triggers that