thanks
Code: Select all
$F6::
MyVar := 0
Loop 3
{
MouseClick, left
MyVar++
if (%MyVar% = 3) {
Send {F7}
}
}
Return
$F7::
Loop 3
{
MouseClick, right
}
Return
Code: Select all
$F6::
MyVar := 0
Loop 3
{
MouseClick, left
MyVar++
if (%MyVar% = 3) {
Send {F7}
}
}
Return
$F7::
Loop 3
{
MouseClick, right
}
Return
Code: Select all
MyVar := 3
if (%MyVar% = 3)
MsgBox, It works with percent symbols
else
MsgBox, It doesn't work with percent symbols
if (MyVar = 3)
MsgBox, It works without percent symbols
else
MsgBox, It doesn't work with percent symbols
Code: Select all
if (MyVar = 3)
Send {F7}
else
Send {F7}
What are you expecting to happen when it sends F7?
Code: Select all
F6::
MyVar := 0
Loop 3
{
SoundBeep, 500
MyVar++
if (MyVar = 3)
SoundBeep, 1000
}
return
The fact that it's v1 isn't the problem and won't be fixed by translating it to v2. How are you checking to see if F7 is sent? Replace that line with a MsgBox and I'm sure you'll see the MsgBox pop up.florenceee01 wrote: ↑ anyway i'll try it on v2
boiler wrote: ↑30 Apr 2024, 12:48What are you expecting to happen when it sends F7?
This shows that the script itself (when corrected as I suggested) works, by beeping a low-pitch 3 times followed by high-pitch beep only the third time:Code: Select all
F6:: MyVar := 0 Loop 3 { SoundBeep, 500 MyVar++ if (MyVar = 3) SoundBeep, 1000 } return
The fact that it's v1 isn't the problem and won't be fixed by translating it to v2. How are you checking to see if F7 is sent? Replace that line with a MsgBox and I'm sure you'll see the MsgBox pop up.florenceee01 wrote: ↑ anyway i'll try it on v2
Code: Select all
if (MyVar = 3)
Send {F7}
else
Send {F7}
Users browsing this forum: Google [Bot], primus12 and 116 guests