Posts: 85
Threads: 16
Joined: Aug 2009
I want to add more style to my dialog i been working on and i was thinking, is it possible to have " Music " play ONCE the dialog is first opened and have it " Automatically Play "
If possible, may i please get an example! And if it is, i would want to you, playlist.com, but if anything else, that would be ok.
Thank you
Posts: 45
Threads: 13
Joined: Jul 2009
Make a playlist, find the option on it to start immediately
or have on init of dialog to act on it
basically take the stand alone and make it off the dialog like in space
just drag the boundaries where you cant even see it
Posts: 85
Threads: 16
Joined: Aug 2009
I'm totaly oblivious!
Example please
Posts: 45
Threads: 13
Joined: Jul 2009
Sorry but i cant give an example
When you make a playlist, click the stand alone code and it will give you a URL
in Dialog Editor, make Web Brower and then make that website in it
Make this web browser so no one can see it and have it act on this web browser when the dialog is started
Posts: 85
Threads: 16
Joined: Aug 2009
Ok i have no idea how to make the playlist show inside the dialog! Thats the reason i asked for a example in the first place! Someone please show me a REAL example, i just dont wanna see words now, i wanna see a visual.
Posts: 12,073
Threads: 140
Joined: Dec 2002
Example with embedded playlist.com video player. Could not test with audio because does not work in my country.
To hide the web browser control, in dialog editor uncheck WS_VISIBLE style.
Replace the HTML with the HTML that you generate for your playlist in playlist.com.
Function Dialog82
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str ax3SHD
ax3SHD=
;<div style="text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;"> <object width="435" height="550"> <param name="movie" value="http://www.myspaceplaylists.com/mc/SearchPlayerApp.swf"></param> <param name="flashvars" value="mywidth=435&myheight=550&playlist_baseurl=http%3A%2F%2Fwww.myspaceplaylists.com%2Floadplaylist.php%3Fe%3D1%26playlist%3D&;playlist_id=404926232&wid=vos"></param></param> <param name="wmode" value="transparent"></param> <embed style="width:435px; visibility:visible; height:550px;" src="http://www.myspaceplaylists.com/mc/SearchPlayerApp.swf" width="435" height="550" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" border="0" flashvars="mywidth=435&myheight=550&playlist_baseurl=http%3A%2F%2Fwww.myspaceplaylists.com%2Floadplaylist.php%3Fe%3D1%26playlist%3D&playlist_id=404926232&wid=vos"/> </object> <br/> <a href="http://www.mysocialgroup.com/searchbeta/videos#video"><img src="http://www.myspaceplaylists.com/mc/images/create_video_black.jpg" border="0"></a> <a href="http://www.playlist.com/playlist/404926232/standalone" target="_blank"><img src="http://www.myspaceplaylists.com/mc/images/popout_black.jpg" border="0"></a> <a href="http://www.mysocialgroup.com"><img src="http://www.myspaceplaylists.com/mc/images/pl-logo-ico-black.jpg" border="0"></a> </div>
if(!ShowDialog("Dialog82" &Dialog82 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 344 393 "Dialog"
;1 Button 0x54030001 0x4 118 378 48 14 "OK"
;2 Button 0x54030000 0x4 168 378 48 14 "Cancel"
;3 ActiveX 0x54030000 0x0 0 0 344 374 "SHDocVw.WebBrowser"
;END DIALOG
;DIALOG EDITOR: "" 0x2030108 "*" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Posts: 85
Threads: 16
Joined: Aug 2009
Thanks gin! This is exactly what i was needing to accomplish! Thank you very much 8)
Posts: 85
Threads: 16
Joined: Aug 2009
Thanks gin! This is exactly what i was needing to accomplish! Thank you very much 8)
Posts: 85
Threads: 16
Joined: Aug 2009
Ok i got it where i want this now but now ive run into another bloody problem! I have it start automatically as i wish but NOW i cant seem to find away to make it stop playing if someone wishes to stop listening to it!
This playlist is going to be hidden in my final completion of my project and what im trying to do is now have a " StopMusic" button, but ive tryed HTML, But, Id, etc and seem to not find a possible solution to get attention to the play button, i would assume html would highlight the button once the action is trigged via the function i assign it to, but its not possible!
Is there a way to fix this gin ?
Function Dialog82
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str ax3SHD
ax3SHD=
;<div style="text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;"> <object width="435" height="270"> <param name="movie" value="http://www.profileplaylist.net/mc/mp3player_new.swf"></param> <param name="allowscriptaccess" value="never"></param> <param name="wmode" value="transparent"></param> <param name="flashvars" value="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_black.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.indimusic.us%2Floadplaylist.php%3Fplaylist%3D69581931%26t%3D1252146333&wid=os"></param> <embed style="width:435px; visibility:visible; height:270px;" allowScriptAccess="never" src="http://www.profileplaylist.net/mc/mp3player_new.swf" flashvars="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_black.xml&mywidth=435&myheight=270&playlist_url=http://www.indimusic.us/loadplaylist.php?playlist=69581931&t=1252146333&wid=os" width="435" height="270" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" border="0"/> </object> <br/> <a href="http://www.profileplaylist.net"><img src="http://www.profileplaylist.net/mc/images/create_black.jpg" border="0" alt="Get a playlist!"/></a> <a href="http://www.mysocialgroup.com/standalone/69581931" target="_blank"><img src="http://www.profileplaylist.net/mc/images/launch_black.jpg" border="0" alt="Standalone player"/></a> <a href="http://www.mysocialgroup.com/download/69581931"><img src="http://www.profileplaylist.net/mc/images/get_black.jpg" border="0" alt="Get Ringtones"/></a> </div>
if(!ShowDialog("Dialog82" &Dialog82 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 344 200 "Dialog"
;1 Button 0x54030001 0x4 246 164 48 14 "OK"
;2 Button 0x54030000 0x4 244 182 48 14 "Cancel"
;3 ActiveX 0x54030000 0x0 20 10 282 122 "SHDocVw.WebBrowser"
;4 Button 0x54032000 0x0 30 144 76 38 "Stop Music"
;END DIALOG
;DIALOG EDITOR: "" 0x2030108 "*" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Posts: 12,073
Threads: 140
Joined: Dec 2002
Unload page. Don't know other ways.
str emp.setwintext(id(3 hDlg))
Posts: 85
Threads: 16
Joined: Aug 2009
str emp.setwintext(id(3 hDlg))
This is not working properly, ive inputed it and it will not unload the page at all, well it will, but it wont stop the music, this is doing exactly what the enable/diable buttons do that i was afraid of them doing in the first place.
Ive been told i can use c++ software to intergrate with qm, but i dont want to do that because it requires to much work, id rather have an easier way.
I cant send no attention at all to the play button, cant have the button highlighted at all, but the only thing im able to do is have the mouse clicks go right to it but the disadvantage is that the dialog wont be in the same place on my friends computer.
ARGH i would assume automation programs would have what i need, its possible in c++ but its to hard. Is there no possible solution to this simple problem..
Posts: 12,073
Threads: 140
Joined: Dec 2002
You can play a local or remote mp3 file with Play function. Look in floating toolbar.
Posts: 85
Threads: 16
Joined: Aug 2009
Ok im sorry but this simple thing is becoming more of a problem then i expected!
This is what im trying to do!
I got my dialog i made with various things on it, i have the playlist hidden within the dialog, so, once the dialog is open, the music automatically plays,
i also added a button to make the music stop BUT i dont have anything to make it stop yet because im not able to find anything to make it stop,
i looked inside the floating toolbar and all i found was something with sound which is only local on ones computer, it didnt provide nothin to play a link from a
website. Lol all im trying to do is make this bloody thing shut off when my users want it to.
Posts: 85
Threads: 16
Joined: Aug 2009
I cant find nothin either in the MSDN library or on this forum on how to gather focused attention on the play button and hit it to make it shut off...
Posts: 85
Threads: 16
Joined: Aug 2009
K, im getting very mad and frustrated because since my past post on this forum, ive been searching non stop for something to make this bloody thing stop when i want it to and yet, im still not having no success!
There has to be something inside of quick macros that should deal with something like this, I know this is html, but the html inside qm will only go so far, the whole entire playlist is written in html but yet when i try to use html coding inside qm, it doesnt work. god this is so very difficult for some so very easy project.... is there ANYONE who knows what to do. im wasting to much time on this and cant find noone to help me with the support i expect.
ALL I NEED IS A STOP BUTTON TO STOP THE PLAYER, why is this so hard to achieve when its so easy to speak it !!!!!!!!!!!!!!!!!
Posts: 45
Threads: 13
Joined: Jul 2009
Here is my advice
PUT PLAYLIST I DIALOG
1 Get the Stand Alone URL
2 Make a Web Browser in the Dialog
3 Put The Playlist In It
STOPPING IT
lets say he id of the web browser is 5
make something like this
str stopmusic = "www.google.com"
stopmusic.setwintext(id(5 hDlg))
Try that and let me know
Here is an your example i made that is kind of like making a new webpage appear so the OLD one(the playlist) will go away
Function Dialog82
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str ax3SHD
ax3SHD=
;<div style="text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;"> <object width="435" height="270"> <param name="movie" value="http://www.profileplaylist.net/mc/mp3player_new.swf"></param> <param name="allowscriptaccess" value="never"></param> <param name="wmode" value="transparent"></param> <param name="flashvars" value="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_black.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.indimusic.us%2Floadplaylist.php%3Fplaylist%3D69581931%26t%3D1252146333&wid=os"></param> <embed style="width:435px; visibility:visible; height:270px;" allowScriptAccess="never" src="http://www.profileplaylist.net/mc/mp3player_new.swf" flashvars="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_black.xml&mywidth=435&myheight=270&playlist_url=http://www.indimusic.us/loadplaylist.php?playlist=69581931&t=1252146333&wid=os" width="435" height="270" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" border="0"/> </object> <br/> <a href="http://www.profileplaylist.net"><img src="http://www.profileplaylist.net/mc/images/create_black.jpg" border="0" alt="Get a playlist!"/></a> <a href="http://www.mysocialgroup.com/standalone/69581931" target="_blank"><img src="http://www.profileplaylist.net/mc/images/launch_black.jpg" border="0" alt="Standalone player"/></a> <a href="http://www.mysocialgroup.com/download/69581931"><img src="http://www.profileplaylist.net/mc/images/get_black.jpg" border="0" alt="Get Ringtones"/></a> </div>
if(!ShowDialog("Dialog82" &Dialog82 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 344 200 "Dialog"
;1 Button 0x54030001 0x4 246 164 48 14 "OK"
;2 Button 0x54030000 0x4 244 182 48 14 "Cancel"
;3 ActiveX 0x54030000 0x0 20 10 282 122 "SHDocVw.WebBrowser"
;4 Button 0x54032000 0x0 30 144 76 38 "Stop Music"
;END DIALOG
;DIALOG EDITOR: "" 0x2030108 "*" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,
,case 4
,str stopmusic = "www.google.com"
,stopmusic.setwintext(id(3 hDlg))
,
,
,case IDOK
,case IDCANCEL
ret 1
Posts: 12,073
Threads: 140
Joined: Dec 2002
On my computer, assigning empty string also would open empty page and stop playing. I'm using IE8. Also, I tested only with video playlist.
Html and acc don't work here because the whole player is 1 html element.
If will not stop playing even after you open other page (google or empty), try to destroy the control.
DestroyWindow id(3 hDlg)
Or, click some html element below the player. For example, this works:
Htm el=htm("IMG" "http://www.myspaceplaylists.com/mc/images/pl-logo-ico-black.jpg" "" hDlg 0 2 0x921)
el.Click
Or insert a link in the HTML code and click it. Insert this below the long HTML code line:
Function Dialog82
;<div><a href="about:blank">Stop</a></div>
It adds a Stop link, and you can find it with htm, and then el.Click.
Posts: 45
Threads: 13
Joined: Jul 2009
I didn't try a blank page, i just did google because i knew it would go away
Thanks for the info bro
|