Sign in to follow this  
Followers 0
autoitxp

How to get Windows Input Fileds detected ?

9 posts in this topic

Hi

hi guyz how to get windows input fields detected like i want to get all list of internal windows input Fileds is it possible ?

Share this post


Link to post
Share on other sites



First, please delete one of your topics. I'm going to give you the benefit of the doubt and say you got a 500 error and that's the reason for the double post. Second, you can use the Window Info Tool to detect control names and work from there. Post a screenshot or articulate your request better to get more help.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

lol my browser do such thing i click on submit and it sent 2 posts

and which function to detect that ?

Edited by autoitxp

Share this post


Link to post
Share on other sites

lol my browser do such thing i click on submit and it sent 2 posts

and which function to detect that ?

START->Run->Au3info.exe->Enter

This is the window info tool. It will give you all details you need to manipulate other window controls.


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

Hi

hi guyz how to get windows input fields detected like i want to get all list of internal windows input Fileds is it possible ?

Try this:

#include <Array.au3> ;Only for _ArrayDisplay

Dim $aWindows = WinList()
Dim $aMatch[1][2]
Dim $sClass

For $i = 1 To $aWindows[0][0]
    $sClass = WinGetClassList($aWindows[$i][1])
    
    If (StringInStr($sClass, "Edit") > 0) And ($aWindows[$i][0] <> "AutoIt v3") Then
        $aMatch[0][0] += 1
        ReDim $aMatch[$aMatch[0][0] + 1][2]
        $aMatch[$aMatch[0][0]][0] = $aWindows[$i][1]
        $aMatch[$aMatch[0][0]][1] = $aWindows[$i][0]
    EndIf
Next

_ArrayDisplay($aMatch)

:)

Share this post


Link to post
Share on other sites

well this not going to slove my problem . i got stucked at one point . actually i have web form with several Input Fields . like First name , Last name etc

i donno how to detect when user Tabbed or clicked on other Input Field . simply want to pop up msg when user fill one field and tabbed or click on other Input Filed to Fill

Well im not using Internet Explorer I use Firefox so cannot use _IE functions kind help me.

Share this post


Link to post
Share on other sites

Well web browsers are different. the form controls are not seen as seperate objects to windows.

Windows and AutoIT see the whole web page area as one object. So it can't manipulate then the way other windows controls can be

The _IE functions were createdto use dll's within windows that can interact with the page controls. However nobody has create anything like that for FireFox that I'm aware of.

AutoIT could watch for the tab key while the firefox windows was active.

But you would have no way of knowing what they tabbed into.

If it's your page I would look into adding some javascript functions to the form controls.

That would do what you want.

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

AutoIT could watch for the tab key while the firefox windows was active.

tab key can be watched using HOTKEY but what if user only use mouse to click on input fields ?

well not my page and adding into page is not allowed sad :@

Share this post


Link to post
Share on other sites

There is an FF.au3 file for firefox automation. There is also the obvious _IE functions. If you are doing this for automation and not just to catch passwords/usernames then sometimes you have to just deal with using IE.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0