Search found 72 matches

by gongnl
23 Nov 2017, 22:15
Forum: 请求帮助
Topic: 查询excel遇到问题请求高手帮助?
Replies: 0
Views: 1565

查询excel遇到问题请求高手帮助?

我写了一个查询excel工作表内容的脚本如下,两台电脑Autohotkey都默认安装Unicode 32bit,在一台电脑上双击脚本可正常查询到结果,在另一台电脑一定要右键脚本选择打开方式选择AutoHotkeyA32.exe打开,才能查询到结果,否则如果双击打开运行搜索到的记录数为0,请教高手是什么原因,是电脑系统哪没有设置好,请高手不吝赐教,谢谢!!! objConnection := ComObjCreate("ADODB.Connection") objRecordSet := ComObjCreate("ADODB.Recordset") dataSource := A_Script...
by gongnl
20 May 2017, 08:34
Forum: Scripts and Functions
Topic: OnWin() - call function on window event (WinWaitXXX async)
Replies: 53
Views: 34989

Re: OnWin() - call function on window event (WinWaitXXX async)

when I compile the Example code to .exe file, it doesn't work. why ?Anyone help me? thanks
by gongnl
10 May 2017, 01:58
Forum: 请求帮助
Topic: 点击网页中指定的链接时,触发ahk脚本执行,能否给个实例?
Replies: 2
Views: 2381

Re: 点击网页中指定的链接时,触发ahk脚本执行,能否给个实例?

当点击qq邮箱登录页面frame中的 元素时,却无法返回doc.parentWindow.event.srcElement.OuterHtml信息,请教高手将如何返回点击处的元素连接 代码如下: #Persistent wb := ComObjCreate("InternetExplorer.Application") wb.visible := True wb.Navigate("https://mail.qq.com/cgi-bin/loginpage") while wb.busy sleep 100 doc := wb.document ComObjConnect(doc, "Doc_...
by gongnl
08 May 2017, 07:23
Forum: Ask For Help
Topic: Capture mouse click event inside a iframe using authotkey
Replies: 2
Views: 826

Re: Capture mouse click event inside a iframe using authotkey

could you link to the site you want to click on? or is it a work site/private? when I click on element in qq mail login frame, but not return doc.parentWindow.event.srcElement.OuterHtml #Persistent wb := ComObjCreate("InternetExplorer.Application") wb.visible := True wb.Navigate("https://en.mail.qq...
by gongnl
29 Mar 2017, 22:16
Forum: 请求帮助
Topic: 如何禁止应用软件定义的全局热键?请大神指教
Replies: 2
Views: 4677

Re: 如何禁止应用软件定义的全局热键?请大神指教

解决方法:
^i:: ControlSend,, ^i,A
^h:: ControlSend,, ^h,A
by gongnl
25 Mar 2017, 11:39
Forum: Ask For Help
Topic: help with html onclick handler Topic is solved
Replies: 2
Views: 913

Re: help with html onclick handler Topic is solved

Thank for your answer, After using the NavigateComplete2 function, I click on the link, is still the first trigger NavigateComplete2 function, and then open the link, I think the use of DocumentComplete event better.
Is a event directly connected to iframe?
by gongnl
23 Mar 2017, 08:39
Forum: Ask For Help
Topic: Capture mouse click event inside a iframe using authotkey
Replies: 2
Views: 826

Capture mouse click event inside a iframe using authotkey

I want to Capture mouse click event inside a iframe using authotkey, but fdoc.parentWindow.event.srcElement.OuterHtml is a Invalid variable. who help me ? thank #SingleInstance force #Persistent pwb := WBGet() frmwin := pwb.document.getElementById("mainFrame").contentWindow frame := ComObj(9,ComObjQ...
by gongnl
23 Mar 2017, 08:20
Forum: Ask For Help
Topic: help with html onclick handler Topic is solved
Replies: 2
Views: 913

help with html onclick handler Topic is solved

I set the onclick handler on html link "<a href=...>show me</a>", WB.document.getElementById("show me").onclick := Func("showme_OnClick") but I click on the link,first showme_onclick function is caused ,then open the link,I want to open the link first,then the function is caused. how can i do? thank
by gongnl
20 Mar 2017, 16:45
Forum: Ask For Help
Topic: ComObjConnect/IE question
Replies: 8
Views: 1932

Re: ComObjConnect/IE question

bump,i have same problem,who help me?thank
by gongnl
20 Mar 2017, 07:57
Forum: 请求帮助
Topic: 点击网页中指定的链接时,触发ahk脚本执行,能否给个实例?
Replies: 2
Views: 2381

Re: 点击网页中指定的链接时,触发ahk脚本执行,能否给个实例?

我找了个类似例子: Gui Add, ActiveX, w500 h300 vwb, Shell.Explorer wb.Navigate("http://ahkscript.org") while wb.busy sleep 100 doc := wb.document ComObjConnect(doc, "Doc_") Gui, Show Return GuiClose: ExitApp Doc_OnClick(doc) { MsgBox, % doc.parentWindow.event.srcElement.OuterHtml } 修改如下: #Persistent wb := Co...
by gongnl
20 Mar 2017, 04:12
Forum: 请求帮助
Topic: 点击网页中指定的链接时,触发ahk脚本执行,能否给个实例?
Replies: 2
Views: 2381

点击网页中指定的链接时,触发ahk脚本执行,能否给个实例?

请教大神,点击ie网页中指定的链接时,触发ahk脚本提取打开的网页中的字段,能否给个实例,谢谢
by gongnl
19 Mar 2017, 22:48
Forum: Ask For Help
Topic: Detect click into HTML Form
Replies: 2
Views: 1075

Re: Detect click into HTML Form

bump
by gongnl
11 Oct 2016, 04:07
Forum: 请求帮助
Topic: 如何把 Capslock 设置成 Hyper key(超级键)
Replies: 2
Views: 5620

Re: 如何把 Capslock 设置成 Hyper key(超级键)

;CapsLock+ I/K/J/L/H/N 映射成 上下左右键 删除 恢复 $CapsLock:: KeyWait, CapsLock ;等待用户松开CapsLock键 if (A_PriorKey="CapsLock") SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off":"On" return #If, GetKeyState("CapsLock", "P") i::Up j::Left k::Down l::Right h::BackSpace n::^z u::PGUP o::PGDN a::RunProgByTitle("...
by gongnl
10 Oct 2016, 21:32
Forum: 请求帮助
Topic: 在ie10中把alt+q 键映射为 复制键ctrl+c 不成功,不知什么原因?请求高手指点,谢谢 Topic is solved
Replies: 5
Views: 8156

Re: 在ie10中把alt+q 键映射为 复制键ctrl+c 不成功,不知什么原因?请求高手指点,谢谢 Topic is solved

tmplinshi ,谢谢

我使用

Code: Select all

#IfWinActive, ahk_class IEFrame
!q::
 KeyWait Alt
 Send ^c
 return
#IfWinActive
测试不成功

使用第2段代码测试成功,不解的是为什么要开启CapsLock后才能使alt+q映射成功?
by gongnl
10 Oct 2016, 07:42
Forum: 请求帮助
Topic: 在ie10中把alt+q 键映射为 复制键ctrl+c 不成功,不知什么原因?请求高手指点,谢谢 Topic is solved
Replies: 5
Views: 8156

Re: 在ie10中把alt+q 键映射为 复制键ctrl+c 不成功,不知什么原因?请求高手指点,谢谢 Topic is solved

我想使用alt+q热键映射为复制键ctrl+c,在其他应用程序中都正常可用,但在ie浏览器中无效,使用!q::send ^c 也一样不能复制。

Code: Select all

$!q::
clipboard=
send ^c
ClipWait, 2
clpc :=SubStr(clipboard,1,30)  
ToolTip, Copy %clpc%
sleep,1000
ToolTip
return

Go to advanced search