| View previous topic :: View next topic |
| Author |
Message |
Seatbelt99
Joined: 08 Aug 2007 Posts: 58 Location: Michigan
|
Posted: Mon Oct 15, 2007 12:08 am Post subject: Put Cursor in a text box |
|
|
I need to find a way for ahk to locate a text box on a web page and put the cursor there. There is only one text box on the page, but the location may change a bit based on what else is on the page, and would definately not be in the same spot for tab order every time.
Not sure if I am using correct term for text box, I mean a box where I would enter text on the web page.
Let me know if this can be done with AHK, thanks! |
|
| Back to top |
|
 |
BluntShame
Joined: 02 Sep 2007 Posts: 29
|
Posted: Mon Oct 15, 2007 12:21 am Post subject: |
|
|
I dont know much about AHK but maybe try looking for a Static Or Edit control and getting it to focus on it maybe? I dunno just a thought  _________________ AHKNewbie |
|
| Back to top |
|
 |
Seatbelt99
Joined: 08 Aug 2007 Posts: 58 Location: Michigan
|
Posted: Mon Oct 15, 2007 12:29 am Post subject: |
|
|
| BluntShame wrote: | I dont know much about AHK but maybe try looking for a Static Or Edit control and getting it to focus on it maybe? I dunno just a thought  |
I am not sure how I would do that, if it will work I would need more information on how. |
|
| Back to top |
|
 |
BluntShame
Joined: 02 Sep 2007 Posts: 29
|
Posted: Mon Oct 15, 2007 1:41 am Post subject: |
|
|
| Code: | #Persistent
SetTimer, WatchActiveWindow, 20
return
WatchActiveWindow:
WinGet, ControlList, ControlList, A
ToolTip, %ControlList%
return |
That code is from the AHK Help file. It displays in Real-Time the active windows Control's list.
Hope this helps _________________ AHKNewbie |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Mon Oct 15, 2007 2:49 am Post subject: |
|
|
That won't help with web pages, since most (if not all) browsers don't use standard Windows controls (like Static or Edit.)
This could be done via COM + MSHTML for Internet Explorer, but it isn't what you'd call simple. It might be possible for other browsers using Active Accessibility. |
|
| Back to top |
|
 |
|