| View previous topic :: View next topic |
| Author |
Message |
hugson
Joined: 07 Apr 2007 Posts: 12
|
Posted: Sat Jun 20, 2009 2:53 pm Post subject: SendInput and Send |
|
|
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 |
|
 |
JDN
Joined: 24 Mar 2004 Posts: 299
|
Posted: Sat Jun 20, 2009 7:53 pm Post subject: |
|
|
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 |
|
 |
hugson
Joined: 07 Apr 2007 Posts: 12
|
Posted: Sun Jun 21, 2009 1:53 am Post subject: |
|
|
| 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 |
|
 |
JDN
Joined: 24 Mar 2004 Posts: 299
|
Posted: Tue Jun 23, 2009 9:23 pm Post subject: |
|
|
I apologize if my post seemed to be defensive.
I assure you that was not my intention. |
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 5044 Location: the tunnel(?=light)
|
Posted: Tue Jun 23, 2009 9:31 pm Post subject: |
|
|
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 |
|
 |
hugson
Joined: 07 Apr 2007 Posts: 12
|
Posted: Tue Jun 23, 2009 10:11 pm Post subject: |
|
|
| 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 |
|
 |
|