Search found 61 matches

by MiM
04 Aug 2022, 18:00
Forum: Ask for Help (v1)
Topic: (winapi) RegNotifyChangeKeyValue Access is denied.
Replies: 9
Views: 1422

(winapi) RegNotifyChangeKeyValue Access is denied.

#Persistent #SingleInstance, Force RegWrite, REG_SZ, HKEY_LOCAL_MACHINE\SOFTWARE\TestKey, MyValueName, One DllCall("Advapi32.dll\RegOpenKeyEx" (A_IsUnicode?"W":"A"), "UInt", 0x80000002, "UInt", 0, "UInt", 0, "Int", 0x1, "UIntP", hKey) Result := DllCall("Advapi32.dll\RegNotifyChangeKeyValue" , "UPtr...
by MiM
18 Jul 2022, 20:48
Forum: Ask for Help (v1)
Topic: DllCall incorrect suffix (A instead of W) Topic is solved
Replies: 2
Views: 391

DllCall incorrect suffix (A instead of W) Topic is solved

As docs state: If no function can be found by the given name, an A (ANSI) or W (Unicode) suffix is automatically appended based on which version of AutoHotkey is running the script. For example, "MessageBox" is the same as "MessageBoxA" in ANSI versions and "MessageBoxW" in Unicode versions. The thi...
by MiM
17 Jul 2022, 07:02
Forum: Bug Reports
Topic: Gui hwnd sometimes prepends "0xffffffff"
Replies: 1
Views: 506

Gui hwnd sometimes prepends "0xffffffff"

#SingleInstance, Force Gui, +hwndGuiHwnd if InStr(GuiHwnd, "0xffffffff") MsgBox, % GuiHwnd Run, % A_ScriptFullPath ExitApp https://i.imgur.com/SRc5jLz.gif Randomly encountered this, worked around it with ~ GuiHwnd := RegExReplace(GuiHwnd, "0xffffffff", "") Sorry if it has been reported already, i p...
by MiM
16 Jul 2022, 11:39
Forum: Ask for Help (v1)
Topic: Is it possible to customize gui titlebar context menu? Topic is solved
Replies: 3
Views: 630

Re: Is it possible to customize gui titlebar context menu? Topic is solved

Code: Select all

OnMessage(0x00A4, "WM_NCRBUTTONDOWN")
Gui, Show, w300 h300
Return

WM_NCRBUTTONDOWN(wParam, lParam) {
  Return 0
}
I just needed the OnMessage thanks!
by MiM
16 Jul 2022, 10:13
Forum: Ask for Help (v1)
Topic: Is it possible to customize gui titlebar context menu? Topic is solved
Replies: 3
Views: 630

Is it possible to customize gui titlebar context menu? Topic is solved

Image
I've never seen anyone customize this context menu, is it at all possible?
Also i'm curious if it's possible to completely remove it (so nothing happens when right clicking the titlebar)
by MiM
23 May 2022, 21:08
Forum: Ask for Help (v1)
Topic: Layered window gui SetParent NULL breaks. Topic is solved
Replies: 2
Views: 300

Re: Layered window gui SetParent NULL breaks. Topic is solved

Figured it out, gotta -E0x80000 before setparenting to null and then can just do +E0x80000 right after.
In the SetParent function docs the remarks section explains it.
by MiM
23 May 2022, 15:02
Forum: Ask for Help (v1)
Topic: Layered window gui SetParent NULL breaks. Topic is solved
Replies: 2
Views: 300

Layered window gui SetParent NULL breaks. Topic is solved

Anyone familiar with layered windows, when setting DllCall("User32.dll\SetParent", "Ptr", GuiHwnd, "Ptr", 0) (unparenting) the gui, it disappears, i'm guessing UpdateLayeredWindow from the gdip library is relevant here? I guess this demonstrates the issue: #SingleInstance, Force Gui, Show, w300 h300...
by MiM
15 May 2022, 02:20
Forum: Ask for Help (v1)
Topic: Adding connect timeout? (Socket.ahk TCP)
Replies: 3
Views: 417

Re: Adding connect timeout? (Socket.ahk TCP)

You should search websockets in 100% AHK on git by shadowrun it is based on socket.ahk it's good example you might also find websockets client Would you mind to provide a link as it look hard to find (well, I'm probably to dumb to accomplish that)? :eh: https://github.com/gustavooavila/Autohotkey-W...
by MiM
14 May 2022, 23:28
Forum: Ask for Help (v1)
Topic: Adding connect timeout? (Socket.ahk TCP)
Replies: 3
Views: 417

Adding connect timeout? (Socket.ahk TCP)

So i'm working with geek Dude's Socket.ahk I've read up on it and apparently i need to set the socket to "non-blocking" mode ( last post here describes it ) and then with the select function i can set the timeout for connecting. I've tried for the past couple days but i just can't figure anything ou...
by MiM
09 Mar 2022, 15:58
Forum: Ask for Help (v1)
Topic: OnMessage WM_MOUSEWHEEL doesn't work for inactive gui.
Replies: 1
Views: 246

OnMessage WM_MOUSEWHEEL doesn't work for inactive gui.

#SingleInstance, Force OnMessage(0x20A, "WM_MOUSEWHEEL") Gui, Show, w200 h200 Return WM_MOUSEWHEEL() { Static Count Count++ Tooltip, % Count } https://i.imgur.com/s3W8xAA.gif I'm on windows8.1, i think on windows10 the onmessage picks up even when the gui is not the active window. Any ideas why? An...
by MiM
08 Mar 2022, 11:49
Forum: Ask for Help (v1)
Topic: Possible to remove padding around slider control? Topic is solved
Replies: 10
Views: 1231

Re: Possible to remove padding around slider control? Topic is solved

just me Niiice, proper math and i didn't know TBM_GETCHANNELRECT returned the position of the slider without the padding :D so i can use it for WinSet, Region as well! Thank you! Side note: I respect you a lot, you have no idea how much your posts on the forum helped me when it comes to gui stuff.
by MiM
08 Mar 2022, 11:09
Forum: Ask for Help (v1)
Topic: Possible to remove padding around slider control? Topic is solved
Replies: 10
Views: 1231

Re: Possible to remove padding around slider control? Topic is solved

@neogna2
As i stated in the OP ~
MiM wrote:I need to use the standard slider control, not a custom lib or whatever.
by MiM
08 Mar 2022, 10:28
Forum: Ask for Help (v1)
Topic: Possible to remove padding around slider control? Topic is solved
Replies: 10
Views: 1231

Re: Possible to remove padding around slider control? Topic is solved

#SingleInstance, Force OnMessage(0x201, "WM_LBUTTONDOWN") SetControlDelay, 0 SetBatchLines, -1 SetWinDelay, -1 Gui, +hwndGuiHwnd Gui, Add, Slider, w23 h100 +hwndSliderHwnd +Vertical +0x10 +0x20 +Thick20 +Center +Range0-100, 50 SendMessage, 1045, 1, 0,, ahk_id %SliderHwnd% ; TBM_SETPAGESIZE (mouse c...
by MiM
07 Mar 2022, 12:00
Forum: Ask for Help (v1)
Topic: Possible to remove padding around slider control? Topic is solved
Replies: 10
Views: 1231

Re: Possible to remove padding around slider control? Topic is solved

teadrinker Well the padding is still there, you're just removing the focus from the control! :P (i'm guessing you thought the dotted lines were my issue) I mainly need it for something like this: #SingleInstance, Force OnMessage(0x201, "WM_LBUTTONDOWN") Gui, +hwndGuiHwnd Gui, Add, Slider, h100 +hwn...
by MiM
06 Mar 2022, 04:52
Forum: Ask for Help (v1)
Topic: Possible to remove padding around slider control? Topic is solved
Replies: 10
Views: 1231

Possible to remove padding around slider control? Topic is solved

#SingleInstance, Force Gui, Color, 610000 Gui, Add, Slider, h100 Vertical +0x10 +0x20 +Thick30 +Range0-100, 50 Gui, Show, w200 h200 Return https://i.imgur.com/5BECKUN.png As title says, i'm wondering if it's possible to perhaps "cut off" the "padding" around the actual slider. Note: I need to use t...
by MiM
18 Nov 2021, 20:43
Forum: Ask for Help (v1)
Topic: SetParent gui control breaks glabel Topic is solved
Replies: 13
Views: 976

Re: SetParent gui control breaks glabel Topic is solved

Well yeeeah but like i've said, i need the specific "setparent a control to statusbar" functionality. I was thinking something like this: #SingleInstance, Force OnMessage(0x201, "WM_LBUTTONDOWN") Gui, Main: +hwndMainGuiHwnd Gui, Main: Add, StatusBar, h100 -Theme +Backgroundffffff +hwndSBHwnd SendMe...
by MiM
18 Nov 2021, 19:28
Forum: Ask for Help (v1)
Topic: SetParent gui control breaks glabel Topic is solved
Replies: 13
Views: 976

Re: SetParent gui control breaks glabel Topic is solved

Nah it's too janky. I'll try to figure something else out when i get some free time and i'll post here if i figure it out.
Thanks for your time @teadrinker ! (:
by MiM
18 Nov 2021, 19:18
Forum: Ask for Help (v1)
Topic: SetParent gui control breaks glabel Topic is solved
Replies: 13
Views: 976

Re: SetParent gui control breaks glabel Topic is solved

I've tried with WM_NOTIFY before but it fires a lot (for example, click and hold on the button and move your mouse off and on the button a couple of times) also, even clicking once fires it a lot: Gui, Main: +hwndMainGuiHwnd Gui, Main: Add, StatusBar, h100 -Theme +Backgroundffffff +hwndSBHwnd -0x400...
by MiM
18 Nov 2021, 18:12
Forum: Ask for Help (v1)
Topic: SetParent gui control breaks glabel Topic is solved
Replies: 13
Views: 976

Re: SetParent gui control breaks glabel Topic is solved

Well yeeeah but like i've said, i need the specific "setparent a control to statusbar" functionality. I was thinking something like this: #SingleInstance, Force OnMessage(0x201, "WM_LBUTTONDOWN") Gui, Main: +hwndMainGuiHwnd Gui, Main: Add, StatusBar, h100 -Theme +Backgroundffffff +hwndSBHwnd SendMes...
by MiM
18 Nov 2021, 17:00
Forum: Ask for Help (v1)
Topic: SetParent gui control breaks glabel Topic is solved
Replies: 13
Views: 976

Re: SetParent gui control breaks glabel Topic is solved

So my only way is to use onmessage WM_LBUTTONDOWN & WM_LBUTTONUP ?

Go to advanced search