Right now I have a GUI where I press a "Copy Data" button and it will capture the on screen data, then "Paste Data" button would paste the OCR data.
I want to make it so that I can press "Copy Data" button twice, to capture 2 different on screen data. Then when "Paste Data" is pressed, the OCR data would be merged into one.
Eg: "Copy Data" captures "chicken", then I press "Copy Data" again to capture "nugget". Paste data will return "chicken nugget".
Been scratching my head at this for awhile, will appreciate any help I can get. Thank you!
Code: Select all
CopyData:
Gui, Submit, NoHide
BlockInput MouseMove
WinActivate, ahk_exe Mtl.exe
sleep, 500
vvdata := OCR([390, 90, 85, 630], "eng")
FormatTime, CurrentTime,, HH:mm
Clipboard := ""
Clipboard := "
(LTrim
" CurrentTime "
" vvdata "
)"
BlockInput MouseMoveOff
PasteData:
Gui, Submit, NoHide
{
WinActivate, ahk_exe chrome.exe
WinMaximize, chrome.exe
Send ^v
}
Gui, Show
Return