Search found 4124 matches

by swagfag
23 Nov 2020, 12:53
Forum: Ask For Help
Topic: Reading time with very big strings Topic is solved
Replies: 18
Views: 472

Re: Reading time with very big strings Topic is solved

from what i can tell, the script allocated ~750mb for the strings(whose memory is being freed correctly by VarSetCapacity() ) the remaining allocations are the result of running all these gdip calls(which im not particularly familiar with tbh). they perform their own allocations but whether the call...
by swagfag
22 Nov 2020, 15:38
Forum: Ask For Help
Topic: Reading time with very big strings Topic is solved
Replies: 18
Views: 472

Re: Reading time with very big strings Topic is solved

#MaxMem is not needed. VarSetCapacity() is unaffected by it anyway
is possible to free the memory allocated to it?
VarSetCapacity(var, 0) does free it, but since u havent posted any working code, i cant tell u what u did wrong
by swagfag
22 Nov 2020, 08:43
Forum: Ask For Help
Topic: Reading time with very big strings Topic is solved
Replies: 18
Views: 472

Re: Reading time with very big strings Topic is solved

u probably arent allocating enough space, so ahk is forced to further expand the string's capacity anyway. eg, this took 0ms(ie less than 16) to run on a 12yo core 2 duo laptop: SetBatchLines -1 t := A_TickCount VarSetCapacity(s, 25 * 1024 * 1024 * (A_IsUnicode ? 2 : 1)) <the result of running the f...
by swagfag
21 Nov 2020, 17:12
Forum: AutoHotkey v2 Development
Topic: [Wish] longer continuation sections/lines still
Replies: 10
Views: 3113

Re: [Wish] longer continuation sections/lines still

im not sure whether lexikos realized there was a new limit(now imposed by another part of the codebase) when he made the change. he might have, and he might have in fact purposefully left it undocumented(in case he intends to change it later down the road) but this seems like an unlikely scenario. e...
by swagfag
21 Nov 2020, 16:14
Forum: Ask For Help
Topic: Reading time with very big strings Topic is solved
Replies: 18
Views: 472

Re: Reading time with very big strings Topic is solved

Code: Select all

VarSetCapacity(text, 1234567)
text .= ".............."
text .= ".............."
by swagfag
21 Nov 2020, 07:36
Forum: Ask For Help
Topic: Error: A "return"
Replies: 1
Views: 66

Re: Error: A "return"

// Rajat found a way for this to happen that basically amounts to this: // If within a loop you gosub a label that is also inside of the block, and // that label sometimes doesn't return (i.e. due to a missing "return" somewhere // in its flow of control), the loop(s)'s block-end symbols will be en...
by swagfag
19 Nov 2020, 03:09
Forum: AutoHotkey v2 Development
Topic: [Wish] longer continuation sections/lines still
Replies: 10
Views: 3113

Re: [Wish] longer continuation sections/lines still

i dont know about a general use case, mine was: i run my vim buffers as ahk scripts i wanna do some throwaway text processing i dont wanna pipe my data into a file ill probably forget to delete when im done the old v1 limit was removed and there isnt a documented new one, i know - lets paste the dat...
by swagfag
18 Nov 2020, 20:13
Forum: AutoHotkey v2 Development
Topic: [Wish] longer continuation sections/lines still
Replies: 10
Views: 3113

Re: [Wish] longer continuation sections/lines still

shortly before writing this thread i had a need for such a continuation section
by swagfag
17 Nov 2020, 23:29
Forum: Ask For Help
Topic: Premiere Pro Script Help
Replies: 5
Views: 1441

Re: Premiere Pro Script Help

unfortunately, i dont have the newest premiere to test with. since ive got no idea what they changed any notions of erratic behavior are completely meaningless to me(not to mention i dont exactly remember what the script was meant to do, how and more importantly why . and i dont have the old premier...
by swagfag
17 Nov 2020, 23:14
Forum: AutoHotkey v2 Help
Topic: how to reference class/subclass object inside instance method? Topic is solved
Replies: 11
Views: 710

Re: how to reference class/subclass object inside instance method? Topic is solved

there is no automatic destruction for class objects. their lifetime ends when the script closes. whether a circular reference is created through the use of such a property depends on what u end up doing with the reference. since destructors dont run for classes(not that u should be writing static on...
by swagfag
17 Nov 2020, 22:42
Forum: AutoHotkey v2 Help
Topic: Making a real Enumerator instance Topic is solved
Replies: 1
Views: 101

Re: Making a real Enumerator instance Topic is solved

I tried assigning to .base, but that didn't work for me to tell u what was wrong, id have to see the code maybe because it changed the underlying type too much no thought it might work since both Closure and Enumerator were subclasses of Func. thats kinda irrelevant, it would have worked regardless...
by swagfag
17 Nov 2020, 21:41
Forum: AutoHotkey v2 Development
Topic: [Wish] longer continuation sections/lines still
Replies: 10
Views: 3113

[Wish] longer continuation sections/lines still

in a114 the 16k continuation section/line char limit was removed. The following limits have been removed by utilizing dynamic allocations: Maximum line or continuation section length of 16,383 characters. the new limit now is ~32k chars str := 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
by swagfag
13 Nov 2020, 13:51
Forum: Bug Reports
Topic: SysGet incorrectly identifies monitors Topic is solved
Replies: 1
Views: 170

Re: SysGet incorrectly identifies monitors Topic is solved

Is there any way to fix this, so that when Sysget is passed a screen number actually matches the one reported by Windows? no. EnumDisplayMonitors is the documented way to obtain that information. the algorithm that the windows(various versions) settings apps use is undisclosed. unless it gets publi...
by swagfag
13 Nov 2020, 04:38
Forum: Gaming
Topic: Clicking random place inside a circle
Replies: 9
Views: 237

Re: Re: Clicking random place inside a circle

lol, too real
instruct him to track the hero with the mouse cursor and send u the coordinates realtime over the network

or, u know, brush up on ur opencv skills
by swagfag
11 Nov 2020, 10:18
Forum: Gaming
Topic: PixelGetColor not update color state in loop
Replies: 1
Views: 125

Re: PixelGetColor not update color state in loop

depends on the game. path of exile iirc with some certain graphics settings for example only updates screen buffers once after tabbing back into the game. ur game might be behaving similarly, in which case ull have to look into changing some settings(eg borderless/windowed mode) or using other more ...
by swagfag
11 Nov 2020, 10:05
Forum: Gaming
Topic: League of legends kite backward
Replies: 1
Views: 188

Re: League of legends kite backward

Code: Select all

CoordMode Mouse

ox := A_ScreenWidth // 2
oy := A_ScreenHeight // 2

MouseGetPos x1, y1

x2 := -x1 + (2 * ox)
y2 := -y1 + (2 * oy)

Click % x2 "," y2
by swagfag
11 Nov 2020, 07:36
Forum: AutoHotkey v2 Help
Topic: moving mouse to MS word cursor position
Replies: 11
Views: 339

Re: moving mouse to MS word cursor position

then u arent running v2. u can check ur version with

Code: Select all

msgbox a_ahkversion
or(in case of v1, which u probably are running) with

Code: Select all

msgbox % a_ahkversion
by swagfag
09 Nov 2020, 04:09
Forum: AutoHotkey v2 Development
Topic: change from v1 to v2 - is it possible to get a whole list of all errors?
Replies: 6
Views: 1678

Re: change from v1 to v2 - is it possible to get a whole list of all errors?

it will break v1 and i still have to dev on . probably unfeasible. possibly feasible if u very carefully modularize/rewrite ur app to only use classes with basic functionality(ie no v1-specific metafunctions/class hierarchy type stuff) at the end of the day ud still have to change all gui parts/hot...

Go to advanced search