 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Sep 04, 2004 4:06 pm Post subject: difficult |
|
|
| How can I make a script that do this: I have an oracle database and the data are very dynamic, meaning it is always a different value at a specific field. For example, I want to navigate to the "city" field and copy what ever value is at the city field at the moment. Lets say, Utah is the value at the city field from the oracle database. Now, I want to copy it and navigate to a registration webpage that has a selector field of all the possible cities when you arrow down. I want to write a script if the city is Utah, compare it with the rest of the other cities in the selectors. If the Utah value from the database matches the Utah field from the selector on the registration webpage then select Utah. If it's not Utah, go down the selector list of cities and compare itself until it matches itself (for example, if Utah=Utah, then plug it in the field.) I think this is very complicated way of automating online registration, but if someone know a better method that I can select cities from a selector then let me know. Please write an almost workable example would best be appreciated. Thank you. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sat Sep 04, 2004 4:45 pm Post subject: |
|
|
Huh, a novel !
| Quote: | | An oracle database | OK.
| Quote: | | For example, I want to navigate to the "city" field and copy what ever value is at the city field at the moment. | Is it necessary to work on the frontend of a DB client or is it possible to parse an exported file ?
| Quote: | | Lets say, Utah is the value at the city field from the oracle database. | OK. The value/variable
| Quote: | | I think this is very complicated way of automating online registration, but if someone know a better method |
cURL Click it !
| Quote: | | Please write an almost workable example would best be appreciated. Thank you. |
Give us some code. Help us to help you !  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10471
|
Posted: Sat Sep 04, 2004 5:16 pm Post subject: |
|
|
Since browsers and web pages combine to create a variety of behaviors, it's sometimes hard to give specific advice about how to automate a particular web task. But here's an attempt.
| Quote: | | If it's not Utah, go down the selector list of cities and compare itself until it matches itself (for example, if Utah=Utah, then plug it in the field.) | Depending on the web page and the browser being used, you might be able to automate the selection of a combobox style control by using Control, ChooseString (Window Spy might be able to help you with this). If that doesn't work, when a drop-down list has the keyboard focus, typing the first letter of the selection you want might jump to that section alphabetically within the list. After that, you can do "Send {Down 2}" (replace 2 with how many down-arrow keystrokes to send) to select the right item. That might make the process of selecting the correct entry easier. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|