Search found 91 matches

by xuezhe
04 Dec 2017, 08:53
Forum: Ask for Help (v1)
Topic: slider of dom
Replies: 3
Views: 1370

Re: slider of dom

thx.
But I want to use createEvent()
Is something wrong about my script ?
by xuezhe
30 Nov 2017, 23:06
Forum: Ask for Help (v1)
Topic: slider of dom
Replies: 3
Views: 1370

slider of dom

it can't work after opening the site. https://www.cnblogs.com/cloudgamer/archive/2008/12/24/slider.html 捕获.PNG #NoEnv #SingleInstance force CoordMode, Mouse, Screen ControlGetText,string, Edit1,ahk_class IEFrame WebBrowser:=IEGetFromUrl(string) document:=WebBrowser.document ControlGetPos , x2, y2, W...
by xuezhe
26 Nov 2017, 10:31
Forum: Old Topics
Topic: AutoGUI 2.5
Replies: 159
Views: 114703

Re: AutoGUI 2.0

great job. Could you update it for AHK_L v2.
by xuezhe
14 Nov 2017, 23:48
Forum: Ask for Help (v1)
Topic: The problem of Dom
Replies: 10
Views: 2205

Re: The problem of Dom

wb := ComObjCreate("InternetExplorer.Application") OnExit( Func("Exit").Bind(wb) ) wb.Visible := 1 wb.Navigate("https://www.baidu.com") elem := DomElementReady("getElementById", "kw",, 10000) MsgBox % IsObject(elem) DomElementReady(method, value, index := 0, Milliseconds := 5000){ global wb StartTi...
by xuezhe
14 Nov 2017, 08:22
Forum: Ask for Help (v1)
Topic: The problem of Dom
Replies: 10
Views: 2205

Re: The problem of Dom

Can you show your code, where you get an element through getElementsByClassName and getElmentsByTagName? sure. wb := ComObjCreate("InternetExplorer.Application") wb.Visible := 1 wb.Navigate("https://www.baidu.com") sleep 3000 Msgbox wb.document.getElementsByTagName("input")[8].value there're three ...
by xuezhe
14 Nov 2017, 08:09
Forum: Ask for Help (v1)
Topic: The problem of Dom
Replies: 10
Views: 2205

Re: The problem of Dom

wb := ComObjCreate("InternetExplorer.Application") OnExit( Func("Exit").Bind(wb) ) wb.Visible := 1 wb.Navigate("https://www.baidu.com") elem := DomElementReady(10000) MsgBox % IsObject(elem) DomElementReady(Milliseconds := 5000){ global wb StartTime := A_TickCount while wb.busy { Sleep 50 ElapsedTi...
by xuezhe
14 Nov 2017, 07:46
Forum: Ask for Help (v1)
Topic: The problem of Dom
Replies: 10
Views: 2205

Re: The problem of Dom

teadrinker wrote:The problem is that you try to get domElementObject before the document is loaded.
I know.But how to change it to funtion.
by xuezhe
14 Nov 2017, 04:19
Forum: 教程资料
Topic: COM 对象的进程内、外运行
Replies: 1
Views: 14417

Re: COM 对象的进程内、外运行

FileSystemObject 对象 win7 支持。测试正常。
by xuezhe
14 Nov 2017, 03:46
Forum: 教程资料
Topic: 用大数字作为数组的键名的坑
Replies: 4
Views: 13388

Re: 用大数字作为数组的键名的坑

这是漏洞吗。最好报告给ahk作者呀。这是L V1 的漏洞,估计作者也不升级了。

我用V2运行结果正常,没有上面的问题。

Code: Select all

n := "448045523405"
obj := {}
obj[n] := "abc"

MsgBox  obj[n] ; 结果为 abc,正常。

for k, v in obj
	MsgBox  k "=" v  ; 448045523405=abc

n1 := "448045523405"
n2 := "1368924621"

obj := {}
obj[n1] := "abc"
obj[n2] := "efg"

MsgBox obj[n1] ; abc
by xuezhe
14 Nov 2017, 03:30
Forum: Ask for Help (v1)
Topic: The problem of Dom
Replies: 10
Views: 2205

The problem of Dom

It can't work after changing it to function. works well: window := ComObjCreate("InternetExplorer.Application") window.Visible := 1 window.Navigate("https://www.baidu.com") Milliseconds:="600" StartTime := A_TickCount while window.busy { Sleep 50 ElapsedTime := A_TickCount - StartTime if(ElapsedTime...
by xuezhe
06 Nov 2017, 23:04
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 2
Views: 1883

Re: AHK_L V1 → AHK_H V2

I modify something of code ,now it works well.thx.

Code: Select all

;You may need to change:
      If MaxResult Is Not Integer
      If Timeout Is Not Integer
      If Str Is Number
;to:
      If Not MaxResult Is  "Integer"
      If Not Timeout Is "Integer"
      If Str Is "Number"
by xuezhe
06 Nov 2017, 02:04
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 2
Views: 1883

AHK_L V1 → AHK_H V2

I try to change it from AHK_L v1 to AHK_H v2 .some error happens.Could you help me to complete this.thx. I'don't know how to update,delete the data of sqlite,could you give me a example ? AHK_L https://autohotkey.com/boards/viewtopic.php?f=6&t=1064&sid=91f4222620265f42c43b55625450943d ; ============...
by xuezhe
30 Oct 2017, 23:44
Forum: Ask for Help
Topic: Change the size of window
Replies: 6
Views: 2615

Re: Change the size of window

thx.
by xuezhe
30 Oct 2017, 09:41
Forum: Ask for Help
Topic: Change the size of window
Replies: 6
Views: 2615

Re: Change the size of window

I don't understand the usage of changing the size of the window, could you give an example .
Running the above code, I can't change the size of the window.
by xuezhe
29 Oct 2017, 08:13
Forum: Ask for Help
Topic: Change the size of window
Replies: 6
Views: 2615

Re: Change the size of window

HotKeyIt wrote:It seems to work fine for me, what is the problem?
When the user change the size of the window ,the fuction of change should work.but I run the ahk,It shows the width and height at once.

I wanna find the event when changing the window size.
by xuezhe
28 Oct 2017, 22:31
Forum: Ask for Help
Topic: Change the size of window
Replies: 6
Views: 2615

Change the size of window

#SingleInstance force global Gui Gui:=GuiCreate("+AlwaysOnTop","Window") Gui.SetFont(,"微软雅黑") Gui.Add("Edit","x0 y0 w200 h100") Gui.OnEvent("Size", "Change") ;用户调整窗口大小 Gui.Show("AutoSize") Change(Gui,MinMax,Width,Height) { MsgBox MinMax "`n" Width "`n" Height } it doesn't work well in AHK_H V2.
by xuezhe
19 Oct 2017, 02:40
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 3604

Re: AHK_L V1 → AHK_H V2

thx .now it works well in AHK_H V2 .sorry,I give you a wrong url which is too old.
by xuezhe
18 Oct 2017, 18:53
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 3604

Re: AHK_L V1 → AHK_H V2

using the AccViwer fllowing { WM_ACTIVATE := 0x06 WM_KILLFOCUS := 0x08 WM_LBUTTONDOWN := 0x201 WM_LBUTTONUP := 0x202 global Border := new Outline, Stored:={}, Acc, ChildId, TVobj, Win:={} } { DetectHiddenWindows, On OnExit, OnExitCleanup OnMessage(0x200,"WM_MOUSEMOVE") ComObjError(false) Hotkey, ~LB...
by xuezhe
18 Oct 2017, 18:39
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 3604

Re: AHK_L V1 → AHK_H V2

AHK_L v1 #SingleInstance force #include Acc.ahk run,Notepad.exe WinWait,ahk_class Notepad WinGet,hWnd,id, ahk_class Notepad window := Acc_ObjectFromWindow(hWnd) MsgBox % window.accChildCount children := Acc_Children(window) MsgBox % children[2].accValue(0) ;------------------------------------------...
by xuezhe
18 Oct 2017, 00:38
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 3604

Re: AHK_L V1 → AHK_H V2

Code: Select all

hwnd:=WinGetID("ahk_class Notepad")
window := Acc_ObjectFromWindow(hwnd)  
MsgBox window.accChildCount 
I just test it on ahk_h v2. it shows 2,but it shows 7 on AHK_L.
the fact is 7.

Go to advanced search