AutoHotkey Community

It is currently May 27th, 2012, 12:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Bug in Gui,Add,Edit ??
PostPosted: October 2nd, 2005, 2:07 am 
Hi Guys,
Not sure if it's me or a bug.
When I use the code below it gets
the active title then displays the
title in a msgbox and then displays
the title in a Gui,Add,Edit window.

Things are ok for the first time round.

Now select a different window (not the same title!).
Now with my setup the msgbox displays the correct window title
BUT the Gui,Add,Edit STILL shows
the old window title!

Any ideas??
Thanks,
Jan
PS I can get Gui,Add,Edit window
to show the right title by using the
SEND command

;Code------------------
#y: ;Hotkey winkey y change to suit WinGetTitle, title,A
MsgBox, Wintitle is %title%
Gui, Add, Edit, r19 ,Wintitle is %title%
Gui, Show
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2005, 2:09 am 
Sorry code got mangled

;Code------------------
#y: ;Hotkey winkey y change to suit

WinGetTitle, title,A
MsgBox, Wintitle is %title%
Gui, Add, Edit, r19 ,Wintitle is %title%
Gui, Show
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2005, 4:31 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Are you intentionally adding additional Edit controls or are you trying to change the text in the first Edit control that you create? The text is likely correct but the additional controls are likely not being shown as they would be past the right edge of the window...

After the Edit control has been created, one way of changing the control's contents would be to use GuiControl.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group