Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

Post your working scripts, libraries and tools for AHK v1.1 and older
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: Beautiful Examples of GUIs

03 Jul 2014, 21:32

vasili111 wrote:I think that topic should include code of that Gui-s and should be moved to "Scripts and Functions"
I'd like to see some more code in this thread also, or at least links, especially now that it's been moved to "Scripts and Functions".
joedf wrote:Sure! I'll try to post a tutorial/Example tonight :)
Nice! :D
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: Beautiful Examples of GUIs

04 Jul 2014, 00:44

joedf wrote:Sure! I'll try to post a tutorial/Example tonight :)
I think it will be very interesting to see that tutorial!
I'll be watching you. :D
Thanks in advance!
Everything is possible!
User avatar
joedf
Posts: 8949
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Beautiful Examples of GUIs

04 Jul 2014, 01:06

Here it is! ;) I was lazy for the design, but the goal here is the back-end :)

Code: Select all

;activex gui - test  joedf - 2014/07/04
#SingleInstance, off
OnExit,OnExit

MYAPP_PROTOCOL:="myapp"

HTML_page =
( Ltrim Join
<!DOCTYPE html>
<html>
	<head>
		<style>
			body{font-family:sans-serif;background-color:#dde4ec;}
			#title{font-size:36px;}
			#corner{font-size:10px;position:absolute;top:8px;right:8px;}
			p{font-size:16px;background-color:#efefef;border:solid 1px #666;padding:4px;}
			#footer{text-align:center;}
		</style>
	</head>
	<body>
		<div id="title">Lorem Ipsum</div>
		<div id="corner">Welcome!</div>
		<p>The standard Lorem Ipsum passage, used since the 1500s</p>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
		<p id="footer">
			<a href="%MYAPP_PROTOCOL%://msgbox/hello">Click me for a MsgBox</a>&nbsp;-&nbsp;
			<a href="NOPE://msgbox/hello">Click me for nothing</a>&nbsp;-&nbsp;
			<a href="%MYAPP_PROTOCOL%://soundplay/ding">Click me for a ding sound!</a>
		</p>
	</body>
</html>
)

Gui Add, ActiveX, x0 y0 w640 h480 vWB, Shell.Explorer  ; The final parameter is the name of the ActiveX component.
WB.silent := true ;Surpress JS Error boxes
Display(WB,HTML_page)
ComObjConnect(WB, WB_events)  ; Connect WB's events to the WB_events class object.
Gui Show, w640 h480
return

GuiClose:
ExitApp

OnExit:
	FileDelete,%A_Temp%\*.DELETEME.html ;clean tmp file
ExitApp

class WB_events
{
	;for more events and other, see http://msdn.microsoft.com/en-us/library/aa752085
	
	NavigateComplete2(wb) {
		wb.Stop() ;blocked all navigation, we want our own stuff happening
	}
	DownloadComplete(wb, NewURL) {
		wb.Stop() ;blocked all navigation, we want our own stuff happening
	}
	DocumentComplete(wb, NewURL) {
		wb.Stop() ;blocked all navigation, we want our own stuff happening
	}
	
	BeforeNavigate2(wb, NewURL)
	{
		wb.Stop() ;blocked all navigation, we want our own stuff happening
		;parse the url
		global MYAPP_PROTOCOL
		if (InStr(NewURL,MYAPP_PROTOCOL "://")==1) { ;if url starts with "myapp://"
			what := SubStr(NewURL,Strlen(MYAPP_PROTOCOL)+4) ;get stuff after "myapp://"
			if InStr(what,"msgbox/hello")
				MsgBox Hello world!
			else if InStr(what,"soundplay/ding")
				SoundPlay, %A_WinDir%\Media\ding.wav
		}
		;else do nothing
	}
}

Display(WB,html_str) {
	Count:=0
	while % FileExist(f:=A_Temp "\" A_TickCount A_NowUTC "-tmp" Count ".DELETEME.html")
		Count+=1
	FileAppend,%html_str%,%f%
	WB.Navigate("file://" . f)
}
Ill gladly help if need be :)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: Beautiful Examples of GUIs

04 Jul 2014, 07:00

What about posting the codes with the GUIs !?
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Beautiful Examples of GUIs

04 Jul 2014, 09:24

Added Source for Login Gui & Elementary Theme
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
sumon
Posts: 38
Joined: 01 Oct 2013, 14:05
Location: Stockholm, Sweden

Re: Beautiful Examples of GUIs

06 Jul 2014, 14:19

Self-praise is not always the best, but I have direct access to my own scripts, so here are a few I'm proud of the looks of:

Image
Image
Image

Much of this is accomplished through use of pictures as backgrounds and icons, and if I would get back into scripting I think I'd try to learn using an internet window and some nifty javascript.
User avatar
joedf
Posts: 8949
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Beautiful Examples of GUIs

06 Jul 2014, 15:21

Nice!
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: Beautiful Examples of GUIs

07 Jul 2014, 03:07

Thanks jNizM for the codes
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Beautiful Examples of GUIs

14 Jul 2014, 01:50

ComputerStats (Source)

Image
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Beautiful Examples of GUIs

19 Jul 2014, 04:22

This isn't exactly a AHK GUI but an example of a great UI:
Solarmax: Difficult due to the bad UI.
Solarmax 2:Impressive UI just drag it's very simple.
Recommends AHK Studio
User avatar
joedf
Posts: 8949
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Beautiful Examples of GUIs

19 Jul 2014, 20:24

interesting, but lvl 12 is too hard for me :'(
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: Beautiful Examples of GUIs

22 Jul 2014, 11:16

nnnik wrote:This isn't exactly a AHK GUI but an example of a great UI:
Solarmax: Difficult due to the bad UI.
Solarmax 2:Impressive UI just drag it's very simple.
Nice game and UI. lvl 14 is the hardest one for me.
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: Beautiful Examples of GUIs

26 Jul 2014, 10:23

This thread is giving me Déjà vu.
"Beautiful" != "Alternative"
But, perhaps the threads could be merged to lessen the chance one will be buried and forgotten. Just a thought I had.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: Beautiful Examples of GUIs

26 Jul 2014, 13:53

kon
I agree with you. These threads should be merged.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
User avatar
joedf
Posts: 8949
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Beautiful Examples of GUIs

26 Jul 2014, 19:07

- Topics merged -
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: Beautiful Examples of GUIs

29 Jul 2014, 06:11

joedf
Maybe it will be better to move this thread to Scripts and Functions? I think this topic is not offtopic. Maybe also it will be better to make it sticky.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
User avatar
joedf
Posts: 8949
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Beautiful Examples of GUIs

29 Jul 2014, 06:40

- Shadow topic removed -
Oh sorry, vasili111. I have moved the topic already, looks like I left the shadow-topic...
Should it be a sticky? I don't mind, but prefer to have 2 more people saying yes :P
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
hoppfrosch
Posts: 443
Joined: 07 Oct 2013, 04:05
Location: Rhine-Maine-Area, Hesse, Germany
Contact:

Re: Beautiful Examples of GUIs

29 Jul 2014, 07:21

Beauty is in the eye of the beholder - therefore the thread title seems to be to optimistic ;-)

I personally hate for example the flat Win8 design - unless some of my friends consider it to be beautiful ...
User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Re: Beautiful Examples of GUIs

29 Jul 2014, 07:53

jNizM wrote:ComputerStats (Source)
I'd love to see the Class_CtlColors and Class_ImageButton if you have it and are willing to share. :)
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Beautiful Examples of GUIs

29 Jul 2014, 08:13

Class_CtlColors by just me
Class_ImageButton by just me
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 83 guests