Delphi Pages Forums

Delphi Pages Forums (
-   General (
-   -   upload via delphi, simulate browse file in firefox (

golden_eyes 01-29-2018 04:30 PM

upload via delphi, simulate browse file in firefox

I'm using the custom components in my web framework as below

the purpose of the multiple is to crop, rotate and automatically upload to the server.

so how to simulate the click and automatically upload everything in the path c:\scan via delphi form?

Please note that I don't have a problem with the uploading from delphi a single file directly to PHP file, but in my situation I need the action client to client and continue the process by the user when press Save in the Web Page.


Ouiji 02-01-2018 07:51 AM

You might try hooking the mouse and using Sendmessage, it should be pretty easy to use wm_gettext to catch when the button is clicked.

golden_eyes 02-01-2018 09:07 AM

Thank you for sharing your information..

Do you have a small code like key or from where should I start?

Can I catch the window of selection files "After the user pressed on Browse" and sendmessage the path , select them automatically and click on the button "Open" or you recommend another situation?


Ouiji 02-01-2018 11:37 PM

Catching the window after click should be easy enough, programmatically selecting an unknown number of files in that window and submitting them may take some effort.. Here's a pretty good summary of the basics here:

All times are GMT. The time now is 03:26 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.