Jump to content

Recommended Posts

Posted

Hello.

I am a total newbie in AutoIt and I would need some help. I am working on a project where I want to automate the insertion of measurement results. So I have a list which looks something like that:

  • specimen1,results1
  • specimen2,results2
  • specimen3,results3
  • ...

I need to insert is date, specimen name and results. I already mad GUI with an input box for date and an edit box for a list of specimens and measurement results(which i wanted to seperate with StringSplit). I managed to write a code that automatically fills the date input box (it was easy because it is a constant value for the whole day but I stumbled when I had to write a code that would cycle through all arrays and write each one in an input box).

So let's make it short. The end product should look something like this:

  1. I insert the date into the input box and string of specimen name and measurement results into the edit box
  2. The program then inserts each piece of data in a separate box (the form that I need to fill consists out of there input boxes. One for date one for specimen name and one for the results). so that it goes something like this:
  • Date. 27.10.2019
  • Sp.name: specimen1
  • Results: results1
  •  
  • Date. 27.10.2019
  • Sp.name: specimen2
  • Results: results2
  •  
  • Date. 27.10.2019
  • Sp.name: specimen3
  • Results: results3

       3. When all arrays have been inserted the cycle stops.

 

I hope i made it clear, huuh😅

 

Thank you

 

 

 

Posted

I am just looking for some guidelines that i can use to start from there. Or if anyone has ever done smoething similar that could show me how he did it :D

Posted (edited)

Here is something to start with, then you will have to deal with a For/Next loop and GuiCtrlSetData
Happy coding :)

#Include <Array.au3>

$txt = "specimen1,results1"
$a = StringSplit($txt, ",")
$a[0] = "27.10.2019"

_ArrayDisplay($a)

Edit
Next time please post some code. A short snippet is often of better meaning than long explanations

Edited by mikell

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...