Search found 20 matches

by Bral
27 May 2020, 20:23
Forum: Ask for Help (v1)
Topic: Does Edit box can be append text?
Replies: 12
Views: 1664

Re: Does Edit box can be append text?

teadrinker wrote:
27 May 2020, 13:46
Try your test several times without removing an existing text. :)
I tested add 1000 times, your code is faster, But i don't know why need WM_GETTEXTLENGTH and EM_SETSEL? i delete that 2 line and code work fine.
by Bral
27 May 2020, 10:39
Forum: Ask for Help (v1)
Topic: Does Edit box can be append text?
Replies: 12
Views: 1664

Re: Does Edit box can be append text?

try this: var := "some text" gui, add, edit, x0 y0 w200 h200 vtxt, % var gui, add, button, x0 y+5 gadd, add some more gui, show return add: gui, submit, nohide txt .= " and some more" guicontrol,, txt, %txt% guicontrol,focus,txt send, ^{end} return This code is not the best, because it is reload al...
by Bral
27 May 2020, 10:36
Forum: Ask for Help (v1)
Topic: Does Edit box can be append text?
Replies: 12
Views: 1664

Re: Does Edit box can be append text?

Or like this: text := " add some more" Gui, Add, Edit, w200 h200 hwndhEdit Gui, Add, Button, xp y+5, Add Text handler := Func("AppendText").Bind(text, hEdit) GuiControl, +g, Button1, % handler Gui, Show Return AppendText(text, hEdit) { static WM_GETTEXTLENGTH := 0x0E , EM_SETSEL := 0xB1 , EM_REPLAC...
by Bral
27 May 2020, 09:57
Forum: Ask for Help (v1)
Topic: Does Edit box can be append text?
Replies: 12
Views: 1664

Does Edit box can be append text?

append text to the end of text box, like FileAppend, and always show last line.
by Bral
20 Sep 2019, 05:02
Forum: Ask for Help (v1)
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 1474

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 (v1)
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 1474

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 (v1)
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 1474

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 (v1)
Topic: How to open the "new" open folder dialog?
Replies: 8
Views: 1474

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 1474 times
by Bral
29 Oct 2018, 19:44
Forum: Ask for Help (v1)
Topic: How to use Sublime Text 3 and Xdebug Client plugin to debug ahk script?
Replies: 0
Views: 574

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: 68698

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 (v1)
Topic: Need help about ComObjCreate("InternetExplorer.Application")
Replies: 1
Views: 784

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 (v1)
Topic: Need help about Associative Arrays
Replies: 9
Views: 2994

Re: Need help about Associative Arrays

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

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 (v1)
Topic: Need help about Associative Arrays
Replies: 9
Views: 2994

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 (v1)
Topic: Need help about Associative Arrays
Replies: 9
Views: 2994

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: 2345

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

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

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: 2345

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

如题,用示例中的下载文本到变量代码: 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