notwilltoledo 0 Posted July 14, 2019 My little simple script works fine up until line 41, where it doesn't copy the text I've highlighted (code below). While doing Ctrl V, it still pastes what I previously had in my clipboard, but also opens inspect element? Any Ideas? At the bottom of the SciLite window it tells me: > >The parameter is incorrect. expandcollapse popup#include <AutoItConstants.au3> ;#include <EditConstants.au3> ;#include <GUIConstantsEx.au3> ;#include <WindowsConstants.au3> ;#include <FileConstants.au3> ;#include <MsgBoxConstants.au3> ;#include <WinAPIFiles.au3> AutoItSetOption("MouseCoordMode", 0) HotKeySet("!{F12}","leave") ; press alt+f12 to insta quit Func leave() Exit EndFunc ; Double click at the x, y position of 0, 500. MouseClick($MOUSE_CLICK_LEFT, 347, 1013, 2) sleep(1500) MouseClick($MOUSE_CLICK_LEFT, 70, 300, 1) sleep(1500) MouseClick($MOUSE_CLICK_LEFT, 70, 150, 1) Send("Name") Send("{TAB}");<= to change to some other field Send("Pass") sleep(1500) MouseClick($MOUSE_CLICK_LEFT, 70, 220, 1) sleep(1500) MouseClickDrag($MOUSE_CLICK_LEFT, 90, 130, 50, 130) ;attempted copy paste ;Send("{LCTRL DOWN}") Send("^{C}") ;Send("{LCTRL UP}") MouseClick($MOUSE_CLICK_LEFT, 50, 130, 0) Send("{TAB}") ;Send("") ;Send() Send("^{V}") Share this post Link to post Share on other sites
FrancescoDiMuro 418 Posted July 14, 2019 (edited) @notwilltoledo The "c" character is not a special key, so, just use "^c" to Copy and "^v" to paste. Pay attention at the capitalization of the characters, since "c" and "C" are threatened differently in the Send() function Edited July 14, 2019 by FrancescoDiMuro 1 notwilltoledo reacted to this Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Share this post Link to post Share on other sites
notwilltoledo 0 Posted July 14, 2019 5 minutes ago, FrancescoDiMuro said: @notwilltoledo The "c" character is not a special key, so, just use "^c" to Copy and "^v" to paste. Pay attention at the capitalization of the characters, since "c" and "C" are threatened differently in the Send() function Thank you so much! Any way I can +rep? Share this post Link to post Share on other sites
FrancescoDiMuro 418 Posted July 14, 2019 @notwilltoledo Any way you can what? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Share this post Link to post Share on other sites