Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2018, 04:30 PM
golden_eyes golden_eyes is offline
Senior Member
 
Join Date: Dec 2005
Posts: 382
Angry upload via delphi, simulate browse file in firefox

Hello,

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.

Regards

Last edited by golden_eyes; 01-29-2018 at 07:01 PM. Reason: adding note
Reply With Quote
  #2  
Old 02-01-2018, 07:51 AM
Ouiji Ouiji is offline
Senior Member
 
Join Date: Nov 2001
Location: US of A
Posts: 487
Send a message via AIM to Ouiji
Default

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.
__________________
"not quite smart enough to be dumb"
Extended Stats No Longer Available Due To Changes To The Forum.
Reply With Quote
  #3  
Old 02-01-2018, 09:07 AM
golden_eyes golden_eyes is offline
Senior Member
 
Join Date: Dec 2005
Posts: 382
Default

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
Reply With Quote
  #4  
Old 02-01-2018, 11:37 PM
Ouiji Ouiji is offline
Senior Member
 
Join Date: Nov 2001
Location: US of A
Posts: 487
Send a message via AIM to Ouiji
Default

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
__________________
"not quite smart enough to be dumb"
Extended Stats No Longer Available Due To Changes To The Forum.
Reply With Quote
Reply

Tags
delphi, html, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 01:45 PM.


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