[REQUEST] SplashTextOn/Off if script use

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Marvin1023
Posts: 45
Joined: 10 Nov 2015, 12:49

[REQUEST] SplashTextOn/Off if script use

26 Oct 2016, 19:01

Hello,

it is possible to display [SplashTextOn] if the script is in use (thread)
and [SplashTextOff] if the script is not use (thread).

Exemple:
If i run this script:

Code: Select all

F1::
Sleep 10000
Return
a SplashTextOn/Off appears and disappears automatically.
Thank you :D
Asus Maximus VIII Extrême - DDR4 16Go - Intel Core i7 - GTX 1080
User avatar
tidbit
Posts: 1273
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [REQUEST] SplashTextOn/Off if script use

26 Oct 2016, 20:41

before the sleep, show the splash, after the sleep, turn it off.

it won't be built-in. not everyone (almost no one?) wants a random window popping up whenever they use Sleep-like commands
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
Marvin1023
Posts: 45
Joined: 10 Nov 2015, 12:49

Re: [REQUEST] SplashTextOn/Off if script use

26 Oct 2016, 21:20

i have a script with GoTo and GoSub.
I wish show SplashTextOn during all the action.

a label may be use by another goto or gosub.

I do not if this is possible.
Can be OnMessage
Asus Maximus VIII Extrême - DDR4 16Go - Intel Core i7 - GTX 1080
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: [REQUEST] SplashTextOn/Off if script use

27 Oct 2016, 12:46

Something like this is probably your best option...

Code: Select all

F1::
Gosub SplashToggle
Sleep 10000
Gosub SplashToggle
Return

SplashToggle:
SplashOn := !SplashOn
If SplashOn
	SplashTextOn, 200, 25, , Script is running!
Else
	SplashTextOff
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Hansielein, Lpanatt and 325 guests