AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ControlSend doesn't work with hidden windows

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
ABCza
Guest





PostPosted: Thu Apr 03, 2008 11:08 am    Post subject: ControlSend doesn't work with hidden windows Reply with quote

Hi, i don't know if this problem is known.

The code is:
Code:

...
Gui, Show, AutoSize Hide, Command:
DetectHiddenWindows, On
ControlGet, cId, Hwnd,, Edit1, Command:
DetectHiddenWindows, Off
...


This should work because the help says "To operate upon a control's HWND (window handle), leave the Control parameter blank and specify ahk_id %ControlHwnd% for the WinTitle parameter (this also works on hidden controls even when DetectHiddenWindows is Off)"
Code:

...
ControlSend,  , ^a, ahk_id %cId%
WinShow, Command:
...


I tried also
Code:

...
DetectHiddenWindows, On
ControlSend,  Edit1, ^a, Command:
DetectHiddenWindows, Off
WinShow, Command:
...


But with no success. What i need to do is to select text before the windows is showed. In Vista, this works, but not in XP.

It's a bug?[/code]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group