Ghost in the Machine?

Dan Brown danoldboy at gmail.com
Wed Dec 8 16:46:13 EST 2021


If it's a simple html form then you could POST the form data to the server
directly from within livecode. There is a short guide for doing so here
https://livecode.byu.edu/internet/aboutForms.php and here
https://livecode.byu.edu/internet/postMethodSteps.php

  put urlEncode(fld "fullname") into tName
  put the hilitedButtonName of group "genderGrp" into tGndr
  put urlEncode(the label of btn "colorChoice") into tColor
  put fullname=" & tName & "&gender=" & tGndr & "&color=" & tColor into tArgList
  post tArgList to URL "http://my.web.site/sampleform.html"
  put it into tFormResults

You may need to log in to the website from within livecode (using the above
form method) to authenticate and retrieve a cookie or session token to
include in the headers of your form request

On Wed, Dec 8, 2021 at 2:06 PM Peter Reid via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I'm trying to provide an upload facility for an existing on-line club
> membership app. This app has a bulk loading facility for initial set up and
> is designed for whole database configuration. In addition the app provides
> a manual on-line form with 20+ fields making up a member's record.
>
> Ideally my user would use a facility to upload 1 or more files with rows
> of details , each row containing a collection of all the inputs for my user
> to use. Sadly, there's no bulk loading facility, so the user has to type in
> most of the details from the membership form.
>
> So here comes the 'Ghost' bit, is it possible to make an LC app that
> mimics keyboard and mouse inputs as if the user was there interacting with
> the on-line form? If I can do this my user would have a file of inputs
> which they could send to the membership database, sit back and watch the
> ghostly app 'type' and 'mouse click' their way through completing the
> on-line form.
>
> Any suggestions please?
>
> Peter
> --
> Peter Reid
> Loughborough, UK
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list