AutoHotkey Community

It is currently May 26th, 2012, 8:54 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: SendInput and Send
PostPosted: June 20th, 2009, 3:53 pm 
Offline

Joined: April 7th, 2007, 6:13 am
Posts: 12
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2009, 8:53 pm 
Offline

Joined: March 24th, 2004, 2:34 pm
Posts: 299
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2009, 2:53 am 
Offline

Joined: April 7th, 2007, 6:13 am
Posts: 12
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2009, 10:23 pm 
Offline

Joined: March 24th, 2004, 2:34 pm
Posts: 299
I apologize if my post seemed to be defensive.

I assure you that was not my intention.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2009, 10:31 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
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.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2009, 11:11 pm 
Offline

Joined: April 7th, 2007, 6:13 am
Posts: 12
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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, coinman, oldbrother and 63 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