Sign in to follow this  
Followers 0
jakonline

about sending string

7 posts in this topic

how to send whole string in once instead of sending letter by letter.

i have tried to set SendKeyDelay to 0ms, but it still send letter by letter,

thx.

Share this post


Link to post
Share on other sites



Try using ControlSetText.


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

And this way it isn't fast enough?

Opt('SendKeyDelay', 0)
Opt('SendKeyDownDelay', 0)
Send('100000000000000000000000000000000000000000000000000000000000000000000')

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

_send('100000000000000000000000000000000000000000000000000000000000000000000')
Func _send($text)
Local $tmp = ClipGet()
ClipPut($text)
Send('^v')
ClipPut($tmp)
EndFunc   ;==>_send


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

oh,yes, it's much faster,

i didn't know that SendKeyDownDelay also affects the sending speed, thank you !

therefore, here's an extra problem i noticed,

when

opt("SendKeyDelay",5)

opt("SendKeyDownDelay",5) both default speed 5

and when it's sending, u can hear some small continual noise from your hard disk,

i wonder if it's a little bit harmful or not...

the noise sound also appears when using MouseMove to point your mouse.

HotKeySet("{f2}","send_string")
Opt('SendKeyDelay', 5)
Opt('SendKeyDownDelay', 5)
while 1
Sleep(1000)
WEnd
Func send_string()
Send(clipget())
EndFunc
Edited by jakonline

Share this post


Link to post
Share on other sites

Those commands do not effect your hard drive.


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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