AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

difficult

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Sep 04, 2004 4:06 pm    Post subject: difficult Reply with quote

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
View user's profile Send private message
BoBo
Guest





PostPosted: Sat Sep 04, 2004 4:45 pm    Post subject: Reply with quote

Huh, a novel ! Wink

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

Arrow 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 ! Smile
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10471

PostPosted: Sat Sep 04, 2004 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group