ViciousXUSMC Posted February 9, 2017 Share Posted February 9, 2017 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 More sharing options...
Danyfirex Posted February 9, 2017 Share Posted February 9, 2017 (edited) Hello. use $SEND_RAW in Send. Saludos Edited February 9, 2017 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now