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 

SendInput and Send

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
hugson



Joined: 07 Apr 2007
Posts: 12

PostPosted: Sat Jun 20, 2009 2:53 pm    Post subject: SendInput and Send Reply with quote

The Help states that
Quote:
SendInput and SendPlay use the same syntax as Send but are generally faster and more reliable.

However, I have found the opposite is true when using Microsoft Remote Desktop. With AutoHotkey running on the host computer, I set a hotkey to type "The quick brown fox jumps over the lazy dog".
Focused in Notepad on the remote computer, I may get the entire phrase using SendInput, but usually the last 1-3 characters are missing.
Using Send seems to prevent this problem.
_________________
Regards,

Paul
Back to top
View user's profile Send private message Send e-mail
JDN



Joined: 24 Mar 2004
Posts: 299

PostPosted: Sat Jun 20, 2009 7:53 pm    Post subject: Reply with quote

First of all, the documentation says "generally" which seems to me, in this case, means "most of the time". So, it's quite possible that in your particular case, that just doesn't hold.

In addition, I recall the docs for Send, SendInput and SendPlay are very extensive and they explain that there are many different circumstances that affect the performance of those commands.

I'm sure that the AHK developer appreciates your feedback, but I'd suggest you take another look at the help file for Send, SendInput & SendPlay and see if you can spot any explanation as to why Send may be faster than SendInput and SendPlay in your particular circumstance.
Back to top
View user's profile Send private message
hugson



Joined: 07 Apr 2007
Posts: 12

PostPosted: Sun Jun 21, 2009 1:53 am    Post subject: Reply with quote

JDN wrote:
First of all, the documentation says "generally" which seems to me, in this case, means "most of the time". So, it's quite possible that in your particular case, that just doesn't hold.

In making my comments I am not being at all critical so I'm not sure why you seem so defensive - I just want to see if others have experienced the same behaviour.

Quote:
I'm sure that the AHK developer appreciates your feedback, but I'd suggest you take another look at the help file for Send, SendInput & SendPlay and see if you can spot any explanation as to why Send may be faster than SendInput and SendPlay in your particular circumstance.

No, I didn't say faster, I simply said more reliable. It's quite obvious that Send is considerably slower than SendInput. Maybe SendInput's superior speed is contributing to the behaviour I see.
_________________
Regards,

Paul
Back to top
View user's profile Send private message Send e-mail
JDN



Joined: 24 Mar 2004
Posts: 299

PostPosted: Tue Jun 23, 2009 9:23 pm    Post subject: Reply with quote

I apologize if my post seemed to be defensive.

I assure you that was not my intention.
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 5044
Location: the tunnel(?=light)

PostPosted: Tue Jun 23, 2009 9:31 pm    Post subject: Reply with quote

I use SendInput mode to send text through a remote client app every day and have next to no problems. That being said, there are some situations where SendInput mode will not work for me in the remote client and I have to use SendEvent mode. There is a reliability issue there but it's not AHK's, it's the remote client's. It's good that you caught it because it will save you trouble as you write more script to interact with it.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message Send e-mail
hugson



Joined: 07 Apr 2007
Posts: 12

PostPosted: Tue Jun 23, 2009 10:11 pm    Post subject: Reply with quote

sinkfaze wrote:
I use SendInput mode to send text through a remote client app every day and have next to no problems. That being said, there are some situations where SendInput mode will not work for me in the remote client and I have to use SendEvent mode. There is a reliability issue there but it's not AHK's, it's the remote client's. It's good that you caught it because it will save you trouble as you write more script to interact with it.

Thanks for your response. The thought that it might be an AHK problem never crossed my mind - I was confident the problem was caused either by RDP or by our pathetic netwok!
_________________
Regards,

Paul
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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