Search found 4 matches

by Pchief123
01 Apr 2024, 09:23
Forum: Bug Reports
Topic: COM: Table Manipulation in MS Word broken in recent AHK versions
Replies: 10
Views: 779

Re: COM: Table Manipulation in MS Word broken in recent AHK versions

Code: Select all

wordApp := ComObject("Word.Application")
document := wordApp.Documents.Open(A_ScriptDir . "\a.docx")
try {
	document.Tables[1].Cell[1, 1].Range.Text := "Hello"
} catch Any as e {
	MsgBox e.Message . "`n"
		. e.What . "`n"
		. e.Extra
} finally {
	document.Save()
	document.Close()
	wordApp.Quit()
}
by Pchief123
01 Apr 2024, 08:30
Forum: Bug Reports
Topic: COM: Table Manipulation in MS Word broken in recent AHK versions
Replies: 10
Views: 779

COM: Table Manipulation in MS Word broken in recent AHK versions

Working with Tables in MS Word through COM was fine in AHK v2.0.5 but has a problem in v2.0.10+.

Raising Error Code : 0x800A16E6 : "Item" is not a property
Source : Microsoft Word
Specifically: Tables

The sample code in the attachment demonstrates the problem (after extraction run the test.ahk file)
by Pchief123
26 Jan 2024, 19:29
Forum: Editors
Topic: Vim Syntax Highlighting for AHK v2?
Replies: 3
Views: 1727

Re: Vim Syntax Highlighting for AHK v2?

Both vim (not neo-) and AHK2 are available for Windows 7, yet one dependency of the coc vimplugin, namely Nodejs, isn't.
by Pchief123
06 Feb 2021, 05:15
Forum: AutoHotkey Development
Topic: ByRef does not work for arrays which are class member
Replies: 8
Views: 2593

ByRef does not work for arrays which are class member

I'm using AutoHotkey_2.0-a123-e5801ee8, the latest version as of now. Suppose there is a function: foo(ByRef a) { a := [] a.Push("1") a.Push("2") } Passing a normal array to it gives the expected result: b := [] foo(b) MsgBox b[1] ; MsgBox'es 1 But if an array belonging to some class is provided, th...

Go to advanced search