Search found 1100 matches

by tmplinshi
21 Feb 2018, 09:42
Forum: Ask For Help
Topic: DllCall 32vs64 bit Topic is solved
Replies: 12
Views: 243

Re: DllCall 32vs64 bit Topic is solved

As Guest wrote, the result is stored in the first parameter.
by tmplinshi
21 Feb 2018, 06:13
Forum: Ask For Help
Topic: DllCall 32vs64 bit Topic is solved
Replies: 12
Views: 243

Re: DllCall 32vs64 bit Topic is solved

The code works fine here without modification. So I guess you are using 32-bit AHK to call 64-bit dll?
by tmplinshi
14 Feb 2018, 07:45
Forum: Ask For Help
Topic: RC4 unicode support?
Replies: 0
Views: 36

RC4 unicode support?

I'm using https://github.com/ahkscript/libcrypt.ahk/blob/master/src/RC4.ahk for RC4 Encryption/Decryption, but it doesn't support unicode characters. The folowing code displays Paste your 数据 here , but the correct result should be Paste your 数据 here as shown in this online RC4 tool. https://i.lo...
by tmplinshi
24 Jan 2018, 12:00
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 23
Views: 1735

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Ah, hm. This script works by creating a hidden web control (IE) and using Microsoft's WebSocket object through COM. It then uses this WebSocket to connect to Chrome. On my system, IE is forbidden from accessing localhost , but is allowed to access 127.0.0.1 . It looks like your system is blocking 1...
by tmplinshi
21 Jan 2018, 02:26
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 23
Views: 1735

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

The error dialog wrote:---------------------------
Script Error
---------------------------
An error has occurred in the script on this page.

Line: 1
Char: 1
Error: SecurityError
Code: 0
URL:

Do you want to continue running scripts on this page?
---------------------------
[Yes] [No]
by tmplinshi
17 Jan 2018, 09:21
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 23
Views: 1735

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Excellent! However I can't get it working. I got a SecurityError from IE popup window. Adding "WB.Silent := True" to Chrome.ahk fixed the error, but the example script stucked at code:
while, !this.Connected
Sleep, 50
by tmplinshi
20 Nov 2017, 23:33
Forum: Ask For Help
Topic: Get text content out of HTM file
Replies: 10
Views: 237

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

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

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

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: 55
Views: 7085

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

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

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

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

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

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

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

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]

Go to advanced search