Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   upload via delphi, simulate browse file in firefox (http://www.delphipages.com/forum/showthread.php?t=217724)

golden_eyes 01-29-2018 04:30 PM

upload via delphi, simulate browse file in firefox
 
Hello,

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

https://plik.root.gg/file/Ri0Ye7ejdb...WstAC/temp.png

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.

Regards

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?

Regards

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:

http://www.delphipages.com/forum/showthread.php?t=19795


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

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