Announcement

Collapse
No announcement yet.

Capture output of a DOS Window into AMS dynamically?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • madsen
    replied
    Man, someone stop me from laughing over here

    @mystica: On a serious note, really, you're also able to download through calling urlmon.dll's functions such as URLDownloadToFileA. I wrote a small DLL the time this all started but when you mention you need all the fancy options, I dropped it. At this point it downloads but without a progress, which is a bit more tricky and takes more time to put into play (that's when I asked why not just use the HTTP.Download to which you gave a valid point: no multiple downloads of threaded download possible with it).

    Bas, were you familiar with PureBasic if I am not mistaken? THIS might help if one with PB could get it compiled

    Leave a comment:


  • Imagine Programming
    replied
    @Mystica, I don't know if Microsoft would accept you injecting/hooking into IE in one of your products,
    They provide you with the ActiveX, that's probably the one they'd only allow you to use.

    Anyhow, the Windows Api provides you with several procedures used for downloading from external
    addresses, also allowing you to parse a callback. I could, if it's okay with Dean (since he originally wrote the download plugin) investigate more and possibly write a plugin for that as well. (multi-threaded)

    This would allow you to simultaniously download several files using custom callback procedures in
    Autoplay Media Studio (8.0 probably).

    Leave a comment:


  • mystica
    replied
    Just A Thought, but ...

    Hey, this is just a thought but ...

    Would it possible to to use DLL.CallFunction to hook into a DLL in Internet-Explorer, to:
    i) initiate a download-session
    ii) capture the transfer-stats

    NB.
    Obviously, the first thing that comes to mind is: Why not just use the WebObject in AMS to launch a native IE download-window externally?
    Well, yes ... of course, that does work. BUT, I really want to a solution that is entirely AMS-internal. (ie. no outside window handles).

    Which is why I'm asking if it might be possible to somehow 'hook' whichever DLL/s Internet-Explorer uses to do its downloading, and then create customized visuals from the 'hooked' data?

    Or am I showing my naivety, here???


    .................................................. ..................................
    @IP
    Originally posted by Imagine Programming View Post
    @Mystica,

    I think the dude was kidding I mean, who would seriously consider CamStudio for such a task?
    Oh okay ... missed that one. How embarrassment!
    Maybe I should just say, "I knew that! Was just testing ya!"
    I find new & exciting ways to show my dumbness everyday. Yay!
    Last edited by mystica; 06-05-2010, 06:13 PM.

    Leave a comment:


  • Imagine Programming
    replied
    @Mystica,

    I think the dude was kidding I mean, who would seriously consider CamStudio for such a task?

    Leave a comment:


  • mystica
    replied
    Originally posted by madsen View Post
    Why not just use CamStudio then you display it in a video object
    HUH? The idea was to suppress the Command window (via a "-1" flag), and use the data to create a customized progress-bar ... simply because the ascii-style progress-bar/stats in Wget looks kinda 'ugly'. Or am I missing something here?

    Plus, how would that work dynamically, anyway? (ie. How would you get it to reflect downloads in real-time?)

    //EDIT
    Oh okay, I see ... it's "streaming" video. But still, it kinda defeats the purpose of supressing the command-window to begin with, yeh? My aim is to create a "pretty" progress-bar with multiple downloads.

    I had a bit of a play with S0mbre's Chain Downloader. It does seems to work. All the source-code is there to see ... I just haven't had the time to analyse it yet, too see what's going on ... it's quite extensive. I am curious to see how he's done it, though.
    Last edited by mystica; 06-05-2010, 05:31 PM.

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by madsen View Post
    Why not just use CamStudio then you display it in a video object
    How clever...

    Leave a comment:


  • madsen
    replied
    Originally posted by mystica View Post
    Does anyone know if it's possible to capture the output of a DOS window dynamically, and then display it in AMS?
    Why not just use CamStudio then you display it in a video object

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by Sakuya View Post
    I guess I'll just pop-in and ask for a standard-output-redirection-to-autoplay DLL.
    Like I said, I might make a plugin that'll make a new thread for the app and call the user-specified callback function with the stdout, but when I'm done with my current stuff

    Leave a comment:


  • Sakuya
    replied
    I guess I'll just pop-in and ask for a standard-output-redirection-to-autoplay DLL.

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by mystica View Post
    Don't rub it in, smarty!
    I'm so sorry... *Rub Rub* ^^

    Leave a comment:


  • mystica
    replied
    Originally posted by Imagine Programming View Post
    ... why is this more complex than PB? It's not more complex, it's just a bit more work
    Don't rub it in, smarty!

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by mystica View Post

    Strewth! That looks even more complex than PB!
    You trying to give me a brain-meltdown there, Lorne?

    PS.
    Whadd'ya do with my Girls of the Israeli Army thread, you sly dog you!

    I know you liked it.
    Wait, that thread was removed? =(

    btw, why is this more complex than PB? It's not more complex, it's just a bit more work

    Leave a comment:


  • mystica
    replied

    Strewth! That looks even more complex than PB!
    You trying to give me a brain-meltdown there, Lorne?

    PS.
    Whadd'ya do with my Girls of the Israeli Army thread, you sly dog you!

    I know you liked it.

    Leave a comment:


  • Lorne
    replied
    There are Lua 5.1 modules that offer additional download functionality as well, e.g. LuaSocket and LuaCURL.

    Leave a comment:


  • mystica
    replied
    Originally posted by RizlaUK View Post
    sure its possible, but not directly with AMS

    read up on PureBasic's "RunProgram" function, with console apps (such as a DOS window) you can run the program and read the output from the console window
    Well Riz, I 've had a [email protected] good look at PB and found the stuff you're talking about ... but alas, I'm just too [email protected] dumb! Just can't make sense of it. The problem I find with PB is that the Help File is too skint. Don't get me wrong ... it's easy to see the potential that can be harnessed from this program, but for the most part, I find that the Help file makes too many assumptions about the user's current level of understanding ... there's just too many gaps to fill in. I end up getting lost all the time. I'm sure I'd be able to pick it up, if only the Help File was more thorough.

    I'll keep plugging away at it. I've visited the user forums that you and IP have pointed out in the past, but I find the same problem there. Whatever progress I make is painfully slow ... just don't have the knack for picking up this kind of thing, like you guys do.

    Wanna swap brains?
    You give me the part of your brain that excels at coding, and I'll give you the part of mine that's been pickled by too many drinking binges. Hey, that's an offer you can't refuse!
    Last edited by mystica; 06-03-2010, 06:41 PM.

    Leave a comment:

Working...
X