Transparent color in a SplashScreen

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Transparent color in a SplashScreen

Post by Aaron » Wed Sep 03, 2008 8:19 pm

I found this post - http://www.mjtnet.com/forum/viewtopic.p ... ght=#15951 Posted: Sat Apr 21, 2007 9:36 am,
where Marcus Tettmar stated the below quote.
"The lower left pixel of the bitmap is reserved for the "transparent" color. Any pixel in the bitmap which matches that lower left pixel will be transparent."
My question is if there is a way to use the transparent color in a SplashScreen with an image?, or will this only work with buttons?.
If it will only work with buttons, could you get this to work with SplashScreens in a future version of Macro Scheduler.?

This is something Ive been wanting to do in Macro Scheduler for some time now.
In the past I had to use Visual studio to make a window like this, but it would solve a few issue I'm having with Visual basics if I could just scrap Microsoft Visual Basics all together.
Also there is the issue of needing to install Microsoft .Net Framework on any computer that my script is running on.
This would be greatly appreciated if I could get your input and maybe a solution.

Thank You Marcus
Aaron

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Sep 08, 2008 12:47 pm

Will this do what you are requesting?

Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Response to JRL on transparency

Post by Aaron » Tue Sep 30, 2008 7:01 pm

JRL


Sorry I took so long to respond, Ive been in the hospital for the last three weeks, feeling much better now.

What I need is a splash screen "with the frame being transparent" and the
inside white background color being transparent. The image I want to see is red.

And like your one example I need the transparent frame and background color to let me click through them

I was also wondering if you could tell me where I might find more info on this subject and what each step of the code is doing.


Thank You so much.
Aaron

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Sep 30, 2008 9:18 pm

Ive been in the hospital for the last three weeks, feeling much better now.
Wow! Glad you're feeling better.
I was also wondering if you could tell me where I might find more info on this subject and what each step of the code is doing.
That's a difficult question to answer. I don't know that I understand the Microsoft library functions well enough to provide any more explanation than I already have under Scripts and Tips. If you read through the scripts you'll see I've placed comments in all of them and other than restating what the comments already say, I don't think I can be more clear.

You can get more information about the library functions from the Microsoft website and from the internet in general by searching for the individual function names, for example search for "SetLayeredWindowAttributes"

Macro Scheduler help is very good to help you understand what each line of Macro Scheduler code is doing. If you paste one of these scripts into the Macro Scheduler editor, put the cursor on any line and press the F1 key, you will be presented with Macro Scheduler help for the function on that line. Couldn't be any easier.

Hope this is helpful and hope you're feeling 100% soon.
Dick

Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Thanks JRL

Post by Aaron » Tue Sep 30, 2008 10:33 pm

Thank you JRL, I will look into those two options.
Aaron

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts