Jump to content

Missing Chraracters in Send()


Recommended Posts

I am working on a online class where we have lab instructions on a website and have to type in long complex query strings.

To make it easier I want to copy/paste them, but it wont work native since the labs are a VM through AWS.

So I put together a quick and dirty copy/paste script like I had done in the past, but I am getting a strange behavior.

Here is the script:

AutoItSetOption("SendKeyDelay", 40)
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F1}", "SuperCopy")
HotKeySet("{F2}", "SuperPaste")

Global $sTempClip

While 1
    Sleep(10)
WEnd

Func Terminate()
    Send("")
    Exit
EndFunc

Func SuperCopy()
    Send("^c")
    Sleep(10)
    $sTempClip = ClipGet()
    Sleep(10)
    Send("")
EndFunc

Func SuperPaste()
    Send("^a")
    Sleep(10)
    Send("{DEL}")
    Sleep(10)
    Send($sTempClip)
    Sleep(10)
    Send("")
EndFunc

And here is an example of a string that I get the same bad result every time.

String is:

class=BRO_HTTP limit:9999 | grep(site,[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})

Yet when I do my "paste" every time I get this result:

class=BRO_HTTP limit:9999 | grep(site,[0-9]1\.[0-9]1\.[0-9]1\.[0-9]1)

 

I have tried messing with my modifiers to slow it down incase it was too fast, thats not it (and its always the same string not random).  I sort of assume its to do with the "stuck key bug" but that is why I have the Send("") in there as I recall that is a way to clear stuck alt/control keys also I put my hotkeys on the F Keys instead of using a modifier.

It's kinda late, been studying all night, figured I would post this up and see what comes of it tomorrow.

 

Thanks for the help everyone.

Link to comment
Share on other sites

Hello. use $SEND_RAW in Send.

 

Saludos

 

Edited by Danyfirex
Link to comment
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
 Share

  • Recently Browsing   0 members

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