I'm trying to use some iteration of the Control command to send Ctrl+A to this spreadsheet to highlight everything, and then use Ctrl+C to copy it to the clipboard. This should be simple but for some reason nothing I'm using is working.
What my script currently does is just click the area here in the red circle and then copy it to the clipboard.
Unfortunately doing this on different computers with different resolutions can be problematic so I want something a little more consistent. Here is the Code that I feel SHOULD work but doesn't:
Code: Select all
` & d::
Keywait, ``
SetTitleMatchMode, 2
Clipboard=
WinActivate, Material Holds / Label Printing / Relieve Material
Sleep, 100
ControlSend, OGrid1, ^a, Material Holds / Label Printing / Relieve Material
SendInput, ^c
Clipwait
Msgbox, %clipboard%
return
Thank you in advance