if you press F1 then at the next Left Mouse Click you will save a screengrab.
I came up with this:
Code: Select all
Stop := 0
EE := 0
F1::
{
SendMode Input
~LButton::
{
send #{PRINTSCREEN}
FormatTime, TimeString, , dd'-'MMM'_'hh'-'mm'_s'ss
Sleep, 800
FileMove, C:\Users\sergioMacUser\Pictures\Screenshots\*.png, C:\Users\sergioMacUser\Pictures\%TimeString%_Trade-%Stop%.png
Sleep, 50
FileDelete, C:\Users\sergioMacUser\Pictures\Screenshots\*.png
if (EE = 1) {
Stop := Stop + 1
EE := 0
}
else if (EE = 0) {
EE := 1
}
}
Return
}
Return
At the moment it works but it makes screenshots also when I press F1, instead it should only do screengrab when the left mouse button is pressed. F1 is only like the activation of the gun but the trigger is only LButton.
I should also add that pressing F2 deactivates the trigger.
Once LButton is clicked once it shoud deactivate too. So to make another screengrab you have to press F1 again.
Any help to fix my issue?
Thanks!