Jump to content

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

SplashImage Maker - WYSIWYG


  • Please log in to reply
7 replies to this topic
Rajat
  • Members
  • 1904 posts
  • Last active: Jul 17 2015 07:45 AM
  • Joined: 28 Mar 2004
If you remember my SplashImage Sizer script here, then you'll know what this one is about.

Accept it! ..Splash windows look cool, and are useful too. But sizing them right to fit the maintexts, subtexts, images etc. and then making them look good is time consuming... so here's something to help u. Use this script to put in Text for Splash and size it using arrow keys... and when u get it right, press escape and the cmd reqd will be copied to clipboard... simple!... Its completely "what you see is what you get"

Hint : Keeping the window Title field blank generates a Splash without window titlebar (looks nice).

;The step-size per change (in pixels)
Step = 5

Gui, Add, Text, x6 y5 w100 h20, Window Title
Gui, Add, Text, x6 y55 w100 h20, Main Text
Gui, Add, Text, x6 y125 w100 h20, Picture
Gui, Add, Text, x6 y175 w100 h20, Sub Text

Gui, Add, Edit, x6 y25 w220 h20 vSTitle,
Gui, Add, Edit, x6 y75 w220 h40 vMText,
Gui, Add, Edit, x6 y145 w180 h20 ReadOnly vPicFile, 
Gui, Add, Button, x196 y145 w30 h20, ..
Gui, Add, Edit, x6 y195 w220 h40 vSText,

Gui, Add, Button, x36 y245 w60 h20 Default, OK
Gui, Add, Button, x136 y245 w60 h20, Cancel

Gui, Show, x255 y75 h276 w233, Splasher
Return

ButtonCancel:
GuiClose:
	ExitApp


Button..:
	FileSelectFile, SelFile,,, Select Picture File
	GuiControl,, PicFile, %SelFile%
Return


ButtonOk:
	Gui, Submit
	SWidth = 150
	SHeight = 100
	IfEqual, STitle,
		Options = B1
	SplashImage,%PicFile%, W%SWidth% H%SHeight% %Options%,%SText%,%MText%,%STitle%
	HotKey, Up, Up
	HotKey, Down, Down
	HotKey, Left, Left
	HotKey, Right, Right
	HotKey, Esc, Esc
Return


Up:
	IfGreaterOrEqual, SHeight, %Step% 
		SHeight -= %Step%
	SplashImage,%PicFile%, W%SWidth% H%SHeight% %Options%,%SText%,%MText%,%STitle%
Return


Down:
	SHeight += %Step%
	SplashImage,%PicFile%, W%SWidth% H%SHeight% %Options%,%SText%,%MText%,%STitle%
Return


Left:
	IfGreaterOrEqual, SWidth, %Step%
		SWidth -= %Step%
	SplashImage,%PicFile%, W%SWidth% H%SHeight% %Options%,%SText%,%MText%,%STitle%
Return


Right:
	SWidth += %Step%
	SplashImage,%PicFile%, W%SWidth% H%SHeight% %Options%,%SText%,%MText%,%STitle%
Return


Esc:
	SplashImage, Off
	StringReplace, MText, MText, `n, ``n, A
	StringReplace, SText, SText, `n, ``n, A
	SetEnv, ClipBoard, SplashImage`, %PicFile%`, W%SWidth% H%SHeight% %Options%`, %SText%`, %MText%`, %STitle%`n
	StringReplace, ClipBoard, ClipBoard, %A_Space%`,, `,, A
	SplashTextOn, 273, 46, Done!, The required command is copied to ClipBoard.
	Sleep, 500
	ExitApp
Return

MIA

CleanNews.in : Bite sized latest news headlines from India with zero bloat


BoBo
  • Guests
  • Last active:
  • Joined: --
Any special requirements ? +1.0.2x ??? :twisted:

Rajat
  • Members
  • 1904 posts
  • Last active: Jul 17 2015 07:45 AM
  • Joined: 28 Mar 2004
I usually have the latest version of ahk, so if anyone can't get any of my scripts to work then first check that u have atleast a version thats not older than the timestamp of post or last edit time.

MIA

CleanNews.in : Bite sized latest news headlines from India with zero bloat


BoBo
  • Guests
  • Last active:
  • Joined: --
Thx. :wink:

BoBo
  • Guests
  • Last active:
  • Joined: --
That T:idea:8)L = C:D:DL . Thx Rajat.

Nobody
  • Guests
  • Last active:
  • Joined: --
Working great

RandyTM
  • Members
  • 3 posts
  • Last active: Sep 26 2007 02:10 PM
  • Joined: 14 Jun 2006
Looks cool, thanx.. :)

Maybe its an idea to add an option where you select a specific height and width? But, if you dont add an image to the splash window, then you should be able to choose for automatic size like it does now.

Good work, though!

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
Doesnt work for me, i press escape and nothing is copied to the clipboard
ooops ignore this, it works fine :oops: :oops: :oops:
"Choose your parents wisely"