Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[ Proof Of Concept ] Scrollable image list ( supports .gifs )


  • Please log in to reply
17 replies to this topic
Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012

This is just a small proof of concept. Fully working code that puts an image list control in your GUI ( can be any GUI and size etc. ).

It uses MSHTML and embeds a website into the GUI with images.

 

It supports .gifs and alpha channel.

 

 

Here is everything you need. Enjoy.

 

Select a folder with image in it and it will load them up. :D  it also shows the directory of the one you clicked on.

Spoiler

Example of it in use.

 

Capture.png


Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.

 


ozzii
  • Members
  • 167 posts
  • Last active: Oct 30 2015 04:54 PM
  • Joined: 23 Mar 2011

Thanks,

 

3 suggestions if I may:

-have a filter for the more often used image extensions

-when the gui is closed to make an exitapp

-have the folder recursive



Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012

Thanks for the suggestions ozzii, I made all the changes and updated the main thread.

 

This is only really meant for a test code ( why i called it a proof of concept ). But feel free to [ab]use the code an any way you want. ;)


Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.

 


chaidy
  • Members
  • 57 posts
  • Last active: Oct 21 2015 05:53 PM
  • Joined: 20 Apr 2010

nice work!



Learning one
  • Members
  • 1483 posts
  • Last active: Jan 02 2016 02:30 PM
  • Joined: 04 Apr 2009

nice work!

+1 ;)


My Website • Recommended: AutoHotkey Unicode 32-bit • Join DropBox, Copy


Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012
Thanks for all the positive feedback.. Feel free to ab[use] the code!
 
I also changed it around a bit. You can click to select one ( highlight ) and now double click to activate.

Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.

 


RHCP
  • Members
  • 1228 posts
  • Last active: Apr 08 2017 06:17 PM
  • Joined: 29 May 2006

In your example picture, what code did you use to create the "d:\pictures\epic" box, and browse button?

As it is rather aesthetically pleasing!



Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012

I just used an edit control, and a text control with a glabel.

Gui, Font, cFFFFFF s10 bold

Gui, Color, 0x333333, 0x333333

Gui, Add, Edit, w400, Some dir						; Edit
Gui, Add, Text, gPressed xp410, Button`n______				; Text ( acting as a button )

Gui, Show, w520 h100
Return

Pressed:
	MsgBox, Pressed the button
Return

Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.

 


fickle87
  • Members
  • 4 posts
  • Last active: Aug 23 2015 08:05 AM
  • Joined: 10 Feb 2013
great!


Is it possible to remove one of the image,too?

Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012

Hi fickle87, welcome to the AutoHotkey community and forum.

 

I can put that in, ill update the code when im done.


Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.

 


Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012

Updated the main thread, with the changed i made a while ago. I also added in what fickle87 suggested.


Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.

 


fickle87
  • Members
  • 4 posts
  • Last active: Aug 23 2015 08:05 AM
  • Joined: 10 Feb 2013

wow... It is exactly what i wanted!

 

and thank you !!!



cixiplc
  • Members
  • 2 posts
  • Last active:
  • Joined: 17 Oct 2014

nice! thanks



dsewq1LYJ
  • Members
  • 203 posts
  • Last active: May 12 2018 05:04 AM
  • Joined: 16 Jul 2014

Thanks for the suggestions ozzii, I made all the changes and updated the main thread.

 

This is only really meant for a test code ( why i called it a proof of concept ). But feel free to [ab]use the code an any way you want. ;)

You just like hack in AHK.

I can not believe that's written in it



Sjc1000
  • Members
  • 572 posts
  • Last active: Mar 11 2017 11:41 AM
  • Joined: 06 Feb 2012

Thanks for all the feedback :p

 

If you guys like this, i've been considering making a whole GUI class with MSHTML. If you like the idea i might just do it.


Sjc1000 - Insert inspirational quote here!

PLEASE find me on the IRC if you have questions. I'm never on the forum anymore.