Search found 15 matches

by JawGBoi
08 Jun 2020, 04:23
Forum: Scripts and Functions (v1)
Topic: Using Google Translate to automate text translation
Replies: 227
Views: 96212

Re: Using Google Translate to automate text translation

Is there anyway to extract the transliteration for languages that support it?
by JawGBoi
07 Jun 2020, 10:29
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

WinHttpRequest object COM Object Reference Also look for examples on this forum. I am confused about why this code isn't working ^+2:: AllText := send, ^c sleep, 200 WordLookup := clipboard url := "https jisho.org /search/" Broken Link for safety . clipboard . "%20%23sentences" sleep, 200 whr := Co...
by JawGBoi
03 Jun 2020, 07:40
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

also get the furigana helper text You are right, I was inattentive. Fixed: url := "https jisho.org /search/%E6%97%A5%20%23sentences" Broken Link for safety whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", url, false) whr.Send() status := whr.status if (status != 200) throw "Failed ...
by JawGBoi
03 Jun 2020, 05:49
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

The reason why the punctuation isn't being picked up Haha, I just didn't notice the punctuation. :) url := "https jisho.org /search/%E6%97%A5%20%23sentences" Broken Link for safety whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", url, false) whr.Send() status := whr.status if (stat...
by JawGBoi
03 Jun 2020, 04:48
Forum: Ask for Help (v1)
Topic: Detecting ESC key not working
Replies: 1
Views: 230

Detecting ESC key not working

I have coded a script that screen snips, detects once you have finished screen snipping and then uploads the screen snip to an image to text converter, this is very useful for my language learning. The main functionality of it works but then I tried to make it so if you press the ESC key it will not...
by JawGBoi
02 Jun 2020, 08:11
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

I can't see what you have changed. (A_Index = 1 ? "" : " ") . has been removed. I have found the problem: https://imgur.com/a/zKCm605 The reason why the punctuation isn't being picked up is because it isn't in the same class as the Japanese text. Could you find a way to fix this? I have been trying...
by JawGBoi
01 Jun 2020, 15:43
Forum: Ask for Help (v1)
Topic: New to webscraping, need help! :)
Replies: 5
Views: 11844

New to webscraping, need help! :)

Hello I am new to web scraping in AHK, I have made progress but not enough. I am trying to extract a link to the video source of a video player. Here is my code, all I have done so far is get the HTML code from the selected text (which should be a URL): ^+5:: send, ^c sleep, 200 url := clipboard sle...
by JawGBoi
01 Jun 2020, 14:50
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

(A_Index = 1 ? "" : " ") . has been removed. Hello again, when the code is ran, do you what would be assigned to the variable sentences at the following line sentences := doc.querySelectorAll(".sentence_content") I am trying to make a totally new script for a new purpose and am trying to use the sc...
by JawGBoi
01 Jun 2020, 09:38
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

Like this, maybe: url := "https jisho.org /search/%E6%97%A5%20%23sentences" Broken Link for safety whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", url, false) whr.Send() status := whr.status if (status != 200) throw "Failed to dowload html. Status: " . status html := whr.responseT...
by JawGBoi
01 Jun 2020, 07:01
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

add this to the top of the script AllText := I have another problem, the output of the Japanese sentences contains spaces (Japanese sentences don't use spaces), for example: 彼女 と 友達 に なれた 時 は それは うれしかった です よ。 I was overjoyed when I was able to make friends with her! How do I get rid of these spaces...
by JawGBoi
01 Jun 2020, 06:22
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

AHKStudent wrote:
01 Jun 2020, 06:15
add this to the top of the script

Code: Select all

 AllText := 
Wow, Thank you so much!
by JawGBoi
01 Jun 2020, 04:21
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Re: Need help web scraping

Hello! Try this example: url := "https jisho.org /search/%E6%97%A5%20%23sentences" Broken Link for safety whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", url, false) whr.Send() status := whr.status if (status != 200) throw "Failed to dowload html. Status: " . status html := whr.re...
by JawGBoi
31 May 2020, 00:36
Forum: Ask for Help (v1)
Topic: Need help web scraping
Replies: 20
Views: 1789

Need help web scraping

Hello all, I am in need of a script for webscraping . You see, I am very competent at web scraping, but only using VB. VB only lets you go so far when web scraping , what I mean is it only lets you scrap this from the page source (the same text as you see when you press ctrl+u), this just isn't cut...
by JawGBoi
11 May 2020, 13:12
Forum: Ask for Help (v1)
Topic: How do I get this script to loop until I press a shortcut
Replies: 1
Views: 247

How do I get this script to loop until I press a shortcut

Here is my code: ^+k:: { Click, 2487, 1648 Sleep, 3100 Click, 2468, 115 Sleep, 6200 Click, 35, 359 Sleep, 1000 Click, 210, 630 Sleep, 250 Click, 609, 633 Sleep, 750 Click, WheelDown, 20 Sleep, 250 Click, 207, 933 Sleep, 500 Click, 724, 54 Sleep, 2000 MouseClick, left, 1060, 1570 Sleep, 1000 Return }...
by JawGBoi
05 May 2020, 14:40
Forum: Ask for Help (v1)
Topic: I am trying to add a "%" to a URL search
Replies: 3
Views: 325

I am trying to add a "%" to a URL search

I am trying to make an AHK which searches the website Jisho (A Japanese dictionary). I want it to: Copy my highlighted text Search for "https jisho.org /search/" Broken Link for safety + [insert Japanese word here] + "%20%23sentences" I need the "%20%23sentences" part because that translates to "#se...

Go to advanced search