This may have been asked and answered a thousand times, but I am unable to find it on the forum. I have a spreadsheet. In that spreadsheet are some cells with various values. I want to manually mark the cell with the mouse, copy a value to the clipboard (ctrl+c), save the clipboard as a variable, do a calculation with that variable, and paste it in another program along with a series of other strings.
I don't want anything too fancy, if it can be avoided. I can make my command work, when I copy a number in a notepad window for example. Just not within Libre Office Calc. I assume it will also be a problem in excel and I need the command to work in both. Also, I use the European style of designating decimals, so I need the command to be able to copy a float with a comma (10,2 not 10.2) and also paste a float with a comma. This last part I have not been able to yet either. This is what I have:
Code: Select all
!u::
U := Clipboard
sleep 100
if U is number
{
P := U * 0.25
Send %P%{Tab}Hello{Tab}There
}
else
MsgBox %U% is not a number
return