Search found 1091 matches

by tmplinshi
20 Nov 2017, 23:33
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 127

Re: Get text content out of HTM file

FileRead, html, JReportLT.htm HtmlToText(html, outText) MsgBox, % outText HtmlToText(ByRef html, ByRef resultText) { doc := ComObjCreate("HtmlFile") doc.open() doc.write( RegExReplace(html, "`as)<head>.*?</head>|<img .*?>") ) doc.close() resultText := doc.body.innerText }
by tmplinshi
14 Nov 2017, 10:18
Forum: 教程资料
Topic: 用大数字作为数组的键名的坑
Replies: 3
Views: 70

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

Oh, thank you jeeswg! This is exactly the document I was looking for.

@xuezhe 我猜测会有相应的文档说明,jeeswg帮忙找出来了 :)
by tmplinshi
14 Nov 2017, 00:31
Forum: 教程资料
Topic: 用大数字作为数组的键名的坑
Replies: 3
Views: 70

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

n := "448045523405" obj := {} obj[n] := "abc" MsgBox, % obj[n] ; 结果为 abc,正常。 for k, v in obj MsgBox, % k "=" v ; 但是这里显示的是 1368924621=abc n1 := "448045523405" n2 := "1368924621" obj := {} obj[n1] := "abc" obj[n2] := "efg" MsgBox, ...
by tmplinshi
09 Nov 2017, 03:46
Forum: Tutorials
Topic: Using Selenium with AutoHotkey- Cross browser automation!
Replies: 39
Views: 4177

Re: Using Selenium with AutoHotkey- Cross browser automation!

Nice tutorial! I want to add a useful tips here: Connect to existing Chrome window just like WBGet()! Step 1. Start Chrome with command line: chrome.exe --remote-debugging-port=9222 (Be sure to kill all running Chome windows that didn't start with --remote-debugging-port=9222 ) Step 2. Open some web...
by tmplinshi
05 Oct 2017, 11:54
Forum: Ask For Help
Topic: Help with syntax: Object.GetVariables(Var1, Var2) Topic is solved
Replies: 9
Views: 254

Re: Help with syntax: Object.GetVariables(Var1, Var2) Topic is solved

I got hope by seeing this answer, install AutoCAD again and finally figured out: :) [code file=AutoCADExample.ahk:8sbkpav9]#NoEnv cad := ComObjActive("AutoCAD.Application") ; AddText point := Point3d("789.72", "1500.45", "0.0") textObj := cad.ActiveDocument.Mo...
by tmplinshi
05 Oct 2017, 02:29
Forum: Ask For Help
Topic: how to catch the cookie
Replies: 4
Views: 175

Re: how to catch the cookie

The WinHttpRequest object doesn't have AllowAutoRedirect property. But you can use Option property: WebRequest.Option(6) := false ; 6 = WinHttpRequestOption_EnableRedirects typedef enum WinHttpRequestOption { WinHttpRequestOption_UserAgentString, WinHttpRequestOption_URL, WinHttpRequestOption_URLCod...
by tmplinshi
28 Sep 2017, 21:32
Forum: Ask For Help
Topic: Overlay GUI With Dynamically Selected Buttons Topic is solved
Replies: 4
Views: 209

Re: Overlay GUI With Dynamically Selected Buttons Topic is solved

Yes, it is possible. Take a look at Tab and Toolbar controls. To show/hide control use GuiControl . Just a quick example of Tab control: Gui, 99:+HwndhParent Gui, 99:Add, Button,, This is the parent button Gui, 99:Show, w600 h300 ;---------------------------------------------------------------------...
by tmplinshi
27 Sep 2017, 22:47
Forum: Ask For Help
Topic: Copy & Paste Between 2 APPS
Replies: 4
Views: 187

Re: Copy & Paste Between 2 APPS

thebib622 wrote:Is anyone able to make this script work every time the clipboard is changed, not just from notepad++.exe?

Just remove && WinActive("ahk_exe notepad++.exe")
by tmplinshi
26 Sep 2017, 23:45
Forum: Ask For Help
Topic: Overlay GUI With Dynamically Selected Buttons Topic is solved
Replies: 4
Views: 209

Re: Overlay GUI With Dynamically Selected Buttons Topic is solved

example: ComObjCreate("Shell.Application").FileRun() WinWait, ahk_class #32770 ahk_exe explorer.exe hParent := WinExist() Gui, +HwndhChild -Caption Gui, Add, Button, , AHK_Button DllCall("SetParent", "ptr", hChild, "ptr", hParent) Gui, Show, x20 y0 NA WinSet, ...
by tmplinshi
26 Sep 2017, 10:50
Forum: Ask For Help
Topic: Help with ExcelLibrary.dll using CLR.ahk Topic is solved
Replies: 4
Views: 184

Re: Help with ExcelLibrary.dll using CLR.ahk Topic is solved

Good to know another useful tool dnSpy. Thanks again for your time and help.
by tmplinshi
26 Sep 2017, 01:42
Forum: Ask For Help
Topic: Help with syntax: Object.GetVariables(Var1, Var2) Topic is solved
Replies: 9
Views: 254

Re: Help with syntax: Object.GetVariables(Var1, Var2) Topic is solved

Try:

Code: [Select all]GeSHi © Codebox Plus

MinPoint := ComObjArray(VT_VARIANT:=12, 3)
MinPoint := ComObjArray(VT_VARIANT:=12, 3)

object.GetBoundingBox(ComObjValue(MinPoint), ComObjValue(MaxPoint))
MsgBox, % MinPoint[0] "," MinPoint[1] "," MinPoint[2]
by tmplinshi
26 Sep 2017, 00:19
Forum: Ask For Help
Topic: Copy & Paste Between 2 APPS
Replies: 4
Views: 187

Re: Copy & Paste Between 2 APPS

Try:

Code: [Select all]GeSHi © Codebox Plus

#Persistent

OnClipboardChange:
if (A_EventInfo = 1) && WinActive("ahk_exe notepad++.exe") {
ControlSend, ahk_parent, ^v, ahk_exe aegisub32.exe
}
return
by tmplinshi
25 Sep 2017, 23:29
Forum: Ask For Help
Topic: Help with syntax: Object.GetVariables(Var1, Var2) Topic is solved
Replies: 9
Views: 254

Re: Help with syntax: Object.GetVariables(Var1, Var2) Topic is solved

variable := object.GetXData("AppNameRandomString", XDataType, XDataValue)

The syntax seems correct. However I wonder if you just using the object from nowhere. The object should created by ComObjCreate or ComObjActive.
by tmplinshi
25 Sep 2017, 22:58
Forum: Ask For Help
Topic: Help with ExcelLibrary.dll using CLR.ahk Topic is solved
Replies: 4
Views: 184

Re: Help with ExcelLibrary.dll using CLR.ahk Topic is solved

Wow, that's some kind of "secrect" infomation that is hard to find. Thanks a lot for your help qwerty12!

Yes, I got the same result as you do, unfortunately.
by tmplinshi
25 Sep 2017, 13:06
Forum: 请求帮助
Topic: 如何用快捷键呼出系统托盘区内某个程序
Replies: 1
Views: 246

Re: 如何用快捷键呼出系统托盘区内某个程序

如果是弹出菜单创建的窗口,可以模拟手工操作:使用 TrayIcon_Button 函数弹出右键菜单、使用 Acc 库点击菜单...

参考 https://github.com/tmplinshi/RegSsHotkey
by tmplinshi
25 Sep 2017, 12:06
Forum: Ask For Help
Topic: Help with ExcelLibrary.dll using CLR.ahk Topic is solved
Replies: 4
Views: 184

Help with ExcelLibrary.dll using CLR.ahk Topic is solved

Hi, I'm trying to find a faster way than the Excel COM, to create .xls file (xls only, not xlsx). I guess the "without Excel installed" method is the way to go. So I found ExcelLibrary , but I got the following error: --------------------------- Example.ahk --------------------------- Erro...
by tmplinshi
25 Sep 2017, 11:38
Forum: Ask For Help
Topic: Embedded Variables
Replies: 2
Views: 87

Re: Embedded Variables



Alternatively, I'd recommend using array:

Code: [Select all]GeSHi © Codebox Plus

arrDate := ["2017-09-22", "2017-09-23", "2017-09-24"]

Loop, % arrDate.MaxIndex()
{
Send % arrDate[A_Index]
Send, 00:00:00.000
sleep, 100
}
by tmplinshi
24 Sep 2017, 21:48
Forum: Ask For Help
Topic: Dll translate ahk
Replies: 4
Views: 233

Re: Dll translate ahk

Your dll is .NET dll, you will need CLR library. Something like this (not sure it is correct): #Include CLR.ahk asm := CLR_LoadLibrary("DLL_Trazabilidad.dll") DLL_Trazabilidad := CLR_CreateObject(asm, "DLL_Trazabilidad.DLL_Trazabilidad") result := DLL_Trazabilidad.Consulta_ICT(&q...
by tmplinshi
24 Sep 2017, 08:10
Forum: Offtopic
Topic: Enable forum search for unregistered people
Replies: 3
Views: 116

Re: Enable forum search for unregistered people

I rarely use the forum search, instead I use Google with site: autohotkey.com keywords.
by tmplinshi
23 Sep 2017, 23:08
Forum: Ask For Help
Topic: Dll translate ahk
Replies: 4
Views: 233

Re: Dll translate ahk


Go to advanced search