Search found 161 matches

by Brazolek123
08 Apr 2018, 08:46
Forum: Bug Reports
Topic: Result of 0^0
Replies: 2
Views: 220

Result of 0^0

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



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: 74

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 adjus...
by Brazolek123
06 Feb 2018, 17:39
Forum: Gaming
Topic: OpenProcess - acces denied Topic is solved
Replies: 1
Views: 74

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 = %pi...
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: 314

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: 314

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 a...
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: 314

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 ...
by Brazolek123
25 Dec 2017, 00:52
Forum: Ask For Help
Topic: Open big excel = crash ahk apk. Why? Strange Topic is solved
Replies: 10
Views: 314

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

Thing is I do not load this excel file into ahk. Its completely not related to the main ahk apk.
by Brazolek123
23 Dec 2017, 16:21
Forum: Ask For Help
Topic: Open big excel = crash ahk apk. Why? Strange Topic is solved
Replies: 10
Views: 314

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

Can anyone tell me what might be the reason for such strange behaviour? Got an app that has got like 10k lines. It uses a lot of imagesearch, gdip, some data in arrays, semi-complicated gui with tabs, classics. While it is in standby it does literally nothing. When I open the script in tray and see ...
by Brazolek123
04 Dec 2017, 09:19
Forum: Ask For Help
Topic: Determine if user uses DPI scale >100% Topic is solved
Replies: 2
Views: 111

Determine if user uses DPI scale >100% Topic is solved

Image

I want to know how can I determine wether user got DPI scaling at 100% or more? Is there any dllcall or regread? If so, is it the same for Win7, 8 and 10?
by Brazolek123
18 Oct 2017, 05:08
Forum: SciTE4AutoHotkey
Topic: Sicte4ahk - un/comment selected text
Replies: 1
Views: 290

Sicte4ahk - un/comment selected text

Is there any built-in key for it or should I try to create/search for one?
by Brazolek123
17 Oct 2017, 05:35
Forum: Gaming
Topic: Anyone got any experiences in posting mouse events in Qt5 apps?
Replies: 2
Views: 144

Re: Anyone got any experiences in posting mouse events in Qt5 apps?

Regular mouse clicks to active window works fine. Problems appear when it comes to the inactive one. For example, this script: F1:: mousegetpos, posx0, posy0 winget,ID,hClient,A return F3:: CoordMode, mouse, screen BlockInput, mousemove posx1 := posx0 + 8 posy1 := posy0 + 8 mousegetpos, posx2, posy2...
by Brazolek123
17 Oct 2017, 04:26
Forum: Gaming
Topic: Anyone got any experiences in posting mouse events in Qt5 apps?
Replies: 2
Views: 144

Anyone got any experiences in posting mouse events in Qt5 apps?

I'm asking because all mouseclick methods i've used failed less or more miserably. I'm talking about trying to send mouse event lbutton or rbutton to inactive but not minimized window. Using ext. dll caused click on different menus inside app with different position offsets (whats is kinda strange, ...
by Brazolek123
16 Oct 2017, 06:18
Forum: Gaming
Topic: ImageSearch, 120+images, too slow
Replies: 10
Views: 398

Re: ImageSearch, 120+images, too slow

#Include Gdip.ahk Numpad1:: pToken := Gdip_Startup() pBitmapHayStack := Gdip_BitmapFromScreen() loop, 1 { pBitmapNeedle := Gdip_CreateBitmapFromFile(Needle.png) ;it rather should be inside loop if you would like in future to scan more than 1 img in signle thread RET := Gdip_ImageSearch(pBitmapHaySt...
by Brazolek123
16 Oct 2017, 05:32
Forum: Gaming
Topic: [Help] ControlClick Not Working, but ControlSend is Topic is solved
Replies: 5
Views: 197

Re: [Help] ControlClick Not Working, but ControlSend is Topic is solved

Try first one key down, sleep 50ms, then key up. Also specify in controlclick options parameter NA, might help you. If it wont help place mousemove to click point just before controlclick. You can also check postmessage leftclick to hwnd, also set cursor position before click might be necessary, it ...
by Brazolek123
16 Oct 2017, 04:18
Forum: Gaming
Topic: ImageSearch, 120+images, too slow
Replies: 10
Views: 398

Re: ImageSearch, 120+images, too slow

1) Place at begining of script, it reduced imagesearch speed from 60ms to 0-1ms (literally zero to one miliseconds, in my case) SetBatchLines, -1 DllCall("dwmapi\DwmEnableComposition", "uint", 0) 2) Try compile both x32 and x64 and check whats faster (in my case x32 is two times ...
by Brazolek123
12 Oct 2017, 10:19
Forum: Ask For Help
Topic: Can any of these 5 functions cause "Out of memory" error?
Replies: 2
Views: 187

Re: Can any of these 5 functions cause "Out of memory" error?

I sit for a moment at my script and created log function: log(funcname, label, step:=0){ logMsg := A_TickCount . "," GetProcessMemory_Private() . "," . funcname . "," . label . "," . step FileAppend, `n%logMsg%, logfile.txt } GetProcessMemory_Private(Units=&qu...
by Brazolek123
11 Oct 2017, 16:44
Forum: Ask For Help
Topic: Can any of these 5 functions cause "Out of memory" error?
Replies: 2
Views: 187

Can any of these 5 functions cause "Out of memory" error?

I got main scritp that uses these functions from time to time. Files that are being read are monsters.xml and items.xml, which I will upload as attachments (items is quite long, 1,5MB whereas monsters is just list of few hundreds names and small xml file location path of each name). The problem is t...
by Brazolek123
09 Oct 2017, 13:35
Forum: Ask For Help
Topic: Window blinks/flashes while Gdip_BitmapFromHWND
Replies: 0
Views: 117

Window blinks/flashes while Gdip_BitmapFromHWND

Hi, I'm using gdip2.ahk library (with fixed bug for x64 system), and any time I'm trying to retrieve bitmap from certain HWND the screen blinks. For a milisecond whole screen is white. Bitmap is ok, and function works but it doesnt look well. I disabled "desktop compositon' in control panels vi...
by Brazolek123
07 Oct 2017, 06:31
Forum: Ask For Help
Topic: Can't find the icon in exe version of script
Replies: 10
Views: 296

Re: Can't find the icon in exe version of script

Didnt read the topic, but basing on title you can google for resource hacker

Go to advanced search