Search found 44 matches
- 10 Nov 2023, 11:04
- Forum: Ask for Help (v2)
- Topic: Inserting an image into the program code for use in the GUI
- Replies: 2
- Views: 278
Inserting an image into the program code for use in the GUI
And hello to everyone again! An idea appeared in my head about how I can upload a picture to the code, that is, I have a picture in base64 or an array of bytes? How can I return HBITMAP based on what I have. For example, a user launching my GUI sees a window without a picture because he has not down...
- 07 Nov 2023, 20:02
- Forum: Ask for Help (v2)
- Topic: CheckBox state in GUI Topic is solved
- Replies: 2
- Views: 415
Re: CheckBox state in GUI Topic is solved
myGui := Gui(,"test") cbCtrl := myGui.Add("Checkbox", "x200 y0 vChBx", "Opss") cbCtrl.OnEvent("Click", Opss1) myGui.Show("Center h350 w500") Opss1(*) { SoundBeep() } Numpad1:: { cbCtrl.Value := !cbCtrl.Value cbCtrl.Redraw SoundBeep } Thank you very much!) You've already helped me out many times. Ha...
- 07 Nov 2023, 09:04
- Forum: Ask for Help (v2)
- Topic: CheckBox state in GUI Topic is solved
- Replies: 2
- Views: 415
CheckBox state in GUI Topic is solved
Hello everyone! I encountered a problem switching the CheckBox state. If I check the CheckBox, an event occurs that calls SoundBeep(), but in the code Numpad1 also calls SoundBeep(). How can I make the CheckBox state change when I press Numpad1? Here is an example of my code: myGui := Gui(,"test") m...
- 29 Dec 2022, 13:01
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Re: Script crash when using Mcode
I solved my Dll loading problem, here is an example on AutoHotKey v2: #DllLoad "Dll.dll" ; <--- If it does not work, then move the .dll to the same place where the script itself is located or write the full path to the .dll file if !DllCall("GetModuleHandle", "str", "Dll.dll") { MsgBox "Failed to lo...
- 27 Dec 2022, 14:42
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
- 27 Dec 2022, 12:45
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Re: Script crash when using Mcode
@swagfag
I tried it, unfortunately it doesn't work
I tried it, unfortunately it doesn't work
- 27 Dec 2022, 11:26
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Re: Script crash when using Mcode
@swagfag
Do you mean:
result := DllCall("example\add", "int", 1, "int", 2)
?
Do you mean:
result := DllCall("example\add", "int", 1, "int", 2)
?
- 27 Dec 2022, 11:02
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Re: Script crash when using Mcode
lexikos Thanks a lot for the advice. I have been trying to solve this problem for more than a month)) Yesterday I used the help of AI (openai), he also recommended using .dll file and showed the simplest example using LoadLibrary. Here is the simplest example written by AI (this is the content of t...
- 26 Dec 2022, 11:19
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Re: Script crash when using Mcode
lexikos You are right, I was just trying to convey the essence of what I need, so as not to load you with my code once again. My task is that I need to load the entire lpBuffer from ReadProcessMemory into a variable as a string in order to use RegExMatch to find the desired byte sequence (array_byt...
- 24 Dec 2022, 18:44
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Re: Script crash when using Mcode
@swagfag
Understood thanks
Understood thanks
- 24 Dec 2022, 11:24
- Forum: Ask for Help (v2)
- Topic: Script crash when using Mcode
- Replies: 14
- Views: 1236
Script crash when using Mcode
Hello friends! I ask for the help of Mcode experts. I wrote a function in C++, I am 100% sure in it that it works correctly. But when I call it via AutoHotkey, the program crashes. Here is my function in C++: #include <windows.h> #include <tchar.h> #include <iostream> #include <tlhelp32.h> #include ...
- 03 Dec 2022, 14:20
- Forum: Ask for Help (v2)
- Topic: DllCall throws an error
- Replies: 2
- Views: 406
Re: DllCall throws an error
@jNizM
Thank you! Have a good day!
Thank you! Have a good day!
- 03 Dec 2022, 12:23
- Forum: Ask for Help (v2)
- Topic: AHK simply not opening files
- Replies: 1
- Views: 241
Re: AHK simply not opening files
Could you post your code here so we can look into your issue?
- 03 Dec 2022, 12:18
- Forum: Ask for Help (v2)
- Topic: DllCall throws an error
- Replies: 2
- Views: 406
DllCall throws an error
Hello everyone I decided to convert the popular MCode() function to AHK v2, but as usual everything went wrong) I can't understand why the error occurs, I'm 95% sure that I rewrote everything as needed. Here is my converted code: MyFunction := MCode("2,x86:uCoAAADD,x64:uCoAAADD") Msgbox(DllCall(MyFu...
- 27 Nov 2022, 18:58
- Forum: Ask for Help (v2)
- Topic: Hello, problem with click processing Topic is solved
- Replies: 2
- Views: 409
Re: Hello, problem with click processing Topic is solved
Hello! If I understand you correctly, you want that when you press ALT + ; you pressed the RIGHT key. Here is how it can be implemented: !`;:: Send("{Right}") For example, the symbol ; is reserved in AutoHotKey as a comment and the program thinks that you want to comment on the code that comes after...
- 27 Nov 2022, 18:28
- Forum: Ask for Help (v2)
- Topic: VirtualQueryEx does not show AllocationBase
- Replies: 6
- Views: 742
Re: VirtualQueryEx does not show AllocationBase
swagfag Forgive me for distracting you again, I see you are well versed in DllCall. I have a question about the buffer. Do you happen to know how to load the entire contents of the buffer into a variable? At the moment, I'm using a loop and NumGet to load the contents into a variable. It works but ...
- 25 Nov 2022, 17:26
- Forum: Ask for Help (v2)
- Topic: VirtualQueryEx does not show AllocationBase
- Replies: 6
- Views: 742
Re: VirtualQueryEx does not show AllocationBase
swagfag Thank you very much! It turns out I did everything right, I just thought if I specify 0 in lpAddress it will show me all the memory pages. It turns out that this had to be done in a loop, I just didn’t quite understand how VirtualQueryEx works! Now I have all the base addresses and page siz...
- 23 Nov 2022, 04:58
- Forum: Ask for Help (v2)
- Topic: VirtualQueryEx does not show AllocationBase
- Replies: 6
- Views: 742
Re: VirtualQueryEx does not show AllocationBase
swagfag To be honest, I didn't quite figure out how VirtualQueryEx works. When I read memory using ReadProcessMemory I need to specify lpBaseAddress and nSize for the function to work correctly. But I don't specify the exact memory address as I want to find the exact address using my own AOBScan. D...
- 22 Nov 2022, 15:22
- Forum: Ask for Help (v2)
- Topic: VirtualQueryEx does not show AllocationBase
- Replies: 6
- Views: 742
VirtualQueryEx does not show AllocationBase
And hello again to everyone! Has anyone by any chance encountered such a problem that AllocationBase shows 0 if you register an address equal to 0 in lpAddress? _MEMORY_BASIC_INFORMATION := Buffer(A_PtrSize = 8 ? 48 : 28, 0) NumPut("UInt", _MEMORY_BASIC_INFORMATION.Size, _MEMORY_BASIC_INFORMATION, 0...
- 14 Nov 2022, 18:53
- Forum: Ask for Help (v2)
- Topic: How do I get all the elements from the buffer? Topic is solved
- Replies: 2
- Views: 451
Re: How do I get all the elements from the buffer? Topic is solved
@swagfag
Thank you very much for the explanation!
Thank you very much for the explanation!