![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
Topic Title: Get Values from INI file Topic Summary: Created On: 11/14/2005 08:34 AM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|||
Here is a task that will get a value from an INI file in the following format given the Filename, Section and Key.
[Section1] Key1=Value1 Key2=Value2 [Section2] Key1=Value3 Key3=Value4 This script could probably be more efficient or more straight-forward, but I think it gets the job done. To be clear, this will only get an INI file value. It is not written to set an INI value. Hopefully, this will help anyone that needs to get this type of task done until the AutoMate folks add this to the next version. Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- Thanks, Noel Scheaffer Edited: 11/14/2005 at 11:07 AM by Noel |
|||
|
|||
![]() |
|||
Here is a task that calls my previous posted task to show how it could be used.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- Thanks, Noel Scheaffer |
|||
|
|||
![]() |
|||
I know this is a thread from the dinosaur era. EVen though I think the topic can be a present-day topic. For me it is. And yes, I'm a Automate newbie. So I am looking for a way to read from INI (not to write). Copy-paste? Copy of course is possible, but to paste? Where? I Cannot find a place to do that. Searching for a solution I figured out that paste the code into a .aml file should be possible and than importing that file.... I read this (about importing aml). But than.... first a warning that this task was created in a prvious version of AutoMate, followed by a question if I would like to convert. In think so... (as if I have a choice): yes. Then an error: file not found (the one I was importing). Another attempt - which seemed logic to me: File >> Tools >> Expression Builder >> Paste (Ctrl-V) >> Button Insert. Unfortunately: Nothing happens. So big question: how to import (or paste) this code. And more important: how to read from INI-file? Edited: 02/01/2016 at 02:28 AM by WalterTiggeloven |
|||
|
|||
![]() |
|||
Well ... I start wondering whether this forum is still active.
![]() ![]() Attached is an import file. Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)
Edited: 02/02/2016 at 06:38 AM by AutoMate Discussion Moderator |
|||
|
|||
![]() |
|||
Hi Walter,
I apologize for the delay and thank you for posting your code. ------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
|||
|
|||
![]() |
|||
No problem Ricardo. Another lesson I'd like to share with future visitors of this thread: reading from the INI is very slow. So I changed my method. I was storing and reading config details using that INI. Now I tried to do the same using XML. That really speed things up. Just an advize...... |
|||
|
AutoMate Discussion
» GENERAL » Sample Tasks
»
Get Values from INI file
|
![]() |
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.