Sign in to follow this  
Followers 0
ycomp

Flakey Send?

5 posts in this topic

Hi, I'm using Send to send !{F3}... occasionally the window only seems to receive F3 instead of !{F3}.. that is, usually it works properly and the ALT F3 action is executed... but occasionally I see that an F3 action is executed. Because it is intermittent it is hard to debug.

Does anyone know why this occurs, and if there is a workaround? Would ControlSend perhaps be more reliable?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Send({Alt Down})
Send({F3})
sleep(100)
Send({Alt Up})

Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

The way to go in ANY case is to use ControlSend!

However, I'v noticed some functions not to respond to that as well.

In most cases this is due to timing issues (as in speed). In the past I delt with this

by adding a short pause in executing the script, like so:

;some code
Sleep(111)  ; this will pause the script for .11 seconds
;some code
Sleep(111)
;some code

etc.

Hope this helps,

Martin

Share this post


Link to post
Share on other sites

great, I will try suggestions on this page.. thanks guys

Share this post


Link to post
Share on other sites

great, I will try suggestions on this page.. thanks guys

Might be worth looking up SendKeyDelay and SendKeyDownDelay in AutoItSetOption.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0