Jump to content


alt3


  • Please log in to reply
2 replies to this topic

#1 isaac

isaac
  • Guests

Posted 16 April 2012 - 12:00 AM

i need a ahk that when i press F3 sends F3 then ALT + 3

$F3::
time = 0
Loop
{
    if not GetKeyState("F3", "P")
        break
    if ( time == 5 ) {
        Send { !3 } ; esta es la parte q no funciona D:
        click
        time = 0
    }

    Send { F3 }
    Click
    time = time + 1
}
return


#2 4lex

4lex
  • Members
  • 14 posts

Posted 16 April 2012 - 12:32 AM

I've always found I set up a loop using the key itself in the hotkey. I'd probably map a !{f3} to {f3}!3 if that's workable for your application.

#3 janopn

janopn
  • Members
  • 691 posts

Posted 16 April 2012 - 01:21 PM

Hola, Isaac :p

$F3::
time = 0
Loop
{
    if not GetKeyState("F3", "P")
        break
    if ( time == 5 ) { ;
        Send [color=#FF0000]{Alt down}3{Alt up}[/color] ;a ver si ahora funciona
        click
        time = 0
    }

    Send { F3 }
    Click
    time = time + 1
}
return