Search found 16 matches

by Bral
20 Sep 2019, 05:02
Forum: Ask For Help
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 379

Re: How to open the "new" open folder dialog?

Thank you very much, this code work fine.
by Bral
19 Sep 2019, 10:07
Forum: Ask For Help
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 379

Re: How to open the "new" open folder dialog?

Flipeador wrote:
19 Sep 2019, 09:34
The first parameter allows you to specify the owner window. Is that what you are referring to?. :think:
I think that's not i need for, I need that if open Choose Folder dialog, you can't switch to the main window,and can't click any button in main windows, until you close Choose Folder dialog.
by Bral
19 Sep 2019, 08:41
Forum: Ask For Help
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 379

Re: How to open the "new" open folder dialog?

Flipeador wrote:
18 Sep 2019, 08:59
AHKv1: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=65909&p=283111#p283101(specifically here).
@jNizM: My v2 code is out of date. I'll be updating it soon.

:wave:
How to show your "ChooseFolder dialog" as model dialog?
by Bral
18 Sep 2019, 08:23
Forum: Ask For Help
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 379

How to open the "new" open folder dialog?

when i use FileSelectFolder, it open old open folder dialog. how to open new dialog like this:
QQ浏览器截图20190918212119.png
QQ浏览器截图20190918212119.png (56.37 KiB) Viewed 379 times
by Bral
29 Oct 2018, 19:44
Forum: Ask For Help
Topic: How to use Sublime Text 3 and Xdebug Client plugin to debug ahk script?
Replies: 0
Views: 312

How to use Sublime Text 3 and Xdebug Client plugin to debug ahk script?

I'd like use Sublime Text 3, and it have an dbg plugin https://packagecontrol.io/packages/Xdebug%20Client
How to use Xdebug Client to dbg ahk script?
by Bral
23 Jun 2018, 02:29
Forum: 教程资料
Topic: 网页自动化初级教程
Replies: 13
Views: 35612

Re: 网页自动化初级教程

提供一条经验,在 Win 10 中用内嵌 IE 控件到 AHK GUI 中的方法来操作网页,结果发现遇到很多 DOM 操作函数不可用的情况,比如 Document.querySelector 这个命令,经多方查找原因,才发现是因为默认调用的是 IE的兼容模式,即模拟了 IE7,而导致一些命令不支持,解决办法是修改注册表,指定 AHK 中调用的 IE 版本: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION] "AutoHotkey.exe"...
by Bral
13 Jun 2018, 09:51
Forum: Ask For Help
Topic: Need help about ComObjCreate("InternetExplorer.Application")
Replies: 1
Views: 350

Need help about ComObjCreate("InternetExplorer.Application")

I use this code to visit https://www.xxx.com site pwb := ComObjCreate("InternetExplorer.Application") pwb.Visible := 1 pwb.Navigate("https://www.xxx.com") ;.... pwb.document.getElementsByName("manage_check_flg")[0].Click() MouseMove, 955, 675 Sleep, 500 MouseClick, left msgbox, 123 when script click...
by Bral
04 Jan 2018, 22:13
Forum: Ask For Help
Topic: Need help about Associative Arrays
Replies: 9
Views: 1284

Re: Need help about Associative Arrays

Thanks for teadrinker, your code work fine.
by Bral
04 Jan 2018, 20:45
Forum: Ask For Help
Topic: Need help about Associative Arrays
Replies: 9
Views: 1284

Re: Need help about Associative Arrays

#Include, JSON.ahk try { Http := ComObjCreate("Microsoft.XmlHttp") Http.Open("POST", "http://www.duanrong.com/lcjh/list/0", false) Http.Send("size=10") JSONS := Http.ResponseText } FileAppend, %JSONS%, json.txt Test := JSON.Load(JSONS) MsgBox % Test.response.total I get an error: "Expecting JSON val...
by Bral
04 Jan 2018, 19:19
Forum: Ask For Help
Topic: Need help about Associative Arrays
Replies: 9
Views: 1284

Re: Need help about Associative Arrays

Thanks for teadrinker and FanaticGuru, your code works fine. but cocobelgica's AutoHotkey-JSON can't work -___-
by Bral
03 Jan 2018, 04:10
Forum: Ask For Help
Topic: Need help about Associative Arrays
Replies: 9
Views: 1284

Need help about Associative Arrays

This code return right data: Test := {"name":"Baal","age":"50"} MsgBox % Test.name "age" Test.age I have some data is like this {"name":"Baal","age":"50"} ,this data in a Variables named DATA. but this code can't return right data: DATA := "{""name"":""Baal"",""age"":""50""}" Test := DATA MsgBox % T...
by Bral
05 Apr 2015, 09:30
Forum: 请求帮助
Topic: 求助,将网页下载到变量后无法进行字符串相关操作?
Replies: 2
Views: 1374

Re: 求助,将网页下载到变量后无法进行字符串相关操作?

明白怎么回事了。WinHttp.WinHttpRequest.5.1的代理独立于IE之外,而UrlDownloadToFile则使用IE代理,所以代码出错。
by Bral
04 Apr 2015, 22:14
Forum: 请求帮助
Topic: 求助,将网页下载到变量后无法进行字符串相关操作?
Replies: 2
Views: 1374

Re: 求助,将网页下载到变量后无法进行字符串相关操作?

#NoEnv #Warn SendMode Input SetWorkingDir %A_ScriptDir% ;UrlDownloadToFile, http://imgtrex.com/ujfrrsm8h1ob/AnjericaC14_044.jpg, AnjericaC14_044.txt ;FileRead, html, AnjericaC14_044.txt ;如果直接用上面的代码下载文件再读取,下面操作能正常执行。如果用下面的代码获取网页,后面的字符串处理就出错。 whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open(...
by Bral
04 Apr 2015, 22:11
Forum: 请求帮助
Topic: 求助,将网页下载到变量后无法进行字符串相关操作?
Replies: 2
Views: 1374

求助,将网页下载到变量后无法进行字符串相关操作?

如题,用示例中的下载文本到变量代码: whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "http://ahkscript.org/download/1.1/version.txt") whr.Send() version := whr.ResponseText MsgBox % version 这个version在msgbox里面看到是有内容的,但是如果此时对这个version变量进行字符串查找等类似操作,就会找不到相关内容。但是如果我是直接用UrlDownloadToFile下载到文件,然后fileread读...

Go to advanced search