PDA

View Full Version : Working on an XM solution - Anyone wanna help test it



Kurto2021
08-10-2011, 05:42 AM
so far I have just worked on getting it to open the web based player to the channel i want. I am going to work on getting it to prevent the timeouts as well. This is just my first run I will clean it up and make it better.

If I am wasting my time let me know.

DELETED

just enter the channel you want your user ID and password....I made the URL an input but you shouldn't have to mess with it unless XM changes it.

crap use the mouse to navigate from box to box...tab doesn't work



Going to just update the first post with newer versions.....getting closer to a finished product....2 timers set up....Days of the week still not checked but AM PM should work now.


http://www.megaupload.com/?d=ZST4L0LX

Kurto2021
08-10-2011, 06:48 AM
doesn't work with IE....going to fix that....works with firefox


My plan is to make it tune first...once I get the tuning working on all browsers then I can install some timers and different channels.

bookooc
08-10-2011, 02:08 PM
I'll take a look at later this week. I am really bummed I can't record Howard Stern anymore.

Kurto2021
08-10-2011, 06:23 PM
I got it working pretty damn good....opens browser ever hour sends a command to the browser for more info then when scheduled recording is done it closes the browser.

I have it set up as a two step process right now...you have to set what channel and how long you want it to record...input your user ID and password....the url is input by default but can be changed if SXM ever changes it... Once you run that app and set up what you want you simply close it.....then go to scheduled tasks and tell it when to launch the exe file. You also have to have Replay AV set up as well but it should work pretty good.

Kurto2021
08-12-2011, 07:37 AM
** updated link in first post **

this should be updated works a bit better....for a 1 hour show....60 minutes for 2 hours 120 minutes......you get the idea

when I get it done you won't have to hit go to get it to go....this is just for testing

srw1138
08-12-2011, 02:58 PM
The exe wont start on Windows 7 Professional 32-bit. Any suggestions?

Kurto2021
08-12-2011, 07:20 PM
compiler was set to 64 bit......fixed it......

Also this is going to take a few days to get working and implemented 100% I am pretty much just posting it after I mess with it each time.

I have implemented the timers but right now only show #1 is getting coded.....don't bother inputting days of the week. That is my next goal should be done tomorrow....I just want some others to use it and let me know how it works.....it works a lot on timing...my machine is pretty fast so I wanted to see it on some slower machines to see how it works.

http://www.megaupload.com/?d=SDN92ULR

Kurto2021
08-12-2011, 07:22 PM
right now the clock timer is set to 12 hour days but I have no AM or PM button.....would we rather have an AM PM toggle or use a 24 hour time input.

srw1138
08-13-2011, 05:03 PM
I am fine with an AM/PM button.

Looks like you have it set to default to the Internet Explorer. We could use an option to select the path of the browser. For instance, while I have IE 8 installed on my machine, it's under a different path than you have I presume.
Here is the error message I get;

Windows cannot find 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'. Make sure you have typed the name correctly, and then try again.

My version of IE is under C:\Program Files\Internet Explorer\iexplore.exe and the OS wont let me change the folder name to Program Files (x86) nor would I feel comfortable doing so.

Kurto2021
08-13-2011, 07:27 PM
shellexecuting now without the path...it should work regardless of version.
http://www.megaupload.com/?d=0D1E4755

dfelix419
08-14-2011, 02:09 AM
Could you put the file somewhere where people can access it without using that spam site Megaupload? No, I do not want to set up a premium account to get access to your link..

Kurto2021
08-14-2011, 05:17 AM
you can't wait 30 seconds to get it free?

srw1138
08-14-2011, 11:20 AM
Nice. Looks like it is working for me. On the first attempt it put my password into the userid box and froze. On the second attempt it filled in all the right fields and logged into the player.

I'll try to make a recording tonight. Curious, will it keep a session 'alive' for longer than 90 minutes? Doesn't the XM player timeout if someone doesn't move the mouse every 90 min?

Kurto2021
08-14-2011, 12:32 PM
The issue you had is with timing....I currently have it set up like this
1. Open internet explorer to the SXM page
2. Sleep the program for 10,000 miliseconds
3 Send the tab command 8 times (should take you to the login box)
4. Send User ID
5 Tab 1 time
6. Send Password
7. Tab 1 time then press space bar
8. Sleep program for 10,000 miliseconds
9. Tab 2 times
10. Send channel number and press enter
11. sleep 10,000 miliseconds
12. tab 1 time to land on more info box
13 sleep 30,000 miliseconds ( I have to sleep here because I need this process to take longer than 1 minute or else it will open a second window since the time will still be the same as what was scheduled)
14. determine the duration of the recording and if it greater than 1 hour sleep for an hour
15. send space bar command after an hour
16. sleep the program for another hour then send space bar
17. Keep repeating until timer is less than 1 hour... then exit

if you notice what happens....once I tune the channel I tab over to the more info box.....every 60 minutes I send a space bar command which calls up more info. Should hopefully keep it from timing out....currently I am using some sleep commands to pause the script while I wait for the time to pass.....the problem with using sleep commands is that essentially the program is asleep and you can't exit out of it.....you have to end the task....still working on a way to keep it paused but give you the ability to hit escape and exit out of it....


I am working on days of the week right now.....I think I got that working so far but it actually requires a lot of code to execute it.

thehobster
08-14-2011, 06:20 PM
No joy here:

Win 7 Ultimate x64
IE 9 -
Adobe Flash 10.3.183.5

Dual monitor setup: IE launches on screen 2, your appl running on screen 1


- IE launches
- after a pause, ID and password are in the password field (OK, I think it's both because there are more *s than either one)

- after another pause, the address bar drops down showing history and some previous URL is chosen
- or -
- IDPASSWORDCHANNEL# are pasted into the address bar.

Moving IE to launch on screen 1 with XM.exe made no difference.
Reboot made no difference.
Disabled every option in IE except menu bar made no difference.
Uninstalled XMTuner and SiriusXMStreamer made no difference.

Application wouldn't close without force terminate process. This could be because I closed IE before the duration was up (2 minutes - just for testing). Next time, I left IE open and closed XM.exe after 2 minutes without problem.

BTW - manual process works as documented above, but XM.exe isn't doing the same thing on my system. Another timing issue?

If you have any kind of diagnostic (logging, tracing windows message queue, etc), I'll give it a go - just let me know when and where to get it.

Oh, I'm traveling most of the week so I may not be able to re-test until Friday unless I get some time at night.

If this works, I'll even paypal you a few bucks

srw1138
08-14-2011, 06:58 PM
Boo Yaa! It worked perfectly for me this evening. I got a 3 hour recording from the player down to my machine. Perfect!

Kurto2021
08-14-2011, 07:07 PM
hobster....that is what I am looking for.....can you go to the siriusXM site with IE9 and then start hitting tab and tell me how many times you have to hit it to get to the login box

I can probably add a toggle box for IE 7, 8, and 9 if they are different. IE 6 users are just screwed.


Nice so the hitting more info prevent you from getting kicked

Another option I can do is create a configuration page where I will input the default number of tabs and the pauses that I used....if you are on a slower machine you can then adjust the pauses and number of tabs to whatever you want....it would also help if SXM decides to change the page as well.

srw1138
08-14-2011, 07:22 PM
I did notice that when exiting the application and restarting, it did not keep my selected days of the week. I had to re-select them upon restarting the app.

Also, can you do a 'echo with dots' for the password field so it's not always displaying my password for the whole world to see.

I use the same password for all my porn sites. I'd hate it if the gf saw that one... jk.

Kurto2021
08-14-2011, 07:57 PM
days of the week is not implemented yet .... I have the code working for it here but was trying to get the sleep issue fixed before posting it....that is proving harder than I thought.

::::::EDIT:::::
Password is now masked and days of the week should work.
http://www.megaupload.com/?d=XUJ1BARA

Kurto2021
08-15-2011, 06:24 AM
found a bug in it....if the time is say 8:30 you need to enter it as 08:30.....I will try and solve this later today but for now that is the issue.

Kurto2021
08-15-2011, 08:02 PM
I think we are nearing completion stages......I hope someone is using this...not a whole bunch of responses.

I have a toggle switch for IE8 and IE9....if you are on IE7 you suck and need to upgrade unless IE7 works then I guess we are good.

http://www.megaupload.com/?d=ZST4L0LX

srw1138
08-16-2011, 07:34 PM
Testing the latest version on my Win 7 machine with IE 8

Question; the final message says "Sending keystroke to IE in 1 hour. Would you like to exit the timer?."

I am guessing this is the keystroke to keep the timeout from happening? Is 1 hour too long of a time to wait for the keystroke to occur?

If I press OK does the keystroke not happen?

Kurto2021
08-16-2011, 07:52 PM
that was the solution I came up with was to pop up a message box that says if you hit OK you exit out...otherwise you can't exit out of the timer without ending the task...the solution....don't hit OK....The timer is set to 1 hour because I thought the time out was 90 minutes.

srw1138
08-17-2011, 10:04 AM
FYI. Last night I was able to get a 4 hour recording, without any obvious issues. Thanks for all your hard work on this!

srw1138
08-17-2011, 03:51 PM
Hmmm, so today's recording attempt had a different result. When I got home the xmplayer was still running and putting out sound. But the file created by Replay AV was only 2 minutes 40 seconds long, even though the Replay AV log reported that it recorded for 4 hours and 1 minute. So this would seem to be an issue with Replay AV and not the new script.

Is anyone else here making recordings? and what kind of results are you seeing?

srw1138
08-18-2011, 08:15 AM
Another recording test last night with 2 different results.

2 machines both running Win7:
Machine #1 with IE 8 yielded a 1 hour 28 minutes recording, out of a scheduled 4 hours.
Machine #2 with IE 9 yielded a 4 hour recording, out of a scheduled 4 hours.

At the outset it seems IE 9 option is a little more stable.

srw1138
08-18-2011, 04:51 PM
Today's (8/18) recording test;

2 machines both running Win7:
Machine #1 with IE 8 yielded a 13 minute 13 second recording, out of a scheduled 4 hours.
Machine #2 with IE 9 yielded a 13 minute 13 second recording, out of a scheduled 4 hours.

Same result on both machines which seems strange.

Machines are in different rooms, machine 1 is a laptop. Machine 2 is a desktop. They are recording at the same time, on the same channel, using the same XM account.
Machine 1 was still playing the online player and running the script when I checked it after the 4 hour mark.
Machine 2 was no longer running the script or XM player after the 4 hour mark.

srw1138
08-19-2011, 06:42 PM
Updated RAV to 8.83 and reentered by license code.

Overnight recording test on 8/19;
2 machines both running Win7:
Machine #1 with IE 8 yielded a 45 minute 0 second recording, out of a scheduled 4 hours.
Machine #2 with IE 9 was not scheduled to record.

Today's daytime (8/19) recording test;

2 machines both running Win7:
Machine #1 with IE 8 yielded a 13 minute 11 second recording, out of a scheduled 4 hours. Online player was still running when i checked it after the 4 hour mark.
Machine #2 with IE 9 yielded a 4 hour recording, out of a scheduled 4 hours.

I believe I am getting more consistent results out of the machine with IE 9 installed.
I did notice on machine #1, the display was set to power off after several hours, which roughly coincided with the time that the recordings were ending. I disabled that option on the display. The two should not be related, but you never know.

thehobster
08-22-2011, 11:37 AM
Ok - D/L new version. ID/PW problem is fixed (running IE9). Timer seems to work to start. Haven't tested any type of duration yet.

I have it set to record Jay Thomas today at 2p Central for 3 hours. I'll post results later (maybe tonight).

thehobster
08-23-2011, 10:47 AM
Recorded JT on Stars Too yesterday. Worked like a champ. Going for second time later today.

One thing (not related to this): the volume on the player is low by default. Any idea how to make the default volume higher? I tried setting it higher then opening and closing the browser. I also tried setting the system volume higher when the player opened. Neither worked.

Oh, Kurto2010 - you're my hero.

srw1138
08-23-2011, 04:35 PM
Overnight on 8/23
Machine #2 with IE 9 yielded a 2 hour 33 minute recording, out of a scheduled 4 hours.

Daytime on 8/23
Machine #2 with IE 9 yielded a 2 hour 34 minute recording, out of a scheduled 4 hours.

Weird. I dont get it. I'll keep testing here and there. Thank you again Kurto.

thehobster
08-24-2011, 06:00 AM
Second Jay Thomas recording initially failed - ID and PW didn't go through. The "click OK to stop the timer" or whatever message was still up. I clicked OK, and the browser closed.

I went back into the xm.exe application, changed the start time for one minute in the future (to just restart), waited, and it worked. Not sure why the ID/PW failed the first time.

Try #3 later today.

thehobster
08-25-2011, 07:34 PM
Try #3 started OK but timed out after some period of time.

One thing I was thinking about: does xm.exe have to have focus to be able to send the keepalives? I think I may have given focus to the browser to turn the volume up on the player. If that's the case, I probably didn't give focus back to xm.exe.

Try #4 will be next Monday.

srw1138
08-26-2011, 03:52 PM
My last two daytime recording attempts were completely unsuccessful. As far as I can tell the script did not even start.

An overnight recording on 8/26 quit after 1 hour 34 minutes.

I'm curious if the brass at Applian have inquired about purchasing the script from Kurto and incorporating it into their own code for a future release.

Kurto2021
08-29-2011, 04:28 AM
the window shouldn't have to be active as I use a command to activate the Sirius XM IE browser window before sending the key strokes to keep alive. The problme I have been having is for some reason nothing seems to be recording...I appear to be lauching the browser and starting replay av but I will have to work on this some more.....I was out of town last week so didn't get a chance to play with it.

jeffmplsmn
09-01-2011, 08:05 PM
Thank you for writing this script. It's working perfectly on IE9, however, my work horse Replay A/V runs on XP and IE8 and nine times out of ten, I'm off a tab. My password gets entered in the Username field. I tried all sorts of Toolbar combinations but cannot get the script to consistently log in successfully. Any ideas would be greatly appreciated.

thehobster
09-09-2011, 07:10 AM
I've been getting pretty good results lately. The biggest issue I'm seeing is that in IE 9, there is a pop-up (or something) about finding plug-ins that is interfering with the script. It only happens once a day (or after reboot).

As long as I make sure to start IE9 at least once before recording, the app has been pretty good.