How to add F1 keys to Program

12/27/2009 14:46 SaM.ThE.MaN#1
while 1
MouseClick("Left", 571, 392)
MouseClick("Right", 571,392)
Sleep(5000)
MouseClick("Left", 468, 352)
MouseClick("Right", 468,352)
Sleep(5000)
wend

Yo,
This is my program made with autoit,
i wanna make the program press the F5 key so i can put sit on F5 so i can sit then right click then move then sit then right click like this below:

while 1
F5
MouseClick("Left", 571, 392)
MouseClick("Right", 571,392)
Sleep(5000)
F5
MouseClick("Left", 468, 352)
MouseClick("Right", 468,352)
Sleep(5000)
wend



If any1 could help me ill be really happy,
Sammy
12/27/2009 15:18 Kazaaa#2
Dude, please read the helpfile.
12/27/2009 18:42 SaM.ThE.MaN#3
Yo,
If it opened up i wouldnt ask |-.-|,
Sammy
12/28/2009 21:18 AllesVergeben#4
Öhm...I cant understand you...please try it with proper english?

Do you want a function called by pressing F5 or something else?
12/28/2009 21:26 Shadow992#5
Dude take this and be happy ;)
PHP Code:
Send("{F5}"
12/29/2009 06:42 SaM.ThE.MaN#6
Umm Yo,
i appreciate u all tryin to help but autoit legend <--- xD hiyoal already helped me so ty,
Sammy
12/31/2009 15:58 Busti#7
HotKeySet( "KEY" , "FUNCTION" )

Greetings.
12/31/2009 18:45 Hotwert#8
Quote:
while 1
F5
MouseClick("Left", 571, 392)
MouseClick("Right", 571,392)
Sleep(5000)
F5
MouseClick("Left", 468, 352)
MouseClick("Right", 468,352)
Sleep(5000)
wend
Code:
Hotkeyset("{f5}", "test")
func test()
while 1
MouseClick("Left", 571, 392)
MouseClick("Right", 571,392)
Sleep(5000)
MouseClick("Left", 468, 352)
MouseClick("Right", 468,352)
Sleep(5000)
wend
endfunc
while 1
sleep(2000)
wend
12/31/2009 18:51 Busti#9
Quote:
Originally Posted by Hotwert View Post
Code:
Hotkeyset("{f5}", "test")
func test()
while 1
MouseClick("Left", 571, 392)
MouseClick("Right", 571,392)
Sleep(5000)
MouseClick("Left", 468, 352)
MouseClick("Right", 468,352)
Sleep(5000)
wend
endfunc
while 1
sleep(2000)
wend
If i start that it will end up in an endless loop..

use this :
Code:
Hotkeyset("{f5}", "test")
func test()
MouseClick("Left", 571, 392)
MouseClick("Right", 571,392)
Sleep(5000)
MouseClick("Left", 468, 352)
MouseClick("Right", 468,352)
sleep(5000)
endfunc
while 1
sleep(1000)
wend
12/31/2009 19:18 Hotwert#10
Ich dachte das will er so weil er die while schleife ja selber geschrieben hat^^