pxp Posted January 6, 2008 Posted January 6, 2008 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
xzaz Posted January 6, 2008 Posted January 6, 2008 (edited) Got some code? Its a better overview. Edited January 6, 2008 by xzaz Small Color Picker v0.2 | Travian bot
Zedna Posted January 6, 2008 Posted January 6, 2008 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 commandFor button look at ControlClick()All is in AutoIt helpFile. Resources UDF ResourcesEx UDF AutoIt Forum Search
pxp Posted January 6, 2008 Author Posted January 6, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now