AutoHotkey Community

It is currently May 27th, 2012, 3:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Input and ControlSend
PostPosted: November 8th, 2005, 3:46 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Didn't find out if it's a bug or by design:
It is not possible to catch any keys sent by "ControlSend" with the Input-Command. With "Send" it works as it should...

Code:
Gui, Add, Edit
Gui, Show
Input, Keys, L5 V,
msgbox %Keys%
reload
return

!.::
ControlSend, Edit1, 12345678, TestInput
;Send, 12345678
return


If it is not a bug:
help wrote:
I: Ignore input generated by AutoHotkey itself, such as the Send command.
Which other possibilities are ignored with this Option?

Bye,
Thalon


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2005, 2:21 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Since ControlSend operates by posting messages directly to the target control, there is no way for Input to catch it. I would update the documentation but I think this issue is a little too obscure to document.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2005, 4:53 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Okay, I do already have a workaround for my problem, so it doesn't matter.

So it's not a bug it's a feature!

Image

Thalon


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 2 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