Code: Select all
$!Tab::
Text:="|<>*70$28. "
if (ok:=FindText(1879, 3, 1915, 41, 0, 0, Text))
{
}
else
{
sendinput {alt down}
sleep,1
sendinput {Tab}
sleep,1
sendinput {alt up}
}
return
Code: Select all
$!Tab::
Text:="|<>*70$28. "
if (ok:=FindText(1879, 3, 1915, 41, 0, 0, Text))
{
}
else
{
sendinput {alt down}
sleep,1
sendinput {Tab}
sleep,1
sendinput {alt up}
}
return
Code: Select all
$!Tab::
Text:="|<>*70$28. "
if (ok:=FindText(1879, 3, 1915, 41, 0, 0, Text))
{
}
else
{
KeyWait, Tab
Send, {Alt down}{tab}
}
return
no need that keywait after test itRohwedder wrote: ↑26 Jan 2022, 02:50Hallo,
try (not tested with FindText()):Code: Select all
$!Tab:: Text:="|<>*70$28. " if (ok:=FindText(1879, 3, 1915, 41, 0, 0, Text)) { } else { KeyWait, Tab Send, {Alt down}{tab} } return
Code: Select all
$!Tab::
Text:="|<>*70$2"
if (ok:=FindText(1879, 3, 1915, 41, 0, 0, Text))
{
}
else
{
Send, {Alt down}{tab}
sleep,1
Send,{Alt up}
}
return