| View previous topic :: View next topic |
| Author |
Message |
hay
Joined: 18 Jun 2008 Posts: 69
|
Posted: Wed Jul 02, 2008 6:14 pm Post subject: Position cursor in search box |
|
|
I would like to position the cursor inside a search box.right now i am trying with x y coordinates which is not always accurate.is there a way i can 'force it' no matter the page moves up or down to position in it?
| Code: | #n::
Loop, read, C:\file.txt
{
Loop, parse, A_LoopReadLine, %A_Tab%
{
Run http://approached.net/
Sleep 3000
Click 466 , 341 ;position in search box
Send %A_LoopField%
Sleep 1000
send {ENTER}
Sleep 5000
}
}
return |
i used Windows spy and got this class name
| Code: | >>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
approached.net - Mozilla Firefox
ahk_class MozillaUIWindowClass |
how i can use this class name to point to it?is there an easier way?I use Firefox. |
|
| Back to top |
|
 |
argneo
Joined: 14 Sep 2007 Posts: 124
|
Posted: Wed Jul 02, 2008 6:30 pm Post subject: |
|
|
If you use FF... i recommend you use Selenium IDE for functional testing. _________________
WoW |
|
| Back to top |
|
 |
Razlin
Joined: 05 Nov 2007 Posts: 370 Location: canada
|
Posted: Wed Jul 02, 2008 6:35 pm Post subject: |
|
|
look up coordmode in help
you can set it up tp "window" instead of screen. _________________ -=Raz=- |
|
| Back to top |
|
 |
hay
Joined: 18 Jun 2008 Posts: 69
|
Posted: Wed Jul 02, 2008 9:02 pm Post subject: |
|
|
| not enough example to use this feature.any demo program or script? |
|
| Back to top |
|
 |
|