Moving/Sliding/Scrolling Text in GUI

Post your working scripts, libraries and tools
DigiDon
Posts: 115
Joined: 19 May 2014, 04:55

Moving/Sliding/Scrolling Text in GUI

16 Jan 2018, 12:23

Image

Hi everyone,

Not sure of the proper English phrase for this : Moving/Sliding/Scrolling Text
I didn't see a complete existing topic on that so here is what I came up with.

I did 4 versions: 2 types (text and statusbar) with 2 variations : Left to Right or Right to Left
Feel free to adjust for more variations (pause at some point, change in the text, whatsoever). The script is quite malleable ;)

Basically it works like this (sorry I did not put comment):
Text control
It moves the text control until it has disappeared and start over
StatusBar
More complicated: it expands or reduces the size allocated to the status bar part and at the end or at the beginning (depending on right or left) it substracts or adds characters to the string until we have it empty or full. Then it starts over.

I am using some functions from jballi's [Library] Fnt v3.0 - Do Stuff With Fonts to get the width of the text
https://autohotkey.com/boards/viewtopic.php?f=6&t=4379

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Scrolling Text
Left to Right

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Right to Left

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Scrolling StatusBar
Left to Right

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Right to Left

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Enjoy ! ;)
Knowledge is knowing a tomato is a fruit; wisdom is not putting it in a fruit salad. (Miles Kington)

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 15 guests