Jump to content

Recommended Posts

Posted

Hi All,

i'm new on scripting and have the following situation i'd like to 'automate':

A form application where the user can fill in a path, select an item from a dropdown and browse the output folder.

My problems are:

I know the description of a dropdown item and would like to select the corresponding item.

Do i need to iterate/loop the items to achieve that? I know the item-number it can very because the list is dynamically created from files in a certain folder.

Another thing that i need to do is select a button which shows the browse folder dialog, but no path to set there,... how can i hack that?

Hope i described it well and hoping for a solution,

Jan

post-30931-1199626224_thumb.jpg

Posted

My problems are:

I know the description of a dropdown item and would like to select the corresponding item.

Do i need to iterate/loop the items to achieve that? I know the item-number it can very because the list is dynamically created from files in a certain folder.

Another thing that i need to do is select a button which shows the browse folder dialog, but no path to set there,... how can i hack that?

Look at ControlCommand() with its SelectString command

For button look at ControlClick()

All is in AutoIt helpFile.

Posted

Wow, those are some quick reactions, nice to see that !

Here is what i have so far:

Run("FileExporter.exe")

; Initial Setup Screen

WinWaitActive("FileExporter")

;;Send("!s")

;;Send("S:\files\MyFolder\Export_01.txt")

ControlSend("FileExporter", "", "TEdit1", "Export_01.txt")

;;item id is: 1181192

;;Send("!o")

;;TEdit1

;;1050844

MsgBox(0, "AutoIt TEST", "OK. Seeya!")

Exit

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
×
×
  • Create New...