Search found 216 matches
- 02 Sep 2022, 23:36
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
so like i said, uve decided to modify the ahk function and pass garbage values for x/y/width/height that u have somehow divined urself that the mcode function cannot account for, and as a result of which, it is now touching memory it's not supposed to Got it, so it was my mistake. :crazy: the edits...
- 02 Sep 2022, 18:44
- Forum: Ask for Help (v1)
- Topic: Gdip_PixelSearch Wont Work :(
- Replies: 36
- Views: 5925
Re: Gdip_PixelSearch Wont Work :(
Searching using machine code setbatchlines -1 pToken := Gdip_Startup() pBitmap := Gdip_BitmapFromScreen() if !Gdip_PixelSearch(pBitmap, ARGB := 0xFF336EA5, x, y, 30) MsgBox, Pixel %ARGB% found at (%x%, %y%) else MsgBox, Pixel %ARGB% not found Gdip_DisposeImage(pBitmap) Gdip_Shutdown(pToken) return ...
- 02 Sep 2022, 18:36
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
so like i said, uve decided to modify the ahk function and pass garbage values for x/y/width/height that u have somehow divined urself that the mcode function cannot account for, and as a result of which, it is now touching memory it's not supposed to Got it, so it was my mistake. :crazy: the edits...
- 02 Sep 2022, 18:29
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
sorry, when using msgbox, it turned out that there was an error. I will edit the post above! the return of E ErrorLevel is "0xc0000005" on my computer 64bits return of E ErrorLevel = A32 (works normally) MCode_PixelSearch is:114292632 however, yes! the computer is 32 bits, is the code incompatible ...
- 02 Sep 2022, 18:05
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
ok, I run the tests. the return was as follows: E := DllCall(MCode_PixelSearch, "ptr", Scan01, "int", Width, "int", Height, "int", Stride1, "uint", ARGB, "int", variation, "int*", x, "int*", y) MsgBox, E ErrorLevel=%ErrorLevel% ;~ E ErrorLevel = -4 from: https://www.autohotkey.com/docs/commands/Dll...
- 02 Sep 2022, 17:16
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
do what he said first and check errorlevel add this line directly after the DllCall(Mcode_pixelSearch.. MsgBox, ErrorLevel=%ErrorLevel% ok, I run the tests. the return was as follows: it seems to me that the error is in the "MCode_PixelSearch" or in the DLL that receives from the variable "E" can y...
- 02 Sep 2022, 15:56
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
ErrorLevel is a built-in ahk variable used pretty ubiquitously in v1. u check it the same way u check the value of any other variable Could it be that my notebook is missing a DLL? highly improbable can you help me please? I don't have much knowledge about low level programming. I know it's returni...
- 01 Sep 2022, 18:50
- Forum: Ask for Help (v1)
- Topic: Help with FileCryptFile() by @SKAN Topic is solved
- Replies: 14
- Views: 2554
Re: Help with FileCryptFile() by @SKAN Topic is solved
First of all, you have to understand that neither a file nor a string can be encrypted directly, but the array of bytes, so a string or a file must be represented as array of bytes. The difference between a file and a string is that byte representation of a literal string depends on its encoding. T...
- 01 Sep 2022, 17:38
- Forum: Ask for Help (v1)
- Topic: Help with FileCryptFile() by @SKAN Topic is solved
- Replies: 14
- Views: 2554
Re: Help with FileCryptFile() by @SKAN Topic is solved
script = ( MsgBox, This is the decrypted script ) key := "password" salt := "salt" MsgBox, % encryptedBase64 := CryptString(script, key, salt) MsgBox, % decryptedScript := CryptString(encryptedBase64, key, salt, false) CryptString(str, pwd, iv := "", crypt := true, textEncoding := "UTF-8") { lenInD...
- 01 Sep 2022, 14:20
- Forum: Ask for Help (v1)
- Topic: performance loss when compiling the script
- Replies: 6
- Views: 1153
Re: performance loss when compiling the script
I would search the forum for "encrypt" or "encryption". The search form is in the top right corner of this page. I believe that most of the modern Windows systems have Windows Defender or Windows Security enabled by default. That is antivirus software. The user can configure it to exclude files, di...
- 01 Sep 2022, 14:19
- Forum: Ask for Help (v1)
- Topic: Script to Open file .ahk with AutoHotkeyU32 Topic is solved
- Replies: 1
- Views: 437
Script to Open file .ahk with AutoHotkeyU32 Topic is solved
I'm having a problem using the command: Run, Script.ahk when I go to pass my script to other users, for some reason the extension ".ahk" is not opening automatically with AutoHotkey32U. sometimes it opens as Notepad, SciteAHK, Browser, etc... - maybe because of some configuration of the computer its...
- 01 Sep 2022, 12:05
- Forum: Ask for Help (v1)
- Topic: Help with FileCryptFile() by @SKAN Topic is solved
- Replies: 14
- Views: 2554
Re: Help with FileCryptFile() by @SKAN Topic is solved
What do you mean by "OPEN it in memory"? open an AHK Script without saving to HD. something like: ExecScript(Script, Wait:=true) { shell := ComObjCreate("WScript.Shell") exec := shell.Exec("AutoHotkey.exe /ErrorStdOut *") exec.StdIn.Write(script) exec.StdIn.Close() if Wait return exec.StdOut.ReadAl...
- 31 Aug 2022, 22:01
- Forum: Ask for Help (v1)
- Topic: Help with FileCryptFile() by @SKAN Topic is solved
- Replies: 14
- Views: 2554
Re: Help with FileCryptFile() by @SKAN Topic is solved
Try this: filePath := "test.txt" key := "password" salt := "salt" CryptFile(filePath, filePath, key, salt, true) MsgBox, encrypted CryptFile(filePath, filePath, key, salt, false) MsgBox, decrypted CryptFile(inFilePath, outFilePath, password, iv := "", crypt := true, algorithm := "AES", textEncoding...
- 31 Aug 2022, 17:26
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Re: Help with Gdip_PixelSearch Topic is solved
check ErrorLevel after the dllcall. ure probably feeding it garbage values for width/height. i see some stuff commented out in the function, so its anybody's guess what else u might have changed inadvertently breaking the function in the process without realizing on my computer it works normally. i...
- 31 Aug 2022, 13:04
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
- 31 Aug 2022, 13:03
- Forum: Ask for Help (v1)
- Topic: performance loss when compiling the script
- Replies: 6
- Views: 1153
Re: performance loss when compiling the script
Hi, It's possible that your antivirus software is scanning the compiled script before allowing it to run. You could exclude it from the scan. There are many forum posts about protecting scripts, so you may be able to adapt some of those approaches. I don't have Antivirus on my computer. this happen...
- 31 Aug 2022, 00:13
- Forum: Ask for Help (v1)
- Topic: Running multiple timers using SetTimer
- Replies: 2
- Views: 1500
Re: Running multiple timers using SetTimer
Hi all, I'm new to AHK and trying to create a script that runs multiple timers using the SetTimer function. So say I set up two timers as follows: Settimer, a, 26000 Settimer, b, 26000 I was wondering if it's possible to have one timer wait 13 seconds before it starts so that the two timers are goi...
- 31 Aug 2022, 00:04
- Forum: Ask for Help (v1)
- Topic: performance loss when compiling the script
- Replies: 6
- Views: 1153
performance loss when compiling the script
hey guys, i noticed that when compiling my ahk i lose a lot of performance, the script is slower. is there any way to compile without losing performance? is there any way to protect the source code without compiling? When Compilled: 500ms to run .exe :problem: When not Compilled: 97ms to run .ahk :c...
- 30 Aug 2022, 22:41
- Forum: Ask for Help (v1)
- Topic: Help with Gdip_PixelSearch Topic is solved
- Replies: 22
- Views: 3945
Help with Gdip_PixelSearch Topic is solved
hello, when using the "Gdip_PixelSearch" function returns the value -3. :headwall: I couldn't understand, can someone tell me what I can do to solve it? lib: ;##################################################################################### Gdip_PixelSearch(pBitmap, ARGB, ByRef x, ByRef y, PosX,...
- 26 Aug 2022, 02:12
- Forum: AutoHotkey_H
- Topic: [Guide] Compiling Ahk_h's source step by step Topic is solved
- Replies: 51
- Views: 51256
Re: [Guide] Compiling Ahk_h's source step by step Topic is solved
I'm having some problems completing step 1.3
Can someone help me?
Can someone help me?