Search found 694 matches

by arcticir
30 Apr 2021, 22:28
Forum: AutoHotkey Development
Topic: The existence value of old objects
Replies: 2
Views: 1650

The existence value of old objects

V2 deleted the old objects, which I always regret. On the eve of beta's upcoming release, I want to discuss again whether it has the value of existence. I must admit that the new object can realize all the functions of the old object, but it is more complicated. V2 becomes rigorous, which is a good ...
by arcticir
30 Apr 2021, 21:50
Forum: Scripts and Functions (v1)
Topic: Mouse over the file (do not need click) to preview the contents. Support ahk,txt,ini,jpg,jpeg,png,bmp,tif format.
Replies: 21
Views: 5369

Re: Preview file content without click. Support ahk,txt,ini,jpg,jpeg,png,bmp,tif format.

可以监听鼠标移动以代替定时器。
利用acc的选定函数,应该就可以直接通过Shell.Application获得当前选定的完整路径了。
====
这样好像就干扰到正常操作了。
还有个土办法,把管理器的所有子窗口遍历出来,通过GetWindowText应该能够得到全部必须的信息。
参考这里 https://blog.csdn.net/qq_18218335/article/details/56677351
by arcticir
24 Apr 2021, 22:10
Forum: Ask for Help (v2)
Topic: [v2-132] How to initialize an object in a classic way?
Replies: 5
Views: 733

Re: [v2-132] How to initialize an object in a classic way?

@post In the original version where obj was divided into arr-map, {"&":1,"&":2} is still feasible.

@gregster Thanks.

@swagfag It seems that it will take me a while to get used to the new grammar.
by arcticir
24 Apr 2021, 22:01
Forum: Wish List
Topic: Add an optional parameter "DetectHidden" to all window functions Topic is solved
Replies: 1
Views: 1200

Add an optional parameter "DetectHidden" to all window functions Topic is solved

AutoHotkey rules "Hidden windows are not detected unless DetectHiddenWindows has been turned on.", This is very necessary. Unfortunately, I need to turn off this option frequently and then restore it. t:=A_DetectHiddenWindows ... DetectHiddenWindows t Frequent use makes the script cumbersome and ugl...
by arcticir
24 Apr 2021, 10:13
Forum: Ask for Help (v2)
Topic: [v2-132] How to initialize an object in a classic way?
Replies: 5
Views: 733

[v2-132] How to initialize an object in a classic way?

The v2 upcoming beta news is exciting :D , so I started to learn the new V2 syntax. But what makes me painful is that I can no longer use objects as before {"&":"b"} , the only solution is map("&","b") . But I think I hate it, I hate a, b, c, d , I like the well-structured a: b, c: d How to initiali...
by arcticir
11 Apr 2021, 23:32
Forum: AutoHotkey_H
Topic: Experience of non-AHK processes calling AHKDLL
Replies: 0
Views: 2427

Experience of non-AHK processes calling AHKDLL

  1. DLL calls in other languages need to specify the manifest file in the resource for the GUI created by the AHK thread to display properly.
by arcticir
18 Jul 2020, 23:41
Forum: AutoHotkey Development
Topic: Smarter dllcall()
Replies: 8
Views: 5197

Smarter dllcall()

The recent progress of V2 is surprising :bravo:
I found that PY calls DLL without specifying the parameter type. This is very convenient, using DLL becomes very simple. So can we achieve the same effect in V2?
by arcticir
11 Jul 2020, 04:30
Forum: AutoHotkey Development
Topic: Conflicts caused by V2
Replies: 10
Views: 6870

Re: Conflicts caused by V2

Yes, I agree with you. If I am using V1, I will not be confused. But when you start using V2 and feel that it corrects countless shortcomings of V1, it is difficult for you to return to V1. The problem with V2 is that as the main version of the AHK language, its development is disordered and unpredi...
by arcticir
11 Jul 2020, 00:07
Forum: AutoHotkey Development
Topic: Conflicts caused by V2
Replies: 10
Views: 6870

Conflicts caused by V2

I used V2 many years ago, but recently when I needed to write new code, I fell into conflict. I am using A-104, which is obviously old. I will not consider it when I write new code. So use the latest version A-115? It is also not an ideal candidate. Back V1? Not under consideration. After a month of...
by arcticir
27 May 2020, 08:57
Forum: Ask for Help (v2)
Topic: How is SoundSetVolume called correctly and simply?
Replies: 3
Views: 856

Re: How is SoundSetVolume called correctly and simply?

@Ragnar
Thank you. Looking forward to the new version.
by arcticir
26 May 2020, 07:48
Forum: Ask for Help (v2)
Topic: How is SoundSetVolume called correctly and simply?
Replies: 3
Views: 856

How is SoundSetVolume called correctly and simply?

In the old version of V2, its use was very simple: SoundSetVolume -55

However, in the latest version, I tried all the methods and couldn't make it work:

Code: Select all

loop 20
{
	i:=a_index
	loop 20
	SoundSetVolume -55,a_index,i
}
How is SoundSetVolume called correctly and simply?
by arcticir
24 Apr 2020, 07:39
Forum: AutoHotkey Development
Topic: Do we need to return multiple variables?
Replies: 14
Views: 6850

Re: Do we need to return multiple variables?

Helgef When I get used to this feature in other languages, I think it is very important. You deny its necessity, have you really used it? If you don't really use it, you can't understand its importance. Just like ahk's support for objects, even if there is no object, ahk can also achieve the functi...
by arcticir
23 Apr 2020, 08:19
Forum: Scripts and Functions (v1)
Topic: NotStr() : Switch between multiple states
Replies: 43
Views: 6188

Re: NotStr() : Switch between multiple states

Here is a similar scheme.

Code: Select all

MsgBox str_skip("a","a/b/c")

str_skip(t,s,k:="/") => (RegExMatch(k s k, "(" k "([^" k "]+))?.*" k t k "(([^" k "]+)" k ")?", t),t.value(4) or t.value(2))
by arcticir
23 Apr 2020, 07:56
Forum: AutoHotkey Development
Topic: Do we need to return multiple variables?
Replies: 14
Views: 6850

Do we need to return multiple variables?

Many modern languages ​​support this feature, and I find it very convenient and necessary.
Do you think AHK needs this feature?

x,y := MouseGetPos()
color := PixelGetColor(MouseGetPos(),"Alt")
var, err := iniread("test.ini","default","test")
by arcticir
25 Mar 2020, 09:59
Forum: 脚本函数
Topic: [v2] 简繁转换
Replies: 0
Views: 4928

[v2] 简繁转换

注意 简繁并不完全对应。 繁转简,采用富集策略,存在 一对多 、多通假等状况。 简转繁,则追求简洁无错。 kanji(byref s,t:=""){ ; r= 1-简繁 ""-繁简 static fj,jf if t { if !jf jf:=kanji_jf() to:=jf } else { if !fj fj:=kanji_fj() to:=fj } Loop Parse,s st.=ObjRawGet(to,A_Loopfield) or A_Loopfield Return st } kanji_fj(){ t:={} loop parse,"丟丢並并乹乾亁乾亂乱亙亘亞亚佇伫併并來来...
by arcticir
05 Mar 2020, 07:47
Forum: Scripts and Functions (v2)
Topic: [H2] sci() - SciLexer Class
Replies: 0
Views: 2559

[H2] sci() - SciLexer Class

Note: It applies to AHK_H V2 You need to specify the absolute path of dll. It inverts the A/B parameter, so from sci.settext(0,"test") to sci.settext("test") It lacks an error correction mechanism. Reference Forum Existing Lib gui:=GuiCreate("+Border -DPIScale",a_name) sci:=sci(gui.hwnd,w:=A_ScreenW...
by arcticir
05 Mar 2020, 07:13
Forum: Scripts and Functions (v2)
Topic: [H2] sql() - SQLite Class
Replies: 0
Views: 2295

[H2] sql() - SQLite Class

It applies to H2 B3 Code modified from @HotKeyIt Simple example: sq := sql(":memory:") sq.exec("create table if not exists test (id integer, title TEXT COLLATE NOCASE);", sq.hdb) ; Batch writing sq.list("test", [{ id: 1, title: "a" }, { id: 2, title: "b" }, { id: 3, title: "c" }]) ; Write in sq.set(...
by arcticir
21 Feb 2020, 05:22
Forum: AutoHotkey_H
Topic: How to distinguish between many types of object?
Replies: 12
Views: 4340

Re: How to distinguish between many types of object?

It does not help judge the two:
obj.__Enum or obj.OwnProps()

Go to advanced search