Search found 175 matches

by Brazolek123
31 Jan 2020, 13:06
Forum: Ask For Help
Topic: Many labels one after another Topic is solved
Replies: 2
Views: 354

Re: Many labels one after another Topic is solved

> what good is a simplified bugged code example if u cant even run it to try and reproduce the bug Well, if problem doesn't look complicated its sometimes easier to post just part of a problematic procedure than >100 lines that could potentially fuzzy things. I'm not a professional ahk-scripter but ...
by Brazolek123
30 Jan 2020, 15:46
Forum: Ask For Help
Topic: Many labels one after another Topic is solved
Replies: 2
Views: 354

Many labels one after another Topic is solved

Simplified bugged-code example: LABEL1: LABEL2: LABEL3: LABEL4: LABEL5: sleep, 100 Console("Press space...") KeyWait, space, d Console("You pressed the space button.") sleep, 100 return Label1, label2 and so on are gLabels from the gui buttons. Bug goes like this: 1) When I press a button it does sh...
by Brazolek123
31 Mar 2019, 08:51
Forum: Ask For Help
Topic: Object - limited key size problem Topic is solved
Replies: 2
Views: 560

Re: Object - limited key size problem Topic is solved

Got it. You are completely right. It was by my own mistake I assumed it was impossible. As for strings longer than 16 digits it returned me some strange numbers 0 or -120945231 or similar so I assumed I must have crossed the line. Haha, thanks for clarification. Now everything works just fine!
by Brazolek123
31 Mar 2019, 08:21
Forum: Ask For Help
Topic: Object - limited key size problem Topic is solved
Replies: 2
Views: 560

Object - limited key size problem Topic is solved

Hello! Let's say I have a lot of items that I identify by its unique id. Id's are usually in format like this: ID1: OVVOVONNVWORROVVUVOVVVOOVVVVVUVORVOVNNVVVROOVVVOORVRVRVRUOOOVRNVVRNVVU ID2: OWOVVPVOUNVVVVPOUVOMWOSVSOPVNOSVOOUVWOOONOSNVNVSWUVOOWPOVWVVWOWWVSSOVO ID3: VUNUVUOOUWUVUVUNUVVUWVUOVVUOUVUU...
by Brazolek123
27 Mar 2019, 10:57
Forum: Ask For Help
Topic: How to zoom image without any loss Topic is solved
Replies: 4
Views: 1034

Re: How to zoom image without any loss Topic is solved

If anyone interested in solution here you go, tbh it took me three days, yet it's still not elegant solution. Keep it mind it isn't that universal. It was designed for 9 zoom levels, for exact size of init image: 2400x2400px, and for destination image of 400x400px. Hopefully it works really fast, wi...
by Brazolek123
25 Mar 2019, 16:44
Forum: Ask For Help
Topic: How to zoom image without any loss Topic is solved
Replies: 4
Views: 1034

Re: How to zoom image without any loss Topic is solved

Update: Have created this matrix algorithm that works as expected except for that it takes about 5 sec to prepare an image what is unacceptable. ; create some random bitmap 400x400 that will later be used as ground for the new bitmap pBitmap3 := Gdip_CloneBitmapArea(pBitmap, 0, 0, 400, 400) if (mfac...
by Brazolek123
25 Mar 2019, 14:54
Forum: Ask For Help
Topic: How to zoom image without any loss Topic is solved
Replies: 4
Views: 1034

Re: How to zoom image without any loss Topic is solved

I don't really know what do you mean by scale 'all elements' in Windows? You have built-in magnifier in windows. Of course it's possible to create your own magnifier using script I made. You just need to: 1) get current mouse position, 2) read bitmap from that position with use of gdip function: Gdi...
by Brazolek123
25 Mar 2019, 13:19
Forum: Ask For Help
Topic: How to zoom image without any loss Topic is solved
Replies: 4
Views: 1034

How to zoom image without any loss Topic is solved

I want to create a simple image browser with navigation and zoom. What I want to achieve is zoom like in paint for example, without any loss. Look, here's pic with my results and expectations: https://i.imgur.com/1s5WrbQ.png So do you have any tips for me how to achieve paint-like zooming of bmp/png...
by Brazolek123
16 Mar 2019, 11:12
Forum: Ask For Help
Topic: Function to retrieve data from an object Topic is solved
Replies: 5
Views: 1147

Re: Function to retrieve data from an object Topic is solved

If anyone will be interested in one argument function based on teadrinker's solution that I'm using in my script, there you go: get(path){ ;assume global global ; split input path into strings and set up variables t := StrSplit(path, "/") a := t[1] obj := "" obj := [] obj[a] := %a% ; make sure the f...
by Brazolek123
15 Mar 2019, 14:55
Forum: Ask For Help
Topic: Function to retrieve data from an object Topic is solved
Replies: 5
Views: 1147

Function to retrieve data from an object Topic is solved

Let me explain what I want to achieve: Usually, to get a value of certain variable somewhere deep in the object I'd use such sequence: cars["toyota"].price := 1000 msgbox, % cars["toyota"].price ; if object is "deeper", then I would use something like this: msgbox, % cars.europe.toyota.corolla.price...
by Brazolek123
15 Dec 2018, 07:16
Forum: Ask For Help
Topic: Gdip_BitmapFromHWND returns blank window
Replies: 2
Views: 977

Gdip_BitmapFromHWND returns blank window

My code: #Warn All, off SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. CoordMode, Mouse, Screen #Include gdip.ahk ; is in the post attachment if anyone needs If (!pToken := Gdip_Startup()){ ExitApp } return f1:: WinGet, id, ID, A return f2:: pBitmap := Gdip_BitmapFromHWND(id)...
by Brazolek123
12 Jun 2018, 03:38
Forum: Ask For Help
Topic: Select all but "silently"
Replies: 13
Views: 2334

Re: Select all but "silently"

If you want to select some string in order to copy it to some variable you can make it using direct memory read, which might work in some cases. First you need to get address in which desired string is stored (using cheatengine), then use some memory library, like this one - https://github.com/kevrg...
by Brazolek123
02 Jun 2018, 04:07
Forum: Bug Reports
Topic: A_IPAddress Performance
Replies: 8
Views: 2707

Re: A_IPAddress Performance

This is interesting, thanks for sharing. I'll do some benchmark tests on all of the 'A_' variables. And afterwards I'll mention any slow variables here: jeeswg's documentation extension tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=33596 I wonder if have you done...
by Brazolek123
08 Apr 2018, 08:46
Forum: Bug Reports
Topic: Result of 0^0
Replies: 2
Views: 1438

Result of 0^0

Not sure if its intentional, bug or whether is it important or not, but:

Code: Select all

msgbox % 0**0
Returns 0.

It's mathematically ambiguous but almost all of the programming languages or math engines treat it as 1.
What you think?
by Brazolek123
07 Feb 2018, 15:57
Forum: Gaming
Topic: OpenProcess - acces denied Topic is solved
Replies: 1
Views: 661

Re: OpenProcess - acces denied Topic is solved

solved, need to insert this function and set admin rights again, win10 is retarded setSeDebugPrivilege(enable := True){ h := DllCall("OpenProcess", "UInt", 0x0400, "Int", false, "UInt", DllCall("GetCurrentProcessId"), "Ptr") ; Open an adjustable access token with this process (TOKEN_ADJUST_PRIVILEGE...
by Brazolek123
06 Feb 2018, 17:39
Forum: Gaming
Topic: OpenProcess - acces denied Topic is solved
Replies: 1
Views: 661

OpenProcess - acces denied Topic is solved

Using code as below: f4:: Window:="Game title" UNKNOWN_MAGIC_NUMBER:=0x0010 ;0x0400 WinGet, pid, pid, %Window% handle:=DllCall("OpenProcess", "UInt", UNKNOWN_MAGIC_NUMBER, "UInt", 0, "UInt", pid) el:=Errorlevel le:=A_LastError msgbox, 64, , pid = %pid% `nhandle = %handle% `nerror level = %el% `nlast...
by Brazolek123
27 Dec 2017, 15:25
Forum: Ask For Help
Topic: Open big excel = crash ahk apk. Why? Strange Topic is solved
Replies: 10
Views: 2305

Re: Open big excel = crash ahk apk. Why? Strange Topic is solved

This is how it looks like:


If there was any infinite loop wouldn't I see it in 'lines most recently executed'? Even if we assume so then how this loop could be activated if I didn't use this specific excel file name in any line?
by Brazolek123
27 Dec 2017, 01:31
Forum: Ask For Help
Topic: Open big excel = crash ahk apk. Why? Strange Topic is solved
Replies: 10
Views: 2305

Re: Open big excel = crash ahk apk. Why? Strange Topic is solved

Application crashes... yes. But actual Windows crashes are rare. I assume that is what "everything crashes" means. Sorry for not being precise. By "everything crashes" I meant that application crashes and typical window appears "Autohotkey 32 has stopped working" and all hidden guis of this app are...
by Brazolek123
25 Dec 2017, 05:53
Forum: Ask For Help
Topic: Open big excel = crash ahk apk. Why? Strange Topic is solved
Replies: 10
Views: 2305

Re: Open big excel = crash ahk apk. Why? Strange Topic is solved

I told you that the script is more than 10k lines, it doesnt use this specific excel in any way. They are not related except for that both of them are opened in the same time in the same pc. How can I know which part of script is responsible for that, if I knew I wouldnt ask in the first place. I'm ...

Go to advanced search