Code: Select all
this.hDatabase := buffer(a_ptrsize)
dllcall 'ptr', this.hDatabase
hDatabase := numget(this.hDatabase, 'ptr')
Code: Select all
this.hDatabase := buffer(a_ptrsize)
dllcall 'ptr', this.hDatabase
hDatabase := numget(this.hDatabase, 'ptr')
Code: Select all
o := {}
o.p2 := buffer(...)
ptr := o.p2.ptr
Code: Select all
ToolTipAuto(text, x := unset, y := unset, wich := 1, cool := 0, time := -1000)
{
if cool
CoordMode "ToolTip"
ToolTip text, x?, y?, wich
SetTimer(() => ToolTip(, , , wich), time)
}
Code: Select all
same(arr) {
v1 := arr[1]
for k, v in arr
if !(v1==v)
return false
return true
}
That is a poor solution, at the very least you should filter for targeterrors, eg,at least there is an "OnError((*) => -1)" as a consolation.
Code: Select all
onerror (e,*) => -(e is targeterror)
I do not think it is too late, Array.__item does not define what happens when !arr.Has(n).lexikos wrote: Maybe it would be better for arr[n] to throw when !arr.Has(n), but it might be a bit late to make that change.
Code: Select all
if x &&
!var && var := 0
; ...