Help with Opening Spotify and start playlist
Moderators: Dorian (MJT support), JRL
Re: Help with Opening Spotify and start playlist
Why does the script jump back to MS at the end instead of setting Spotify as active window?
- Dorian (MJT support)
- Automation Wizard
- Posts: 1356
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Help with Opening Spotify and start playlist
I'm guessing you're running it from the editor. That's to help debug. Exit the editor and see if it still does that.
Yes, we have a Custom Scripting Service. Message me or go here
Re: Help with Opening Spotify and start playlist
It works but it sets Spotify as active even if I click yes when the script asks me if I wanna or not wanna continue what I did before the script started!
- Dorian (MJT support)
- Automation Wizard
- Posts: 1356
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Help with Opening Spotify and start playlist
Your problem there is this line :
Which should be :
...and always remember the Endif
Code: Select all
If>%strResponse% = "Yes"
Code: Select all
If>%strResponse%=YES
Code: Select all
Ask>Vill du fortsätta med det du gjorde innan Spotify?,strResponse
If>%strResponse%=YES
MDL>yes
Else
MDL>no
Endif
Yes, we have a Custom Scripting Service. Message me or go here
Re: Help with Opening Spotify and start playlist
What do u mean with ”MDL” ?
- Dorian (MJT support)
- Automation Wizard
- Posts: 1356
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Help with Opening Spotify and start playlist
MessageModal. To demonstrate the correct usage of If/Else/Endif. I suggest trying the code I provided so you can see exactly how it works.
Yes, we have a Custom Scripting Service. Message me or go here
Re: Help with Opening Spotify and start playlist
How would your full code look like?
Re: Help with Opening Spotify and start playlist
Hello!
I am finally done with my macro and I finally finished my macro!
This is the final code:
I am finally done with my macro and I finally finished my macro!
This is the final code:
Code: Select all
run>Spotify.exe
WaitWindowOpen>Spotify Premium
Wait>10
UIFocus>{"Spotify Premium"},{"Niall Horan – Flicker (Deluxe)"}
Wait>1
UIClick>{"Spotify Premium"},{"Niall Horan – Flicker (Deluxe)"}
Wait>5
UIFocus>{"Spotify Premium"},{"Niall Horan – Flicker (Deluxe)"}
Wait>1
UIClick>{"Spotify Premium"},{"On The Loose"}
SetFocus>Spotify Premium
UIClick>{"Spotify Premium"},{"SPELA UPP"}
SetVolume>0
press ctrl
press left *20
release ctrl
SetVolume>20