-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathObjByRef.ahk
29 lines (29 loc) · 4.4 KB
/
ObjByRef.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
objbyref(ByRef _1:="",ByRef _2:="",ByRef _3:="",ByRef _4:="",ByRef _5:="",ByRef _6:="",ByRef _7:="",ByRef _8:="",ByRef _9:="",ByRef _10:="",ByRef _11:="",ByRef _12:="",ByRef _13:="",ByRef _14:="",ByRef _15:="",ByRef _16:="",ByRef _17:="",ByRef _18:="",ByRef _19:="",ByRef _20:="",ByRef _21:="",ByRef _22:="",ByRef _23:="",ByRef _24:="",ByRef _25:="",ByRef _26:="",ByRef _27:="",ByRef _28:="",ByRef _29:="",ByRef _30:="",ByRef _31:="",ByRef _32:="",ByRef _33:="",ByRef _34:="",ByRef _35:="",ByRef _36:="",ByRef _37:="",ByRef _38:="",ByRef _39:="",ByRef _40:="",ByRef _41:="",ByRef _42:="",ByRef _43:="",ByRef _44:="",ByRef _45:="",ByRef _46:="",ByRef _47:="",ByRef _48:="",ByRef _49:="",ByRef _50:="",ByRef _51:="",ByRef _52:="",ByRef _53:="",ByRef _54:="",ByRef _55:="",ByRef _56:="",ByRef _57:="",ByRef _58:="",ByRef _59:="",ByRef _60:="",ByRef _61:="",ByRef _62:="",ByRef _63:="",ByRef _64:="",ByRef _65:="",ByRef _66:="",ByRef _67:="",ByRef _68:="",ByRef _69:="",ByRef _70:="",ByRef _71:="",ByRef _72:="",ByRef _73:="",ByRef _74:="",ByRef _75:="",ByRef _76:="",ByRef _77:="",ByRef _78:="",ByRef _79:="",ByRef _80:="",ByRef _81:="",ByRef _82:="",ByRef _83:="",ByRef _84:="",ByRef _85:="",ByRef _86:="",ByRef _87:="",ByRef _88:="",ByRef _89:="",ByRef _90:="",ByRef _91:="",ByRef _92:="",ByRef _93:="",ByRef _94:="",ByRef _95:="",ByRef _96:="",ByRef _97:="",ByRef _98:="",ByRef _99:="",ByRef _100:="",ByRef _101:="",ByRef _102:="",ByRef _103:="",ByRef _104:="",ByRef _105:="",ByRef _106:="",ByRef _107:="",ByRef _108:="",ByRef _109:="",ByRef _110:="",ByRef _111:="",ByRef _112:="",ByRef _113:="",ByRef _114:="",ByRef _115:="",ByRef _116:="",ByRef _117:="",ByRef _118:="",ByRef _119:="",ByRef _120:="",ByRef _121:="",ByRef _122:="",ByRef _123:="",ByRef _124:="",ByRef _125:="",ByRef _126:="",ByRef _127:="",ByRef _128:="",ByRef _129:="",ByRef _130:="",ByRef _131:="",ByRef _132:="",ByRef _133:="",ByRef _134:="",ByRef _135:="",ByRef _136:="",ByRef _137:="",ByRef _138:="",ByRef _139:="",ByRef _140:="",ByRef _141:="",ByRef _142:="",ByRef _143:="",ByRef _144:="",ByRef _145:="",ByRef _146:="",ByRef _147:="",ByRef _148:="",ByRef _149:="",ByRef _150:="",ByRef _151:="",ByRef _152:="",ByRef _153:="",ByRef _154:="",ByRef _155:="",ByRef _156:="",ByRef _157:="",ByRef _158:="",ByRef _159:="",ByRef _160:="",ByRef _161:="",ByRef _162:="",ByRef _163:="",ByRef _164:="",ByRef _165:="",ByRef _166:="",ByRef _167:="",ByRef _168:="",ByRef _169:="",ByRef _170:="",ByRef _171:="",ByRef _172:="",ByRef _173:="",ByRef _174:="",ByRef _175:="",ByRef _176:="",ByRef _177:="",ByRef _178:="",ByRef _179:="",ByRef _180:="",ByRef _181:="",ByRef _182:="",ByRef _183:="",ByRef _184:="",ByRef _185:="",ByRef _186:="",ByRef _187:="",ByRef _188:="",ByRef _189:="",ByRef _190:="",ByRef _191:="",ByRef _192:="",ByRef _193:="",ByRef _194:="",ByRef _195:="",ByRef _196:="",ByRef _197:="",ByRef _198:="",ByRef _199:="",ByRef _200:="",ByRef _201:="",ByRef _202:="",ByRef _203:="",ByRef _204:="",ByRef _205:="",ByRef _206:="",ByRef _207:="",ByRef _208:="",ByRef _209:="",ByRef _210:="",ByRef _211:="",ByRef _212:="",ByRef _213:="",ByRef _214:="",ByRef _215:="",ByRef _216:="",ByRef _217:="",ByRef _218:="",ByRef _219:="",ByRef _220:="",ByRef _221:="",ByRef _222:="",ByRef _223:="",ByRef _224:="",ByRef _225:="",ByRef _226:="",ByRef _227:="",ByRef _228:="",ByRef _229:="",ByRef _230:="",ByRef _231:="",ByRef _232:="",ByRef _233:="",ByRef _234:="",ByRef _235:="",ByRef _236:="",ByRef _237:="",ByRef _238:="",ByRef _239:="",ByRef _240:="",ByRef _241:="",ByRef _242:="",ByRef _243:="",ByRef _244:="",ByRef _245:="",ByRef _246:="",ByRef _247:="",ByRef _248:="",ByRef _249:="",ByRef _250:="",ByRef _251:="",ByRef _252:="",ByRef _253:="",ByRef _254:=""){
static _AHkVar,var
if !var
_AHkVar:="{Int64 ContentsInt64,Double ContentsDouble,PTR object},{char *mByteContents,LPTSTR CharContents},{UINT_PTR Length,ObjByRef(_AHKVar) *AliasFor},{UINT_PTR Capacity,UINT_PTR BIV},BYTE HowAllocated,BYTE Attrib,BYTE mScope,BYTE Type,LPTSTR Name",var:=Struct(_AhkVar)
this:=new _ObjByRef
while IsByRef(_%A_Index%){
var[]:=getvar(_%A_Index%)
ObjRawSet(this,"`a" var.AliasFor.name,var.AliasFor["",""])
}
return this
}
Class _ObjByRef{
__GET(key){
Alias(var,this["`a" key])
return var
}
__SET(key,ByRef value:=""){
static var
if !var
var:=Struct("ObjByRef(_AhkVar)")
If !this.HasKey("`a" key){
If !IsByRef(value)
return
else return var[]:=getvar(value),ObjRawSet(this,"`a" key,var.AliasFor["",""]),""
}
Alias(thisvar,this["`a" key])
return thisvar:=value
}
}