Search found 19 matches

by hyaray
07 Aug 2019, 03:03
Forum: Ask For Help
Topic: get info from vim by ComObjActive, encoding help
Replies: 0
Views: 80

get info from vim by ComObjActive, encoding help

Vim provide a ole interface for other script to get information, get more help by ':help ole.txt' in Vim. my problem is if buffer string if chinese, encoding error, I don't know how to get current chinese string. :headwall: this is a demo of get expand('<cword>') oVim := ComObjActive("Vim.applicatio...
by hyaray
27 Jul 2019, 20:09
Forum: Ask For Help
Topic: how to get the document path of excel.exe like resmon.exe?
Replies: 3
Views: 219

Re: how to get the document path of excel.exe like resmon.exe?

Thanks, I tried, this only get the path of "Excel.exe",I want the path of "*.xlsx" :yawn: :yawn:
by hyaray
27 Jul 2019, 12:10
Forum: Ask For Help
Topic: how to get the document path of excel.exe like resmon.exe?
Replies: 3
Views: 219

how to get the document path of excel.exe like resmon.exe?

run "resmon.exe" and select "Excel.exe", in the "CPU" Tab, we can find document path with the type "file",
so what's the function used? winapi can do this, it sounds great :xmas: :xmas:

Best Regards!!
by hyaray
17 Jul 2019, 19:58
Forum: AutoHotkey v2 Help
Topic: has anyone wrote snippets for AutoHotkey v2
Replies: 1
Views: 369

has anyone wrote snippets for AutoHotkey v2

[Moderator's note: Topic moved from AutoHotkey v2 Development.]

I'm learning snippets for vim, it's great, but I don't have snippet for AutoHotkey v2.
this is a hard work for me:yawn:
by hyaray
28 May 2019, 18:36
Forum: Ask For Help
Topic: example #2 of "DriveEject" in help is not perfect
Replies: 1
Views: 134

example #2 of "DriveEject" in help is not perfect

DriveLetter := "I:" ; Set this to the drive letter you wish to eject. hVolume := DllCall("CreateFile" , "Str", "\\.\" . DriveLetter , "UInt", 0x80000000 | 0x40000000 ; GENERIC_READ | GENERIC_WRITE , "UInt", 0x1 | 0x2 ; FILE_SHARE_READ | FILE_SHARE_WRITE , "UInt", 0 , "UInt", 0x3 ; OPEN_EXISTING , "...
by hyaray
25 May 2019, 02:01
Forum: AutoHotkey v2 Development
Topic: bug? obj.GetCapacity() != result in ahk v1
Replies: 1
Views: 316

bug? obj.GetCapacity() != result in ahk v1

Code: Select all

o := {"a":"aa","b":"bb",2:"c","c":"d","e":"f"}
MsgBox(o.GetCapacity() . " " . o.Length() . " " . o.Count()) ;5 2 5
in ahk v1, return 8 2 5 :headwall: :headwall:

by the way, is there a build-in method to know a var([1,2] or {"a":"aa",2:"bb"}) is object or a array??
thanks a lot!!! :xmas:
by hyaray
07 May 2019, 02:12
Forum: Ask For Help
Topic: judge var isArray or isObject?
Replies: 6
Views: 416

judge var isArray or isObject?

I want a function "getType", Thanks!! :wtf: :wtf:

Code: Select all

getType([1,2]) ;return "Array"

Code: Select all

getType({"a":"aa", "b","bb"}) ;return "Object"
by hyaray
05 May 2019, 23:50
Forum: Ask For Help
Topic: get claa & method from BoundFunc Object
Replies: 3
Views: 232

Re: get claa & method from BoundFunc Object

So it looks like there's no built-in way to achieve this
It's not a good news :headwall:
thank you!! :clap:
by hyaray
04 May 2019, 22:40
Forum: Ask For Help
Topic: get claa & method from BoundFunc Object
Replies: 3
Views: 232

get claa & method from BoundFunc Object

Code: Select all

oBF := objbindmethod(BB, "method1")
how to get "BB" and "method1" from oBF :morebeard:
thanks!!! :bravo:
by hyaray
14 Apr 2019, 11:22
Forum: Ask For Help
Topic: ActiveCell.value+1 not worked if cell is date.
Replies: 3
Views: 308

Re: ActiveCell.value+1 not worked if cell is date.

This works for me: oExcel.ActiveCell.NumberFormat := "########" oExcel.ActiveCell.value := oExcel.ActiveCell.value + 1 oExcel.ActiveCell.NumberFormat := "gg/MM/aaaa" ; European date ;~ or ;~ oExcel.ActiveCell.NumberFormat := "MM/dd/yyyy" ; USA date ( I think ) this can work well for date, thanks!! ...
by hyaray
13 Apr 2019, 22:27
Forum: Ask For Help
Topic: ActiveCell.value+1 not worked if cell is date.
Replies: 3
Views: 308

ActiveCell.value+1 not worked if cell is date.

in ahk, "xl.ActiveCell.Value := xl.ActiveCell.Value + 1" not worked if cell is date. in VBE, "activeCell = activeCell + 1" can deal both num and date. so is Ahk has a similar simple method can deal both number and date?? :xmas: :xmas: I see xl.ActiveCell.Value(11) has mor info By XML, I don't know i...
by hyaray
29 Dec 2018, 23:38
Forum: Scripts and Functions
Topic: [Class] SQLiteDB - Update on 2019-07-12
Replies: 182
Views: 39730

Re: [Class] SQLiteDB

arcticir wrote:
20 Dec 2013, 04:00
Thanks. I will transfer to V2.
I used to add two functions make it more easy to use:

Code: Select all

Class_SQLiteDB(){
	Return New SQLiteDB
}

SQLite_(v){
	Return InStr(v, "`'") ? StrReplace(v,"`'","`'`'") : v
}
Have you transfer it to v2? I'm looking for it, thank you!! :bravo: :bravo:
by hyaray
29 Dec 2018, 23:15
Forum: Ask For Help
Topic: I want Class For SQLite v2, thanks!!
Replies: 1
Views: 607

I want Class For SQLite v2, thanks!!

v1 is here https://github.com/AHK-just-me/Class_SQLiteDB
I searched and there's no result, Please help me, thanks very much!! :xmas: :xmas:
by hyaray
13 Dec 2018, 20:04
Forum: Ask For Help
Topic: H2, "menu" error, call to nonexist function?
Replies: 0
Views: 251

H2, "menu" error, call to nonexist function?

download from "https://github.com/HotKeyIt/ahkdll-v2-release"
run codes from help file of "menu" EXAMPLE #4,
error "call to nonexist function" and IsFunc("menu") return 0 :cry:
by hyaray
20 Jun 2017, 09:46
Forum: 请求帮助
Topic: 脚本运行一段时间后,调用Everything.dll查询文件就会失败,Reload后就正常?
Replies: 1
Views: 1194

脚本运行一段时间后,调用Everything.dll查询文件就会失败,Reload后就正常?

脚本运行一段时间后,下面代码就一直Tooltip Query失败,错误代码为2,用Everything软件查询却是正常的,脚本Reload后就一切正常。 去Everything官网查询错误代码,原因为EVERYTHING_ERROR_IPC,IPC is not available. 附上Everything SDK网址:http://www.voidtools.com/support/everything/sdk/everything_getlasterror/ 请问这种问题如何排查和解决呢?? ev := New Everything ev.SetSearch("设备清单及资料查询.xls...
by hyaray
05 Jan 2016, 10:35
Forum: Scripts and Functions
Topic: class_EasyIni:Native syntax-Ini.Section.Key:=val +Formatting
Replies: 18
Views: 6427

Re: class_EasyIni:Native syntax-Ini.Section.Key:=val +Formatting

thanks for your class_EasyIni!!!
there's may be a bug below

Code: Select all

o := class_EasyIni("t.ini")
o.t.RemoveAt(2)
;o.t.Remove(2)
o.save()
Return

change of "t.ini"
[t]      [t]
1=1     1=1
2=2     2=3
3=3     3=4
4=4     4=
"4=" is the Bug? If I use Remove instead, "4=" disappeared.
by hyaray
03 Jul 2015, 09:00
Forum: 教程资料
Topic: 常见的编码问题
Replies: 4
Views: 13673

Re: 常见的编码问题

RobertL wrote:
hyaray wrote:脚本和ini文件都用vim设置了相应的编码,为什么iniread后还是直接乱码了,还有其他方面会影响到吗??
AHK版本用对没?AHK中的编码用对没?
具体看看IniRead的帮助说明(及它的相关部分)
谢谢回复,ahk用的用的U64的,ahk中的编码是什么?我脚本文件是utf-8 bom,ini是utf-16le bom
by hyaray
02 Jul 2015, 08:53
Forum: 教程资料
Topic: 常见的编码问题
Replies: 4
Views: 13673

Re: 常见的编码问题

脚本和ini文件都用vim设置了相应的编码,为什么iniread后还是直接乱码了,还有其他方面会影响到吗??

Go to advanced search