Mar. 26, 2004, 09:43 PM
Mar. 27, 2004, 12:23 AM
The thing is if it would be possible, people would cry out that Prox is a security risk which it is not.
Mar. 27, 2004, 12:32 AM
I would try the registry. Try searching Google for executing programs with reg keys or something. I know you can set it so you can type in the address bar 'gg' and your search and it will search Google so I'm sure there's a way to tell it to execute something too.
Mar. 27, 2004, 09:37 AM
ProxRocks;
Well, it can be easy, if you're willing to live with a limitation or two.
Did you know that a bookmark needn't be a LNK file? 'Struth. You can make it any file you want, including a batch file. If that batch file is gonna do anything in the command line arena, then you might as well point to the PIF file instead, but you get the idea. Simply have the batch file, somewhere in the lineup of commands, execute your browser with the address pre-supplied (in this case, Google).
You can take a step up and write a script that will run under the WSH, and it can do the same thing with more power for executing commands and programs. That's a toss up.
You can also point to a piece of Javascript in your favorites (sometimes called a 'bookmarklet') so that you can execute a batch file from inside of the browser, but I don't see a way to automate that, particularly whenever you surf to a specific page. You'd have to use it to surf to the page (Google), not just rely on it to run whenever you land on Google. Plus, your browser would already have to be running in order to execute the script. (Again, unless you opt to install the WSH - it will also execute javascript.)
There are a few Registry keys that autorun when the browser is fired up, but so far as I know, none of them can be made 'site specific'. I could be wrong, but I've never heard of it being done this way. Plus, they execute classes that the browser will need, not just any ol' file.
Sidki does raise an interesting possibility. Proxo can't run external commands, right? But it can write a whole javascript or VBscript to a page, and of course we can limit that action to just the Google page. So we write a filter that fires only when we visit Google, and that filter writes a javascript into the header. Importantly, it also does not disable the Onload event, it even adds the newly minted script to that very same Onload event, thus ensuring that our script runs when Google is visited. And of course, javascript and VBscript both can be made to run an external command (which is the big reason I don't allow javascripts to run when I'm surfing!!).
Just noodling around with a few half-baked ideas here, feel free to treat them as you wish.
Oddysey
Well, it can be easy, if you're willing to live with a limitation or two.
Did you know that a bookmark needn't be a LNK file? 'Struth. You can make it any file you want, including a batch file. If that batch file is gonna do anything in the command line arena, then you might as well point to the PIF file instead, but you get the idea. Simply have the batch file, somewhere in the lineup of commands, execute your browser with the address pre-supplied (in this case, Google).
You can take a step up and write a script that will run under the WSH, and it can do the same thing with more power for executing commands and programs. That's a toss up.
You can also point to a piece of Javascript in your favorites (sometimes called a 'bookmarklet') so that you can execute a batch file from inside of the browser, but I don't see a way to automate that, particularly whenever you surf to a specific page. You'd have to use it to surf to the page (Google), not just rely on it to run whenever you land on Google. Plus, your browser would already have to be running in order to execute the script. (Again, unless you opt to install the WSH - it will also execute javascript.)
There are a few Registry keys that autorun when the browser is fired up, but so far as I know, none of them can be made 'site specific'. I could be wrong, but I've never heard of it being done this way. Plus, they execute classes that the browser will need, not just any ol' file.
Sidki does raise an interesting possibility. Proxo can't run external commands, right? But it can write a whole javascript or VBscript to a page, and of course we can limit that action to just the Google page. So we write a filter that fires only when we visit Google, and that filter writes a javascript into the header. Importantly, it also does not disable the Onload event, it even adds the newly minted script to that very same Onload event, thus ensuring that our script runs when Google is visited. And of course, javascript and VBscript both can be made to run an external command (which is the big reason I don't allow javascripts to run when I'm surfing!!).
Just noodling around with a few half-baked ideas here, feel free to treat them as you wish.
Oddysey
Mar. 27, 2004, 12:53 PM
I don't know WSH (or ASP), maybe those are what I need...
Here's the end-in-mind...
My "lists section" points to an empty file called "grab-ip-address.bat"...
On every page that I visit, a filter kicks in on DOCTYPE that performs a few $ADDLST commands that in effect 'creates' a .bat file that will, when ran, execute a nslookup on the /h host and 'export' its results to "grab-ip-address.txt"...
Then a multi=true filter kicks in at ProxHdrTop that "inserts" that .txt file into the source code of the page being downloaded...
The next filter matches for the inserted .txt file contents, in essence taking it back out of the pages source code, and filters the contents thereof, storing the IP Address of the filtered content in a $SET variable string...
Then another filter kicks in at ProxBottom and appends that IP Address via a $GET to the title of the web page... Hmmm, perhaps the Status Bar may be a better place for it...
Anyway, that's the end-in-mind...
A filter set that will locally obtain the IP Address of the site being visited...
But without a means to execute that page-created .bat file, it's a dead end street...
And, of course, there will be a "problem" if several pages are being loaded at once...
Or if the /h host domain has several nslookup addresses (Google, Yahoo, et cetera)...
It was just a thought...
Very easily 'doable' - if we can get that .bat file to "auto-execute"...
Here's the end-in-mind...
My "lists section" points to an empty file called "grab-ip-address.bat"...
On every page that I visit, a filter kicks in on DOCTYPE that performs a few $ADDLST commands that in effect 'creates' a .bat file that will, when ran, execute a nslookup on the /h host and 'export' its results to "grab-ip-address.txt"...
Then a multi=true filter kicks in at ProxHdrTop that "inserts" that .txt file into the source code of the page being downloaded...
The next filter matches for the inserted .txt file contents, in essence taking it back out of the pages source code, and filters the contents thereof, storing the IP Address of the filtered content in a $SET variable string...
Then another filter kicks in at ProxBottom and appends that IP Address via a $GET to the title of the web page... Hmmm, perhaps the Status Bar may be a better place for it...
Anyway, that's the end-in-mind...
A filter set that will locally obtain the IP Address of the site being visited...
But without a means to execute that page-created .bat file, it's a dead end street...
And, of course, there will be a "problem" if several pages are being loaded at once...
Or if the /h host domain has several nslookup addresses (Google, Yahoo, et cetera)...
It was just a thought...
Very easily 'doable' - if we can get that .bat file to "auto-execute"...
Mar. 27, 2004, 06:54 PM
ProxRocks;
I'm afraid I'm gonna have to say that WSH is your only bet here. Javascript itself, and for that matter, VBscript too, doesn't have a direct method of executing external non-script files. That is to say, you can load an external script file with the href= or the scr= attributes, but they have to be in the same scripting language as your caller (.js or .vbs, as appropriate).
That said, there are other add-on methods out in the wilds of the 'Net, but so far as I can find, they are not free. Several close calls, but no cigar in my searches this morning. Curses! [angry] If you get desparate, you might do some research yourself in this direction.
Otherwise, I'd cut the nonsense (to me, anyway) of deriving a text file, a batch file, and a whole slug of filters. Just look at the DOM object <span style='color:blue'>document.location.href</span>*, and then feed its contents via a script to the WSH for external execution of your nslookup program. The shell can also return the results to wherever you want them, so that shouldn't be a problem, I wouldn't think.
I know this isn't what you wanted to hear, but it's the best I can do without breaking out the RAD/IDE and writing a method myself. And Lord knows, I don't have time for that just now!
Gotta run, hope this helped. Ciao.
Oddysey
* If you see "NoLocation", you are letting Proxo filter this site. That's OK, just remember to strip the "no" before you paste that code into a script. [lol]
I'm afraid I'm gonna have to say that WSH is your only bet here. Javascript itself, and for that matter, VBscript too, doesn't have a direct method of executing external non-script files. That is to say, you can load an external script file with the href= or the scr= attributes, but they have to be in the same scripting language as your caller (.js or .vbs, as appropriate).
That said, there are other add-on methods out in the wilds of the 'Net, but so far as I can find, they are not free. Several close calls, but no cigar in my searches this morning. Curses! [angry] If you get desparate, you might do some research yourself in this direction.
Otherwise, I'd cut the nonsense (to me, anyway) of deriving a text file, a batch file, and a whole slug of filters. Just look at the DOM object <span style='color:blue'>document.location.href</span>*, and then feed its contents via a script to the WSH for external execution of your nslookup program. The shell can also return the results to wherever you want them, so that shouldn't be a problem, I wouldn't think.
I know this isn't what you wanted to hear, but it's the best I can do without breaking out the RAD/IDE and writing a method myself. And Lord knows, I don't have time for that just now!
Gotta run, hope this helped. Ciao.
Oddysey
* If you see "NoLocation", you are letting Proxo filter this site. That's OK, just remember to strip the "no" before you paste that code into a script. [lol]
Mar. 27, 2004, 08:09 PM
Hi "Guys",
Just My two dracmas worth, but there is a filter that I saw somewhere that could inject a "localfile" and I saw a Dos exe. file that will execute a bat file. Could a filter that is site specific (google) be written then that could "call" the Dos exe. and that would run the bat file? I'm not sure but I thought I would mention it.
Best Wishes,
"~JaK~"
Just My two dracmas worth, but there is a filter that I saw somewhere that could inject a "localfile" and I saw a Dos exe. file that will execute a bat file. Could a filter that is site specific (google) be written then that could "call" the Dos exe. and that would run the bat file? I'm not sure but I thought I would mention it.

Best Wishes,
"~JaK~"
Mar. 30, 2004, 06:38 PM
Jak,
I don't remember ever seeing that "Dos.exe" filter - does anyone else here have any recollection of such a beast?
If not, then we may have to branch out. Maybe send a scout over to one of the other discussion forums to see if we can ferret out any mention of this thing.
Oddysey
I don't remember ever seeing that "Dos.exe" filter - does anyone else here have any recollection of such a beast?
If not, then we may have to branch out. Maybe send a scout over to one of the other discussion forums to see if we can ferret out any mention of this thing.
Oddysey