Jump to content

Recommended Posts

Posted

Hi guys,

I'm using ControlSend to fill an edit field of an external program.

I'm sending a string of 200 lines but it's so slowww..It's character by character..

Even if I set Opt("sendkeydelay", "1"), it's still slow.

Is there a way to dispatch a long string to that external edit field faster?

The alternative I can think is using clipboard? Is there another way?

Thanks!

Posted

  Undutchable said:

The alternative I can think is using clipboard? Is there another way?

clipget & clipput with sending Ctrl+v will probably b best solution for this

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

  Reveal hidden contents


460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Posted (edited)

Using clipboard (the smart/safe way :mellow:):

_ControlSendEx("Title", "", "Edit1", "New Data")

Func _ControlSendEx($hWnd, $sText, $iCtrlID, $sString)
    ControlFocus($hWnd, $sText, $iCtrlID)
    
    Local $sOldClip = ClipGet()
    ClipPut($sString)
    
    Send("+{Insert}")
    ClipPut($sOldClip)
EndFunc

Or you can use ControlSetText(), or if you need to append the text, then use ControlCommand() with EditPaste:

ControlCommand("Title", "", "Edit1", "EditPaste", "New Data")
Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...