Jump to content
Sign in to follow this  
salim

WinMove... ???

Recommended Posts

salim

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


Local $msg
$ParenT = GUICreate('', 700, 500, -1, -1, $WS_POPUP)
GUISetBkColor(0x000000)
GUISetState(@SW_SHOW)

$ChilD = GUICreate('', 100, 100, 300, 300, $WS_POPUP)
GUISetBkColor(0x800000)
;_WinAPI_SetParent($TeamInfoGUI, $AdminGUI)
GUISetState(@SW_SHOW, $ChilD)

Sleep(1000)
WinMove($ChilD,"",100,300,100,100,10)
Sleep(1000)
WinMove($ChilD,"",100,100,100,100,10)

While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

If _WinAPI_SetParent aktif ... WinMove Error How To Set $ParenT Gui Handle $ChilD Gui..??

Thank's..

Share this post


Link to post
Share on other sites
abberration

Your question made very little sense to me. The best I can figure out is you are trying to get your commented line to be this:

_WinAPI_SetParent($ChilD, $ParenT)

That's probably not what you are looking for, but without a better description of your problem, you probably won't get a better answer than what I just gave you.


RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post


Link to post
Share on other sites
salim

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

Local $msg
$ParenT = GUICreate('', 700, 500, -1, -1, $WS_POPUP)
GUISetBkColor(0x000000)
GUISetState(@SW_SHOW)
$ChilD = GUICreate('', 100, 100, 300, 300, $WS_POPUP)
GUISetBkColor(0x800000)
_WinAPI_SetParent($ChilD, $ParenT)
GUISetState(@SW_SHOW, $ChilD)
Sleep(1000)
WinMove($ChilD,"",100,300,100,100,10)
Sleep(1000)
WinMove($ChilD,"",100,100,100,100,10)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

If $ParenT = GUICreate('', 700, 500, 0, 0, $WS_POPUP) Gui Move Normal

if $ParenT = GUICreate('', 700, 500, -1, -1, $WS_POPUP) Gui ChilD Move Random And Gui ChilD Error

So... How To WinGetPos "Gui Child" Or WinGet...?? I don't know how to make gui child move normal when ParenT gui in -1,-1 position or any place in desktop..

Thank's..

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.