Sign in to follow this  
Followers 0
SpookMeister

redirect: Working with a child window

2 posts in this topic

I posted a question in the GUI forum a while ago, because I thought it fit there best, but I'm thinking its not being seen there.

If you wouldn't mind could some of you take a look at it? Thanks.

http://www.autoitscript.com/forum/index.php?showtopic=48300


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites



I posted a question in the GUI forum a while ago, because I thought it fit there best, but I'm thinking its not being seen there.

If you wouldn't mind could some of you take a look at it? Thanks.

http://www.autoitscript.com/forum/index.php?showtopic=48300

Is this anything like what you are trying to do?:

#include <GUIConstants.au3>
Global $mode = 0
Global $ChildGRK    ÌÍÐÚ[[] ÌÍÐÚ[]ÛÜ
    ][ÝÑÕRSÛ][[ÙI][ÝËJBb33c´uTÒuT7&VFRgV÷C´ÖâgV÷C²ÂCÂS¤uT6WDöäWfVçBb33c´uTôU9Q}
1=M°ÅÕ½Ðí}EÕ¥ÐÅÕ½Ðì¤(ÀÌØí±°ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðí5½Àquot;, 20, 50, 360, 30, $SS_SUNKEN + $SS_CENTER)
$button1 = ÕRPÝÜX]P]Û   ][ÝÓ[ÙI][ÝËL
BÕRPÝÙ]Û][
LK  ][Ý×4Ä4µö'WGFöâgV÷C²¢b33c¶'WGFöã"ÒuT7G&Ä7&VFT'WGFöâgV÷Cµ6WGFæw2gV÷C°ÄÀÀ°ÄÀÀ¤)U%
ÑɱMÑ=¹Ù¹Ð ´Ä°ÅÕ½Ðí}
1%
-}ÕÑѽ¸ÅÕ½Ðì¤(ÀÌØíÕÑѽ¸Ì GUICtrlCreateButton("Exit", 350, 100)
GUICtrlSetOnEvent($GUWÑUSÐÓÔÑK ][Ý×Ô]Z] ][ÝÊBÌÍØÛÛ^Y[HHÕRPÝÜX]PÛÛ^YçRb33c´uT ¤uT6WE7FFR ¥vÆR b33c·&VFÆ&VÂÒuT7G&Å&VBb33c¶°¤(%M±Ð($%
ÍÀÌØíµ½ôÀ($$%%ÀÌØíɱ°±ÐìÐìÅÕ½Ðí5½e 0" Then GUICtrlSetData($label, "Mode 0")
        Case &#036Û[ÙHHBBBRY  ÌÍÜXYX[  ÉÝÈ  ][ÝÓ[ÙHI][ÝÈ[ÕRPÝÙ]Fb33c¶Æ&VÂÂgV÷C´ÖöFRgV÷C² 66Rb33c¶ÖöFRÒ  bb33c·&VF°±ÐìÐìÅÕ½Ðí5½ÈÅÕ½ÐìQ¡¸U%
ÑɱMÑÑ ÀÌØí±°°ÅÕ½Ðí5½ 2")
    EndSelect
WEnd

Func _CLICK_button()
    Local $ButtonID = @GUWÐÝYTÝÚ]Ú ÌÍÐ]ÛQBPØÙH   ÌÍØ]ÛBBBTÙ[XÝBBBPØÙH    Ìc¶ÖöFRÒ b33c¶ÖöFRÒ 66Rb33c¶ÖöFRÒ b33c¶ÖöFRÒ  $$%
ÍÀÌØíµ½ôÈ($$$$$ÀÌØíµ½ôÀ($$%¹M±Ð($%
ÍÀÌØíÕÑѽ¸
            _CreateChildGUI()
        Case $ChildButton
            $mode = GUICtrlRead(ÌÍÐÚ[[]
BQ[ÝÚ]Ú[[ÈÏOIÝ×ÐÓPÒ×Ø]Û[ÈÔ]Z]

BQ@¤VæDgVæ2³ÓÒfwCµõV@ ¤gVæ2ô7&VFT6ÆDuT b33c´6ÆDuTÒuT7&VÑ ÅÕ½Ðí5¥¸éMÑÑ¥¹ÌÅÕ½Ðì°ÈÀÀ°ÄÀÀ°ÄÀÀ°ÄÀÀ°´Ä°´Ä°ÀÌØíU$¤(%U%MOnEvent($GUI_EVENT_CLOSE, "_CloseChildGUI")
    GUICtrlCreateLa[
    ][ÝÓ[ÙN  ][ÝËLL
BIÌÍÐÚ[[]HÕRPÝÜX]R[WBb33c¶ÖöFRÂÂÂSÂ# uT7G&Ä7&VFUWF÷vâÓ uT7G&Å6WDÆÖBÓÈ°À¤($ÀÌØí
¡¥±  ÕÑѽ¸ôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí
¡¹5½ÅÕ½Ðì°ÔÀ 40, 100, 50)
    GUICtrlSetOnEvent(-1, "_CLICK_button")
    GUISetStatJÕ×ÔÒÕË ÌÍÐÚ[ÕRJB[[ÈÏOIÝ×ÐÜX]PÚ[ÕRB[ÈÐÛÜÙPÚÆDuT uTFVÆWFRb33c´6ÆDuT¤VæDgVæ2³ÓÒfwCµô6Æ÷6T6ÆDuT

:rolleyes:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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