Disabling fade effect on gui animations

Helpful script writing tricks and HowTo's
User avatar
Klark92
Posts: 132
Joined: 18 Jan 2015, 19:33

Disabling fade effect on gui animations

04 Feb 2017, 11:17

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

; Disable Fading Effect On Guis
DllCall("SystemParametersInfo","UInt",0x1043,"UInt",0,"UInt",0)
Progress, 100, Loading, Please Wait...
Progress, Off
DllCall("SystemParametersInfo","UInt",0x1043,"UInt",0,"UInt",1)


You can put that code top of your script and you dont need to call that again...

It removes bad fade effect on gui when we use Imaged Button Class/imaged buttons/checks/radios/progress bars....

Source : https://autohotkey.com/boards/viewtopic ... 23#p129823

This subject is opened by just me's offer...
Last edited by Klark92 on 10 Feb 2017, 10:22, edited 1 time in total.
Smart Kombo 1.0 | One of the best Knight Online's key combo program...
tmplinshi
Posts: 1071
Joined: 01 Oct 2013, 14:57

Re: Removing fade effect/animations on all Guis

04 Feb 2017, 12:23

Nice. Hide the progress window would be better:

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

Last edited by tmplinshi on 04 Feb 2017, 13:25, edited 2 times in total.
Helgef
Posts: 2090
Joined: 17 Jul 2016, 01:02
Contact:

Re: Removing fade effect/animations on all Guis

04 Feb 2017, 12:31

I didn't see any effect at all, on win7.
When needed, I do this,

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


This only affects the windows of choise, while
SystemParametersInfo wrote:Retrieves or sets the value of one of the system-wide parameters.

Edit: Maybe I missed the point, is this related specifically to Progress windows?
User avatar
Klark92
Posts: 132
Joined: 18 Jan 2015, 19:33

Re: Removing fade effect/animations on all Guis

04 Feb 2017, 12:38

@Helgef :

Image

tmplinshi shared this gif before and this fix is for that and similar problem actually :)
Smart Kombo 1.0 | One of the best Knight Online's key combo program...
Helgef
Posts: 2090
Joined: 17 Jul 2016, 01:02
Contact:

Re: Removing fade effect/animations on all Guis

04 Feb 2017, 13:28

Ok, looks like I missed the point, sorry. Thanks for sharing :thumbup:
User avatar
Klark92
Posts: 132
Joined: 18 Jan 2015, 19:33

Re: Removing fade effect/animations on all Guis

04 Feb 2017, 15:11

You're welcome, and thanks tmplinshi for improvemented codes :)
Smart Kombo 1.0 | One of the best Knight Online's key combo program...

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests