Search found 23 matches

by hyaray
Yesterday, 21:29
Forum: Ask For Help
Topic: Problem getting Photoshop tool panel WM_COMMAND
Replies: 14
Views: 2822

Re: Problem getting Photoshop tool panel WM_COMMAND

there's a simple way to get/set currentTool ComObjActive("Photoshop.application").currentTool ComObjActive("Photoshop.application").currentTool := "moveTool" I don't know how to operate Photoshop by command with ahk. user plugin "ScriptingListener" can record js code, but it's heavy and hard to conv...
by hyaray
28 Sep 2019, 11:03
Forum: Ask For Help
Topic: how to add method to [], ex: [1,2,3].join(",") Topic is solved
Replies: 4
Views: 294

Re: how to add method to [], ex: [1,2,3].join(",") Topic is solved

Thanks very much for you answer!!
I found it's not perfect.
StrSplit("abc") is not fit for this :yawn: :yawn:
by hyaray
22 Sep 2019, 23:03
Forum: Ask For Help
Topic: how to add method to [], ex: [1,2,3].join(",") Topic is solved
Replies: 4
Views: 294

how to add method to [], ex: [1,2,3].join(",") Topic is solved

[1,2,3].length() is mainly used,
I want to add user method, like "join" and so on...

String can use code below to specify class,
so I can write any method in class _String.
and use method in class "abc".toArray()

Code: Select all

"".base.base := _String ;user class
by hyaray
07 Aug 2019, 03:03
Forum: Ask For Help
Topic: get info from vim by ComObjActive, encoding help
Replies: 0
Views: 126

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

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

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

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

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

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

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

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

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

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

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: 202
Views: 44645

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

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

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

脚本运行一段时间后,调用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...

Go to advanced search