Scorpys Posted December 11, 2021 Posted December 11, 2021 So I use this line to clean up some image: Local $Magick = 'magick convert "C:\Users\ME\Desktop\Captcha Image\image.png" -fuzz 12% -fill white +opaque "#f07848" image1.png"' RunWait(@ComSpec & " /c " & $Magick) I would like to make it so that this bit "f07848" is pulled from the clipboard. How can I do it? p.s I am googling for a solution, I don't just ask and expect to be given the answer. But I'm not very good with coding in AutoIT or otherwise, so I ask here in case I fail to find a solution, or just to get the solution faster Thanks
Scorpys Posted December 11, 2021 Author Posted December 11, 2021 So I found this code which works: Send("Your Text Copied From Notepad: " & ClipGet()) But how to I add it to my code above?
Scorpys Posted December 11, 2021 Author Posted December 11, 2021 I figured out how to make it work using the Send command Send("magick convert image.png -fuzz 15% -fill white {+}opaque ""{#}" & ClipGet() & """ image1.png") But it won't work to incorporate it in the code in my original post. Any help?
Luke94 Posted December 11, 2021 Posted December 11, 2021 (edited) -snip- Edited December 11, 2021 by Jos Scorpys 1
Scorpys Posted December 11, 2021 Author Posted December 11, 2021 That's beautiful. It worked. Thank you
Developers Jos Posted December 11, 2021 Developers Posted December 11, 2021 @Scorpys AND @Luke94 Please read our forum rules (again) as we do not allow discussion/question that bypass security measures in our forums! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts