Search found 183 matches

by songdg
06 Nov 2020, 04:37
Forum: Ask For Help
Topic: How to send text to inputboxs and click buttons with IE browser
Replies: 2
Views: 82

How to send text to inputboxs and click buttons with IE browser

Image
Now I use FindText(https://www.autohotkey.com/boards/viewtopic.php?f=6&t=17834) to automate the input and click, I wonder if there are other ways to do that.
by songdg
05 Nov 2020, 02:36
Forum: Ask For Help
Topic: How to get text form quotes Topic is solved
Replies: 2
Views: 83

Re: How to get text form quotes Topic is solved

Change := to = in your script above. quote := RegExReplace(innerHTML, ".*?""(.+?)"".*", "$1") If you study https://www.autohotkey.com/boards/viewtopic.php?f=76&t=82627 you can see how the regular expressions work. The documentation also has a quick reference. Thanks, much appreciated. Yes, I should...
by songdg
03 Nov 2020, 22:50
Forum: Ask For Help
Topic: How to get text form quotes Topic is solved
Replies: 2
Views: 83

How to get text form quotes Topic is solved

I want to get the text from the first quotes. innerHTML := <a href="/aic/SearchCorporationTask?service=transfer&entityNo=7e09cff5-0173-1000-e001-6dd50a0c0115®isterNo=441900612898500&corpName=abc&singleBizPlaceID=&entityType=9910&status=1&bizSequence=7e09cff5-0173-1000-e001-6caa0a0c0115&historyInf...
by songdg
01 Nov 2020, 22:17
Forum: Ask For Help
Topic: How to close an IE ComObject instance Topic is solved
Replies: 2
Views: 82

Re: How to close an IE ComObject instance Topic is solved

gregster wrote:
30 Oct 2020, 01:48
When you are done, call

Code: Select all

IE.Quit()
Thanks, much appreciated :clap:
by songdg
30 Oct 2020, 01:34
Forum: Ask For Help
Topic: How to close an IE ComObject instance Topic is solved
Replies: 2
Views: 82

How to close an IE ComObject instance Topic is solved

If set Visible := false then how to close that IE ComObject instance.

Code: Select all

IE := ComObjCreate("InternetExplorer.Application")
IE.Visible := false
IE.Navigate(URL)
by songdg
30 Oct 2020, 01:24
Forum: Ask For Help
Topic: How to get text form single quotes Topic is solved
Replies: 2
Views: 70

Re: How to get text form single quotes Topic is solved

mikeyww wrote:
28 Oct 2020, 23:01

Code: Select all

RegExMatch(innerHTML, "'(.+)','(.+)'", ttext)
MsgBox, 64, Quotes, #1:`n%ttext1%`n`n#2:`n%ttext2%
Thanks, much appreciated.
by songdg
28 Oct 2020, 22:32
Forum: Ask For Help
Topic: How to get text form single quotes Topic is solved
Replies: 2
Views: 70

How to get text form single quotes Topic is solved

I want to get the text from the two single quotes.
innerHTML := "href=javascript:call('/aic/SearchCorporationTask?service=colligateSearchInterface&sFromSupervision=fromSupSearch&isUseDataCentre=true&entityNo=0d006a9e-011b-1000-e000-d5170a0c0115','xyz')"
by songdg
28 Oct 2020, 04:10
Forum: Ask For Help
Topic: Can JavaScript function be executed from AHK code
Replies: 5
Views: 143

Re: Can JavaScript be executed from AHK code

Thanks, but doesn't work, I did a search it seems it may involved the use of ComObjCreate("ScriptControl") That href might be changing for some reasons, so You can simply use ".click()" on that element or extract href using getelement and then navigate to that href, using "ScriptControl" would too ...
by songdg
28 Oct 2020, 00:04
Forum: Ask For Help
Topic: Can JavaScript function be executed from AHK code
Replies: 5
Views: 143

Re: Can JavaScript be executed from AHK code

Digging further, I found there is a function, with two parameters in the html source code, and javascript:call('/aic/SearchCorporationTask?service=colligateSearchInterface&sFromSupervision=fromSupSearch&isUseDataCentre=true&entityNo=2a1567dd-0172-1000-e000-be000a0c0115','x_company') is just calling ...
by songdg
27 Oct 2020, 22:26
Forum: Ask For Help
Topic: Can JavaScript function be executed from AHK code
Replies: 5
Views: 143

Re: Can JavaScript be executed from AHK code

you can simply use navigate wb.Navigate( "javascript:call('/aic/SearchCorporationTask?service=colligateSearchInterface&sFromSupervision=fromSupSearch&isUseDataCentre=true&entityNo=11fb14c1-0154-1000-e000-b6270a0c0115','x_company')" ) or you can extract href using tagname or elements wb.Navigate(hre...
by songdg
27 Oct 2020, 04:20
Forum: Ask For Help
Topic: Can JavaScript function be executed from AHK code
Replies: 5
Views: 143

Can JavaScript function be executed from AHK code

I want to click on that hyper link use AHK code with IE browser. <td> <a href="javascript:call('/aic/SearchCorporationTask?service=colligateSearchInterface&sFromSupervision=fromSupSearch&isUseDataCentre=true&entityNo=11fb14c1-0154-1000-e000-b6270a0c0115','x_company')">91441900MA4UNGGN0T </a></t...
by songdg
26 Oct 2020, 20:47
Forum: Ask For Help
Topic: similar question about obtain information from html Topic is solved
Replies: 3
Views: 156

Re: similar question about obtain information from html Topic is solved

Try HTML.querySelector(".main_table").querySelectorAll(".main_datalist_row_a") or, as it seems to be a single node: HTML.querySelector(".main_table").querySelector(".main_datalist_row_a") HTML. is simply taken from your post above. Make sure that it actually references the html document... This is ...
by songdg
26 Oct 2020, 00:06
Forum: Ask For Help
Topic: similar question about obtain information from html Topic is solved
Replies: 3
Views: 156

Re: similar question about obtain information from html Topic is solved

I try

Code: Select all

querySelector(".main_table").querySelectorAll("[align="center" class=main_datalist_row_a]")
, still doesn't work.
by songdg
23 Oct 2020, 04:30
Forum: Ask For Help
Topic: similar question about obtain information from html Topic is solved
Replies: 3
Views: 156

similar question about obtain information from html Topic is solved

I ask similar question at https://www.autohotkey.com/boards/viewtopic.php?f=76&t=81129&p=353188#p353188 I mimick Xtra's code by using trElements := HTML.querySelector(".main_table").querySelectorAll("[center]") , but didn't work. <html> <head> <title>综合业务查询结果</title> <meta http-equiv="Content-Type" ...
by songdg
22 Oct 2020, 20:48
Forum: Ask For Help
Topic: How to detect whether exist an active ms_word document Topic is solved
Replies: 2
Views: 73

Re: How to detect whether exist an active ms_word document Topic is solved

Rohwedder wrote:
14 Oct 2020, 05:26
Hallo,
perhaps:

Code: Select all

Process, WaitClose, WINWORD.EXE
Thank you very much, it works :bravo:
by songdg
20 Oct 2020, 21:35
Forum: Ask For Help
Topic: Can Gdip fill a circle
Replies: 1
Views: 62

Can Gdip fill a circle

I look through the Gdip standard library, but couldn't find such a function.
by songdg
16 Oct 2020, 22:49
Forum: Scripts and Functions
Topic: Using AutoHotkey from Python
Replies: 21
Views: 11600

Re: Using AutoHotkey from Python

burque505 wrote:
16 Oct 2020, 17:14
@songdg, there are a couple of ways at least that you can do that. See the ahk github page, my post here.
Regards,
burque505
Thanks for your help :D
by songdg
16 Oct 2020, 08:54
Forum: Scripts and Functions
Topic: Using AutoHotkey from Python
Replies: 21
Views: 11600

Re: Using AutoHotkey from Python

Can do the inverse, using Python from AutoHotkey?

Go to advanced search