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 

Position cursor in search box

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



Joined: 18 Jun 2008
Posts: 69

PostPosted: Wed Jul 02, 2008 6:14 pm    Post subject: Position cursor in search box Reply with quote

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



Joined: 14 Sep 2007
Posts: 124

PostPosted: Wed Jul 02, 2008 6:30 pm    Post subject: Reply with quote

If you use FF... i recommend you use Selenium IDE for functional testing.
_________________

WoW
Back to top
View user's profile Send private message
Razlin



Joined: 05 Nov 2007
Posts: 370
Location: canada

PostPosted: Wed Jul 02, 2008 6:35 pm    Post subject: Reply with quote

look up coordmode in help

you can set it up tp "window" instead of screen.
_________________
-=Raz=-
Back to top
View user's profile Send private message
hay



Joined: 18 Jun 2008
Posts: 69

PostPosted: Wed Jul 02, 2008 9:02 pm    Post subject: Reply with quote

not enough example to use this feature.any demo program or script?
Back to top
View user's profile Send private message
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