Search found 61 matches

by MiM
11 Feb 2024, 13:04
Forum: Scripts and Functions (v1)
Topic: Yet another winsock class (TCP/IPv4, Text only)
Replies: 2
Views: 379

Re: Yet another winsock class (TCP/IPv4, Text only)

Works great! Just a quick note, it's AHKU64 compatible only I'm on an old PC right now and AHKU32 is not compatible with it. Damnit, i deliberately only made it x64... i'll make it x32 compatible when i get bored. Should be x32 compatible now. Might do some more testing since I used to have problem...
by MiM
11 Feb 2024, 10:54
Forum: Scripts and Functions (v1)
Topic: Yet another winsock class (TCP/IPv4, Text only)
Replies: 2
Views: 379

Yet another winsock class (TCP/IPv4, Text only)

This class is based on Socket.ahk so big thanks to geek ! Also thanks to: TheArkive for general winsock help and testing/troubleshooting with me anonymous1184 mostly for help relating to how classes work Template/Example: #SingleInstance, Off SetBatchLines, -1 ListeningPort := "8338" ConnectingAddr...
by MiM
29 Sep 2023, 17:27
Forum: Bug Reports
Topic: Gui control hwnds larger than 0x7FFFFFFFFFFFFFFF
Replies: 13
Views: 5222

Re: Gui control hwnds larger than 0x7FFFFFFFFFFFFFFF

This has been annoying me a LOT recently, so as lexikos said here ~ Since the value is always in range for an unsigned 64-bit value, you can use a string->uint64 function to convert it, then reinterpret it as int64: x := "0xffffffff97f306cf" MsgBox % DllCall("msvcrt\" (A_IsUnicode ? "_wcs" : "_str")...
by MiM
02 Jul 2023, 09:40
Forum: Ask for Help (v1)
Topic: Window made with CreateWindowEx triggers tray menu hotkeys
Replies: 0
Views: 209

Window made with CreateWindowEx triggers tray menu hotkeys

As title says, #Persistent #SingleInstance, Force WinClass := "MyClass" Func := "MyWndProc" pWndProc := RegisterCallback(Func, "F") hCursor := DllCall("LoadCursor", "UInt", 0, "Int", 32512, "UInt") vPIs64 := (A_PtrSize=8), vSize := (vPIs64?80:48) VarSetCapacity(WNDCLASSEX, vSize, 0) NumPut(vSize, WN...
by MiM
27 Oct 2022, 22:32
Forum: Scripts and Functions (v1)
Topic: AutoHotkey shortcut to like songs on Spotify
Replies: 12
Views: 4353

Re: AutoHotkey shortcut to like songs on Spotify

@MiM, I'm trying to understand your `LikeCurrentSong` Method, but failing miserably...can you point me towards any resource that would make sense of how you got it to that point? I'm currently trying to add similar hotkeys for "I don't like this song"/"I don't like ${artist}" in the discover weekly...
by MiM
22 Sep 2022, 21:40
Forum: Ask for Help (v1)
Topic: Trying to convert SVG file to PNG (COM Javascript)
Replies: 0
Views: 639

Trying to convert SVG file to PNG (COM Javascript)

I'm trying to convert an SVG file to PNG (Base64 or hBitmap) I decided to use JS, here's a working example with svg converted to B64 ~ https://jsitor.com/YAoz60cbc i took pretty much all of it from stackoverflow. (console log at the bottom spits out proper base64 png) But in autohotkey ~ #SingleInst...
by MiM
24 Aug 2022, 03:42
Forum: Ask for Help (v1)
Topic: Is it possible to make a gui without controls jittering/jumping when resizing?
Replies: 11
Views: 1816

Re: Is it possible to make a gui without controls jittering/jumping when resizing?

FanaticGuru Yeah i understand that it happens for a reason, my guess is that they chose this jittering instead of resizing of the window being "slower" like, i think there is a way to... it's kinda hard to explain but bare with me, when user drags to resize the window, the window wouldn't immediate...
by MiM
23 Aug 2022, 12:45
Forum: Ask for Help (v1)
Topic: Is it possible to make a gui without controls jittering/jumping when resizing?
Replies: 11
Views: 1816

Re: Is it possible to make a gui without controls jittering/jumping when resizing?

RussF (and to clarify, this doesn't happen ONLY to ahk GUI's, every window behaves like this) and you proceeded with claiming Since the source code for Notepad++ is available, perhaps you could comb through the thousands of lines of code and see how they handle window resizing without jittering. So...
by MiM
23 Aug 2022, 11:23
Forum: Ask for Help (v1)
Topic: Is it possible to make a gui without controls jittering/jumping when resizing?
Replies: 11
Views: 1816

Re: Is it possible to make a gui without controls jittering/jumping when resizing?

@RussF
I'd appreciate it if you read my whole post before commenting, i'm gonna leave it at that, thank you!
by MiM
23 Aug 2022, 09:50
Forum: Ask for Help (v1)
Topic: Is it possible to make a gui without controls jittering/jumping when resizing?
Replies: 11
Views: 1816

Re: Is it possible to make a gui without controls jittering/jumping when resizing?

WARNING - personal opinions follow: FWIW, I'm running on a Ryzen 7 5700G 3.8 GHz with NVidia 3060 GPU. Some of my windows jitter slightly when I resize them. Some do not. All the MS Office (2016) apps I tried do. Notepad++ does not. Does it keep me up at night. Not in the least. In fact, I never re...
by MiM
23 Aug 2022, 08:19
Forum: Ask for Help (v1)
Topic: Is it possible to make a gui without controls jittering/jumping when resizing?
Replies: 11
Views: 1816

Is it possible to make a gui without controls jittering/jumping when resizing?

Just to be safe i put all gif's in spoilers as they might cause epilepsy (?) (they're not too flashy but i'd rather play it safe) So for me, this: #SingleInstance, Force Gui, +Resize Gui, Color, Black Gui, Add, Edit, w400 h200 vEditField Gui, Show Return GuiSize: GuiControl, Move, EditField, % "w" ...
by MiM
20 Aug 2022, 18:11
Forum: Scripts and Functions (v1)
Topic: AutoHotkey shortcut to like songs on Spotify
Replies: 12
Views: 4353

Re: AutoHotkey shortcut to like songs on Spotify

Someone asked for this on the AHK Discord so i've made this while sleep deprived (It's for the desktop application, not the browser) ; Big thanks to Acc.ahk ~ "https://www.autohotkey.com/board/topic/77303-acc-library-ahk-l-updated-09272012/" ; And jeeswg ~ "https://www.autohotkey.com/boards/viewtopi...
by MiM
13 Aug 2022, 11:43
Forum: Ask for Help (v1)
Topic: DllCall incorrect suffix (A instead of W) Topic is solved
Replies: 2
Views: 385

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

Hm alright, i guess it's my fault for using win8.1 (i assume it's "fixed" in win10 or whatever)
Annoying that this happens with quite a few functions, thanks for clarifying anyways!
by MiM
11 Aug 2022, 14:04
Forum: Ask for Help (v1)
Topic: Need help identifying the volume tray icon for TrayIcon.ahk Topic is solved
Replies: 5
Views: 804

Re: Need help identifying the volume tray icon for TrayIcon.ahk Topic is solved

Welp this will do #SingleInstance, Force SetBatchLines, -1 Return F1:: ShowTrayVolume(A_ScreenWidth, A_ScreenHeight) Return ShowTrayVolume(x = 0, y = 0) { ;----------------------------------------------------------------; ; Big thanks to TrayIcon.ahk ; ; https://www.autohotkey.com/boards/viewtopic.p...
by MiM
10 Aug 2022, 21:54
Forum: Ask for Help (v1)
Topic: Need help identifying the volume tray icon for TrayIcon.ahk Topic is solved
Replies: 5
Views: 804

Re: Need help identifying the volume tray icon for TrayIcon.ahk Topic is solved

I was thinking about regexing all the possible tooltips: RemoteNetworkDevice Speakers LineLevel Headphones Microphone Headset Handset UnknownDigitalPassthrough SPDIF HDMI UnknownFormFactor (taken from microsoft docs) so if tooltip contains for example "Headphones" and ends with either a percent sign...
by MiM
10 Aug 2022, 19:39
Forum: Ask for Help (v1)
Topic: Need help identifying the volume tray icon for TrayIcon.ahk Topic is solved
Replies: 5
Views: 804

Need help identifying the volume tray icon for TrayIcon.ahk Topic is solved

It's process is explorer.exe so that won't work.
I've tried using VA.ahk to get the default sound device name and using that target it through it's tooltip but it's wonky and might not work for everyone.
Any ideas?
by MiM
05 Aug 2022, 06:52
Forum: Ask for Help (v1)
Topic: (winapi) RegNotifyChangeKeyValue Access is denied.
Replies: 9
Views: 1394

Re: (winapi) RegNotifyChangeKeyValue Access is denied.

Try this: RunAsAdmin(true) HKEY_LOCAL_MACHINE := 0x80000002 REG_NOTIFY_CHANGE_LAST_SET := 0x00000004 KEY_NOTIFY := 0x0010 counter := 0 RegWrite, REG_SZ, HKEY_LOCAL_MACHINE\SOFTWARE\TestKey, MyValueName, % ++counter MyEvent := new Event() MyWaitFunc := new WaitForSingleObjectAsync(MyEvent.handle, Fu...
by MiM
05 Aug 2022, 04:13
Forum: Ask for Help (v1)
Topic: (winapi) RegNotifyChangeKeyValue Access is denied.
Replies: 9
Views: 1394

Re: (winapi) RegNotifyChangeKeyValue Access is denied.

unfortunately, this is v2 #SingleInstance force ListLines 0 KeyHistory 0 SendMode "Input" ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory. hresult:=DllCall("RegOpenKeyEx" ; ,"Ptr",0x80000000 ;HKEY_CLASSES_R...
by MiM
04 Aug 2022, 19:33
Forum: Ask for Help (v1)
Topic: (winapi) RegNotifyChangeKeyValue Access is denied.
Replies: 9
Views: 1394

Re: (winapi) RegNotifyChangeKeyValue Access is denied.

Advapi32.dll would probably have to be LoadLibrary ied in prior to calling functions returning pointers to resources(ie the key, in this case), otherwise DllCall would automatically release the DLL and invalidate the pointers between calls So add hModule := DllCall("LoadLibrary", "Str", "C:\Windows...

Go to advanced search