GUI

Talk about anything
S1Niz7el2
Posts: 6
Joined: 16 Oct 2017, 14:07

GUI

20 Oct 2017, 14:05

Hello, I'm a new member and this is my first post. Thanks for having me. I had a really good time reading some of the old posts and the drama some of you guys experienced reads kinda like a soap opera. lol

I have to admit, I'm really intrigued by AutoHotkey (ahk). I'm kinda new to this programming thing and because of my inability to type fast, memorize code, or properly utilize snippets, AutoHotkey came along at the right time.

I've had a couple questions for a while now and I don't see anything in the forums so please forgive me if I repeat an old thread. How come I don't see any GUI's generated from Windows Forms or WPF that tap into the AutoHotkey functionality? I've seen some code that creates a window and stuff, but why nothing made that has a more software feel to it? I'd like to use C# and maybe WPF to create a GUI and I'm surprised to notice an absence of anything like that (so far). Is it forbidden in the license? Is there something I'm missing? It just seems strange to see so much development with no end-user specification. Anyways, I hope my interruption to your day produces something positive. Please guide me as only you can.
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: GUI

22 Oct 2017, 15:39

That's just it. AHK doesn't need to use Windows Forms or WPF to create Guis since you can simply create one with less than 5 lines. AHK is meant for automation. AHK was made using C++, so I doubt it'd use anything from the two.

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

S1Niz7el2
Posts: 6
Joined: 16 Oct 2017, 14:07

Re: GUI

03 Nov 2017, 20:24

I see. So for the average end user, not only do we have to learn to script, but we also have to make the gui. Hey, I'm not complaining. I'm happy as #v@% to have found AutoHotkey. I think it's a good thing and it's hard for me to fathom the lack of interest from my peers. I'm thinking the learning curve is not a curve. Anyway, thanks for the response. I was starting to think I hit a nerve.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: GUI

03 Nov 2017, 22:16

It was difficult enough as a beginner to learn how to use AutoHotkey's Gui command, it's only recently that I've been able to complete/perfect almost everything that I've wanted to do via the Winapi, using functions like RegisterClassEx and CreateWindowEx as a basis, and further functions and window messages on top of that.

Some things that I have seen mentioned occasionally, when doing web searches are:
[WPF]
Windows Presentation Foundation - Wikipedia
https://en.wikipedia.org/wiki/Windows_P ... Foundation
[MFC]
Microsoft Foundation Class Library - Wikipedia
https://en.wikipedia.org/wiki/Microsoft ... ss_Library
[MDI]
Multiple document interface - Wikipedia
https://en.wikipedia.org/wiki/Multiple_ ... _interface

I don't know what exactly these are, or how they might be beneficial.

If you have any simple 'hello world' code in AutoHotkey for WPF/MFC/MDI etc, or any arguments for why we should use them, I would be interested to take a look.

It was basically one post by majkinetor that got me started down the road of GUI proper via DllCall.
[tutorial] Creating windows without GUI commands - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/2112 ... -commands/

So yours could be the next first post. Thanks.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Off-topic Discussion”

Who is online

Users browsing this forum: Google [Bot] and 139 guests