Search found 494 matches

by arcticir
01 Apr 2018, 18:19
Forum: AutoHotkey v2 Development
Topic: nested-functions ByRef parameters
Replies: 3
Views: 298

Re: nested-functions ByRef parameters

I am sorry for my carelessness. Thank you very much for your patience. :) My script is used to exchange data between processes. It makes heavy use of subtags within functions. Now the nested function seems to be better able to implement its functionality. In addition to the restrictions from ByRef p...
by arcticir
01 Apr 2018, 18:11
Forum: AutoHotkey v2 Development
Topic: accurately determine if there is nested-functions
Replies: 2
Views: 159

Re: accurately determine if there is nested-functions

So I tend to modify isfunc() and add one parameter:

Code: [Select all]GeSHi © Codebox Plus

isfunc() 	;All
isfunc(,1) ;only Global
isfunc(,2) ;only fornested


Maybe: How many internal functions exist for each function, there must be a list. Can we access this list?
Maybe: func("test").issub("t")
by arcticir
31 Mar 2018, 17:04
Forum: AutoHotkey v2 Development
Topic: nested-functions ByRef parameters
Replies: 3
Views: 298

nested-functions ByRef parameters

I did not see restrictions on ByRef parameters in the "nested-functions" document. Is this a normal mistake? Error: ByRef parameters cannot be upvalues. Specifically: a Line# 003: test() 004: { 005: t() ---> 006: { 007: MsgBox(a) 008: } 010: } 011: Exit test(1) test(byref a){ t() t(){ MsgB...
by arcticir
31 Mar 2018, 16:15
Forum: AutoHotkey v2 Development
Topic: accurately determine if there is nested-functions
Replies: 2
Views: 159

accurately determine if there is nested-functions

The "isfunc" now does not apply to the nested-functions. Take this code as an example: test(1) test(this){ t:="_" type(this) if isfunc(t) %t%() _string(){ } _object(){ } } _Integer(){ } In this code, if you do not want to falsely trigger the "_Integer" function, you nee...
by arcticir
01 Mar 2018, 05:09
Forum: Ask For Help
Topic: How do I set memory limits?
Replies: 11
Views: 558

Re: How do I set memory limits?

So, when I use 64-bit system, there is enough memory, it is still wrong, because of what?
by arcticir
28 Feb 2018, 04:13
Forum: Ask For Help
Topic: How do I set memory limits?
Replies: 11
Views: 558

Re: How do I set memory limits?

I can't agree with you.
My memory usage is 2/16G, how much memory do I need to add to not make mistakes?
by arcticir
28 Feb 2018, 01:26
Forum: Ask For Help
Topic: How do I set memory limits?
Replies: 11
Views: 558

Re: How do I set memory limits?

So this is normal? Or a bug?
by arcticir
25 Feb 2018, 23:50
Forum: Ask For Help
Topic: addScript-#If Problem
Replies: 4
Views: 395

Re: addScript-#If Problem

Thanks, it's normal now.
by arcticir
25 Feb 2018, 23:44
Forum: Ask For Help
Topic: How do I set memory limits?
Replies: 11
Views: 558

Re: How do I set memory limits?

Try It a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)") b:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)") MsgBox a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('cache',388*1024*1024)") MsgBox a:=ahkThread("f:=[]`nMsgBox f.SetCapacity('...
by arcticir
25 Feb 2018, 15:19
Forum: Ask For Help
Topic: How do I set memory limits?
Replies: 11
Views: 558

How do I set memory limits?

The following code, if there is only one thread (DLL), is normal to load.
However, if you use two threads , it will complain.

Error: Out of memory.

Code: [Select all]GeSHi © Codebox Plus

f:=[]
MsgBox f.SetCapacity("cache",388*1024*1024)


How do I adjust the inner limit to 2G?
by arcticir
13 Feb 2018, 10:05
Forum: Ask For Help
Topic: BUG Report
Replies: 6
Views: 412

Re: BUG Report

Why is its third parameter "00", not "0"? StrPutVar(string,ByRef var,encoding:="UTF-8"){ VarSetCapacity(var,StrPut(string,encoding)*((encoding="utf-16"||encoding="cp1200")?2:1),00) return (len:=StrPut(string,&var,encoding),VarSetCapacity(var,-1),...
by arcticir
13 Feb 2018, 10:03
Forum: Ask For Help
Topic: addScript-#If Problem
Replies: 4
Views: 395

Re: addScript-#If Problem

Sorry, I have a very serious delay. f:=ahkdll() f.new("#Persistent`nCriticalObject(" (&f) ").add(FileRead(`"1.ahk`"))`nreturn ") MsgBox "Test" ahkdll(r:=""){ static dll if !dll UnZipRawMemory(LockResource(LoadResource(0,hRes:=FindResource(0,"...
by arcticir
03 Feb 2018, 09:18
Forum: Ask For Help
Topic: BUG Report
Replies: 6
Views: 412

Re: BUG Report

Do you think "strputvar" is necessary to modify? StrPutVar(string,ByRef var,encoding){ VarSetCapacity(var,StrPut(string,encoding)*((encoding="utf-16"||encoding="cp1200")?2:1),00) return (len:=StrPut(string,&var,encoding),VarSetCapacity(var,-1),len) } StrPutVar(strin...
by arcticir
03 Feb 2018, 09:03
Forum: Ask For Help
Topic: addScript-#If Problem
Replies: 4
Views: 395

addScript-#If Problem

The hot keys of my mouse gestures seem to have failed: #If choose(keys.L,1) { *LButton:: Down("L") } #If choose(keys.L,0) { *LButton up:: up("L") } #If choose(keys.r,1) { *Rbutton:: Down("r") } #If choose(keys.r,0) { *Rbutton up:: up("r") } Only "Lbutton&...
by arcticir
31 Jan 2018, 02:40
Forum: Ask For Help
Topic: BUG Report
Replies: 6
Views: 412

BUG Report

Code: [Select all]GeSHi © Codebox Plus

Error at line 13 in #include file "ResGet.ahk".

Line Text: if !hModule && !hModule:=LoadLibrary(fullpath),
Error: "If" accepts at most 1 parameter.

The program will exit.
by arcticir
24 Jan 2018, 02:08
Forum: Ask For Help
Topic: "+Resize" option is deleted?
Replies: 4
Views: 357

Re: "+Resize" option is deleted?

Sorry, I can't extract a simple example. I can't even reproduce it easily. But it does exist: Error in #include file "acc.ahk": Parameter #2 of GetStateText must be a variable. Line# 193: } 194: { 195: Try 195: Return (GetRoleText(Acc.accRole(ChildId), sRole, 1+VarSetCapacity(sRole,1+2*Get...
by arcticir
22 Jan 2018, 07:42
Forum: Ask For Help
Topic: "+Resize" option is deleted?
Replies: 4
Views: 357

"+Resize" option is deleted?

I didn't find anything updated about this command. But the error message indicates that it was deleted. Error: Invalid option. Specifically: Resize 497: g := GuiCreate() 498: LoadLibrary("MsFtEdit.dll") ---> 499: g.Add("Custom", "ClassRICHEDIT50W +Resize" ) Other errors...
by arcticir
26 Dec 2017, 05:05
Forum: Ask For Help
Topic: 333 global error
Replies: 3
Views: 309

Re: 333 global error

Thanks.
by arcticir
25 Dec 2017, 12:07
Forum: 脚本函数
Topic: 简繁转换
Replies: 2
Views: 2659

Re: 简繁转换

试试这个 MsgBox % kanji("锕錒 皑皚 嗳噯 蔼藹 霭靄 爱愛 嫒嬡 碍礙 暧曖") kanji(s,r:=""){ ; r= 1-简繁 ""-繁简 static f:=__Kanji() n:=r?f.1:f.2 Loop,Parse,% s b.=n[A_Loopfield]?n[A_Loopfield]:A_Loopfield Return b } __Kanji(){ f:=[], h:=[],s:="锕錒 皑皚 嗳噯 蔼藹 霭靄 爱愛 嫒嬡 碍礙 暧曖 瑷璦 谙諳 鹌鵪 铵銨 鳌鰲 袄襖 媪媼 岙嶴 ...

Go to advanced search