Is it possible... |
Author: |
Message: |
Zageron
New Member
FFR Dude
Posts: 7
32 / /
Joined: Aug 2007
|
O.P. Is it possible...
To grab an auto updated text (or variable) Such as a "This user is currently" element, and make it your personal message?
Simplified.\/
Zageron
Member
Browsing Profiles
Overall Rank: 1,891
Average Rank: 10,836
Games Played: 5,753
Multiplayer Level: 11
Last Activity: 08-17-2007
Forum Posts: 370
Simplified. /\
I would love to be able to take that "Browsing Profiles" and make it show up as my personal MSN message. Is is possible to script this?
This post was edited on 08-18-2007 at 03:08 AM by Zageron.
|
|
08-18-2007 03:07 AM |
|
|
ShawnZ
Veteran Member
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
|
RE: Is it possible...
no, as jscript doesn't have accessors. you would have to use a timer to check when the variable updates.
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
08-18-2007 03:08 AM |
|
|
Zageron
New Member
FFR Dude
Posts: 7
32 / /
Joined: Aug 2007
|
O.P. RE: Is it possible...
But, what exactly is the difference between "Current Media" and "Current Status"?
I have the exact variable address for MY status. Getting someone else's would be as simple as making the script JUST for them...
|
|
08-18-2007 03:10 AM |
|
|
ShawnZ
Veteran Member
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
|
RE: Is it possible...
current media is what song you're playing in windows media player, current status is the status you're currently using
8434513 GET
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
08-18-2007 03:12 AM |
|
|
Zageron
New Member
FFR Dude
Posts: 7
32 / /
Joined: Aug 2007
|
O.P. RE: Is it possible...
Sorry that wasn't what I meant.
I mean.
What is the difference between "Grabbing the song that you are currently playing in Media player" and grabbing the current status that is being shown on a website.
|
|
08-18-2007 03:13 AM |
|
|
ShawnZ
Veteran Member
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
|
RE: Is it possible...
quote: Originally posted by Zageron
What is the difference between "Grabbing the song that you are currently playing in Media player" and grabbing the current status that is being shown on a website.
err, they're two different things?
....456455 get
This post was edited on 08-18-2007 at 03:15 AM by ShawnZ.
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
08-18-2007 03:15 AM |
|
|
Zageron
New Member
FFR Dude
Posts: 7
32 / /
Joined: Aug 2007
|
O.P. RE: Is it possible...
Sorry. I'm thinking your posting for spite. If you don't know what I'm talking about then please don't answer. I'm talking about a simple 'grabbing of MySQL output variable' and updating it everytime it changes.
|
|
08-18-2007 03:26 AM |
|
|
MeEtc
Patchou's look-alike
In the Shadow Gallery once again
Posts: 2200 Reputation: 60
38 / /
Joined: Nov 2004
Status: Away
|
RE: Is it possible...
yes, this is possible. I'm doing the exact same thing for the script that I'm working on right now. The easiest way to do this is create a php script for yourself that echos the contents that you want to show. Then you can use an XMLHTTP object to read the contents of the output. here's a snippet:
code: var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", "http://www.domain.com/file.php", true);
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4) {
if(xmlhttp.status == 200) {
Debug.Trace('Data returned: ' + xmlhttp.responseText)
} else {
Debug.Trace('Error: Could not open web page');
}
}
}
I cannot hear you. There is a banana in my ear.
|
|
08-18-2007 03:38 AM |
|
|
Zageron
New Member
FFR Dude
Posts: 7
32 / /
Joined: Aug 2007
|
O.P. RE: Is it possible...
Thanks.
I'm not quite sure how to load that EXACT piece of text though. Just enter the variable address? o.O?
Edit:
Actually I'm not quite sure how to even start this...
If it's easy enough I just want my Personal message to show the single ever changing piece of text shown on this page.
http://www.flashflashrevolution.com/profile/Zageron/
Variables
"Browsing FFR Profiles"
"Playing FFR"
"Browsing FFR Forums"
"Offline" (This would show if, in fact, there was no variable active.) (Or the site detected me nowhere.)
This post was edited on 08-18-2007 at 03:51 AM by Zageron.
|
|
08-18-2007 03:47 AM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
RE: Is it possible...
Hello! try this code (works! tested. but not sure if any bugs are in):
code: var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", "http://www.flashflashrevolution.com/profile/Zageron/", true);
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4) {
if(xmlhttp.status == 200) {
var status = '';
if(xmlhttp.responseText.search("Browsing FFR Profiles") != -1){
status = "Browsing FFR Profiles";
} else {
if(xmlhttp.responseText.search("Playing FFR") != -1){
status = "Playing FFR";
} else {
if(xmlhttp.responseText.search("Browsing FFR Forums") != -1){
status = "Browsing FFR Forums";
} else {
status = "Offline";
}}}
Messenger.MyPersonalMessage = "Zageron: " + status;
} else {
Messenger.MyPersonalMessage = "Zageron: Offline";
}
}
}
xmlhttp.send(Math.random()*99999);
oops, forgot to send the request
This post was edited on 08-18-2007 at 04:11 AM by roflmao456.
[quote]
Ultimatess6: What a noob mod
|
|
08-18-2007 04:00 AM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|