Jump to content
Sign in to follow this  
Cythor

Controls created on another window

Recommended Posts

Cythor

First: My english is not good. Sorry :)

I have a Question:

Is it possible a control on another window to created?

When yes -> How does it work?

Cythor

Share this post


Link to post
Share on other sites
stormbreaker

Like:

#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <WindowsConstants.au3>

$btn = _GUICtrlButton_Create(WinGetHandle("Run"), "Button1", 10, 10, 90, 50)
msgbox(64, "", "Created button")
Sleep(3000)

You need to open the 'Run' dialog first, to check this example.

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites
Cythor

Ah, okey :) Thank you ^^

Share this post


Link to post
Share on other sites
Cythor

I have a new question:

I want to create a graphic control to another window.

But I can not find this function.

GUICtrlCreateGraphic()

I need this for an own created button.

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  

×