Search found 122 matches
- 25 Aug 2023, 00:51
- Forum: Ask for Help (v1)
- Topic: How to get all files in a folder recursively relative to its parent?
- Replies: 5
- Views: 399
Re: How to get all files in a folder recursively relative to its parent?
what i didn't understand is how to populate the arrays according to the path, its confuse, It also fails when it leaves from a subfolder to a different parent
- 25 Aug 2023, 00:15
- Forum: Ask for Help (v1)
- Topic: How to get all files in a folder recursively relative to its parent?
- Replies: 5
- Views: 399
Re: How to get all files in a folder recursively relative to its parent?
What do you mean by parse the file path? also i didn't get it, with an array of arrays how i will know what is a folder and what is a file?
- 24 Aug 2023, 23:09
- Forum: Ask for Help (v1)
- Topic: How to get all files in a folder recursively relative to its parent?
- Replies: 5
- Views: 399
How to get all files in a folder recursively relative to its parent?
This is what I did but when one folder is inside another it's not saved inside its parent key in the object: dir = C:\Users\%A_UserName%\Documents ; Just to reproduce a folder with subfolders/files ------- FileCreateDir, %dir%\A FileCreateDir, %dir%\A\B FileCreateDir, %dir%\A\B\B1 FileCreateDir, %di...
- 20 Aug 2023, 11:36
- Forum: Ask for Help (v1)
- Topic: [GDI+] How to BitBlt a pBitmap to a hBitmap?
- Replies: 4
- Views: 541
Re: [GDI+] How to BitBlt a pBitmap to a hBitmap?
pBitmapOBM := DllCall("SelectObject", "Ptr",pDC, "Ptr", pBitmap, "Ptr") You cannot select a GDI+ Bitmap object into a GDI DC. Maybe this will work: ;------------------------------------------------------------------------- ; BitBlt the pBitmap to the hBitmap ; pBitmapDC := DllCall("CreateCompatible...
- 19 Aug 2023, 21:43
- Forum: Ask for Help (v1)
- Topic: [GDI+] How to BitBlt a pBitmap to a hBitmap?
- Replies: 4
- Views: 541
[GDI+] How to BitBlt a pBitmap to a hBitmap?
pToken := Gdip_Startup() ;------------------------------------------------------------------------- ; create the pBitmap file := "C:\Users\ShareX\Screenshots\test.png" DllCall("gdiplus\GdipCreateBitmapFromFile", "WStr", file, "PtrP", pBitmap) DllCall("gdiplus\GdipGetImageWidth", "Ptr", pBitmap, "UI...
- 21 Jun 2022, 09:06
- Forum: Tutorials (v1)
- Topic: FindText tutorial
- Replies: 98
- Views: 69729
Re: FindText tutorial
Hello, thanks for the tutorial
I didnt understand it, what seterr really does? and how/when to use it?seterr --> if error margins were set in the Text or not
- 19 Jun 2022, 06:34
- Forum: Ask for Help (v1)
- Topic: How to inject a dll into a process?
- Replies: 4
- Views: 1094
Re: How to inject a dll into a process?
Also tried this one from @jeeswg /@HotKeyIt
viewtopic.php?f=67&t=27047&start=20
But injecting with this script makes the process to crash
viewtopic.php?f=67&t=27047&start=20
But injecting with this script makes the process to crash
- 17 Jun 2022, 15:56
- Forum: Ask for Help (v1)
- Topic: How to inject a dll into a process?
- Replies: 4
- Views: 1094
Re: How to inject a dll into a process?
Maybe? https://www.autohotkey.com/board/topic/93326-dll-injection/#entry588397 The link to InjectAhkDll() is offline, but i already had found this function in another link, it uses a lib of __struct that i could not find. I didn't understand if her function was specific to the ahk dll or any dll, a...
- 16 Jun 2022, 19:40
- Forum: Ask for Help (v1)
- Topic: How to inject a dll into a process?
- Replies: 4
- Views: 1094
How to inject a dll into a process?
I compiled Microsoft Detours and included the lib into a DLL, im looking for a way to inject it into a process using an autohotkey script. Windows 10, appreciate any help on this task! DLL Source #include "pch.h" #include "detours.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, ...
- 12 Jun 2022, 15:41
- Forum: Ask for Help (v1)
- Topic: How to change picture control width/height without modifying the picture?
- Replies: 1
- Views: 333
How to change picture control width/height without modifying the picture?
This works correctly, but as the picture is so small its hard to exactly click on it to trigger the label: Gui, -Caption Gui, Color, 0 Gui, Add, Picture, y10 +BackgroundTrans gMinimize, minimize.png Gui, Show, w100 h50, Gui1 When i try to set a width and height to the picture control, it modify some...
- 12 Jun 2022, 14:58
- Forum: Ask for Help (v1)
- Topic: Is possible to bind an action to a GUI button?
- Replies: 3
- Views: 765
Re: Is possible to bind an action to a GUI button?
Just for clarification, there's any problem using objbindmethod? is it wrong or what?
- 12 Jun 2022, 12:00
- Forum: Ask for Help (v1)
- Topic: Is possible to bind an action to a GUI button?
- Replies: 3
- Views: 765
Is possible to bind an action to a GUI button?
I know its possible to bind a call to function or a label gui, add, button, hWndbut vbut, minimize onclick := ObjBindMethod("WinMinimize", "") GuiControl, +g, %but%, %onclick% gui, show, w300 h100 Return WinMinimize() { WinMinimize, A } Is it possible to execute the function directly? something like...
- 04 Jun 2022, 14:47
- Forum: Ask for Help (v1)
- Topic: How to send a pBitmap between scripts?
- Replies: 43
- Views: 4015
- 03 Jun 2022, 08:26
- Forum: Ask for Help (v1)
- Topic: How to send a pBitmap between scripts?
- Replies: 43
- Views: 4015
Re: How to send a pBitmap between scripts?
I think you have to copy data (RtlMoveMemory) to pBuf , but not change the pBuf to a new one. However, I have no experience with file mapping, so I'm not sure that what you are doing is correct. c7aesa7r he meant copy the data to pbuf and not assign a new one which is exactly what you did try in th...
- 02 Jun 2022, 15:41
- Forum: Ask for Help (v1)
- Topic: Is possible to 'force' a window to a given dimension?
- Replies: 2
- Views: 462
Is possible to 'force' a window to a given dimension?
I don't understand why but sometimes my target window doesn't resize to the width and height I input it 'stuck' in the correct width however the height is like 200px smaller when this happens I can call WinMove/MoveWindow infinitely and it doesn't resize to the desired input then i need to move it t...
- 19 May 2022, 08:01
- Forum: Scripts and Functions (v1)
- Topic: SysMeter v0.6
- Replies: 32
- Views: 13945
Re: SysMeter v0.6
jNizM is possible to show use of cpu/ram for a group of specific process? example in one row show only use of CPU of all my instances of x.exe in another row all instances of y.exe, etc?
- 21 Apr 2022, 18:15
- Forum: Ask for Help (v1)
- Topic: How to change the position of Scrollabe Gui Scrollbar?
- Replies: 0
- Views: 259
How to change the position of Scrollabe Gui Scrollbar?
This script adds horizontal/vertical scrollbar into the GUI, would like to ask if someone knows how to change the position of these ScrollBars I mean these: AutoHotkey_2022-04-21_19-50-23.png By change position I mean, repositioning the xy position where the scrollbar is drawn, something like this: ...
- 12 Apr 2022, 21:09
- Forum: Ask for Help (v1)
- Topic: How to 'build' WM_MOUSEWHEEL w/lParams?
- Replies: 0
- Views: 267
How to 'build' WM_MOUSEWHEEL w/lParams?
does someone know how to build the `wParam` and `lParam` used on `WM_MOUSEWHEEL`? WindowTitle := "..." WinGet, hWnd, Id, %WindowTitle% msg := 522 ; WM_MOUSEWHEEL x := 100 y := 100 wParam := ? lParam := ? PostMessage, %msg%, %wParam%, %lParam%,, ahk_id %hWnd% im trying to simulate scroll up/down usin...
- 26 Feb 2022, 18:02
- Forum: Ask for Help (v1)
- Topic: Creating images with the Neumorphism effect
- Replies: 10
- Views: 1536
Re: Creating images with the Neumorphism effect
how do you create the round border in the pictures? i tried once but the corners of the picture became very weird
- 20 Jan 2022, 18:02
- Forum: Ask for Help (v1)
- Topic: How to create/set a gui without background?
- Replies: 23
- Views: 3167
Re: How to create/set a gui without background?
https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-paintstruct fErase Indicates whether the background must be erased. This value is nonzero if the application should erase the background. The application is responsible for erasing the background if a window class is created witho...