Skip to content

Can i import a file with the url by command line?

@sven I need to import the text file with the urls automatically, how an i do it?
Its possible?

Best Regards

Comments

  • SvenSven www.GSA-Online.de
    sorry thats not possible. But you can send URLs using some sendmessage(handle...) if you code yourself a small program.
  • @sven Great, what parameters do i need to send by using sendmessage other than the handle?


  • SvenSven www.GSA-Online.de
    CopyData.dwData:=15697;
    CopyData.cbData:=Length(url)+1;
    CopyData.lpData:=pchar(url);

    SendMessage(h,WM_COPYDATA,form1.handle,Integer(@CopyData));
  • @sven the first h is the handle of the application?

  • SvenSven www.GSA-Online.de
    yes
  • Im having some problem doing this, dont know why, pchar is a pointer to the string, right?

    Im finding fine the form1.handle, im being able to even change the title of the window succesfully.

    You url variable is a simple string, right?

    @CopyData is a pointer, right. Buts send like Int.

    Well, i will continue trying.


  • SvenSven www.GSA-Online.de
    CopyData is a defined data structure from windows.
Sign In or Register to comment.