Jump to content

Edit the controls of a window


Floppy
 Share

Recommended Posts

You probably want the ControlCommand function.

Also look at ControlGetHandle to get a Control Handle to control you want to edit.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

I want to change the content of the control...I wrote this script...

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.12.1
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

#include <GuiConstants.au3>

$win_title="Windows Live Messenger"
WinWaitActive($win_title)
$handle=ControlGetHandle($win_title,"","Edit1")
ControlSend($win_title,"",$handle,"Test")

...but it renames the "Find contact" fileld...instead I want to edit the UserName and the Personal Message fields. thank you

Link to comment
Share on other sites

This won't work, i think:

$handle=ControlGetHandle($win_title,"","Edit1")
ControlSend($win_title,"",$handle,"Test")

you should better use

$ClassNN="Edit1"
ControlSend($win_title,"",$ClassNN,"Test")

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

This won't work, i think:

$handle=ControlGetHandle($win_title,"","Edit1")
ControlSend($win_title,"",$handle,"Test")

you should better use

$ClassNN="Edit1"
ControlSend($win_title,"",$ClassNN,"Test")
Doesn't work... Edited by FSoft
Link to comment
Share on other sites

  • 2 weeks later...

again i was running on to the same problem and no one knew the solution but after 4 days of googlin

1- windows live messenger uses windowless controls.

2- windowless controls do not get registered in windows when created cos they draw them selves.

3- u will never be able to get the windowless control handle in anyway

4- ur only chance is the COM objects to get what u want

5- or u can start reading about accessibility

btw im working on a msg notifier so if anyone have any idea about the live objects u can help meh

GL

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...