Dabz Posted January 12, 2008 Share Posted January 12, 2008 I'm playing Rising Force Online, a MMORPG. And i need a program to 'press' F7 key three times with a delay of 10 second every 1 minute. I mean, it will press F7 key at hours:minute:second 00:00:00 00:00:10 00:00:20 00:01:00 00:01:10 00:01:20 and so on.. it's very simple, isn't it? i've tried another program such as Macro Expert and WinTask. But everytime i tried to record it (Pressing F7 when i'm playing the game) the program couldn't detect anything i do in that game.. and i hope AutoIt could help me with this problem.. The title of the window is 'RF Online'.. Thx 4 helping me.. Link to comment Share on other sites More sharing options...
Brickoneer Posted January 12, 2008 Share Posted January 12, 2008 (edited) Are you looking for something like... while 1 $begin = timerinit() do sleep(10) until timerdiff($begin) > 10000 send("{F7}") wend this? Edited January 12, 2008 by Brickoneer Link to comment Share on other sites More sharing options...
Zedna Posted January 12, 2008 Share Posted January 12, 2008 something like this? While 1 While 1 Send("{F7}") Sleep(10000) ; 10s WEnd Sleep(60000) ; 1min WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted January 12, 2008 Share Posted January 12, 2008 something like this? While 1 While 1 Send("{F7}") Sleep(10000) ; 10s WEnd Sleep(60000) ; 1min WEndoÝ÷ Ûú®¢×·¶)±«¢+Ù]¡¥±Ä(%]¡¥±Ä($%½ÈÀÌØí¤ôÄQ¼Ì($%M¹ ÅÕ½ÐííÝôÅÕ½Ðì¤($%9áÐ($%M±À ÄÀÀÀÀ¤ìÄÁÌ(%]¹(%M±À ØÀÀÀÀ¤ìŵ¥¸)]¹ Link to comment Share on other sites More sharing options...
Dabz Posted January 12, 2008 Author Share Posted January 12, 2008 Thx all.. i'll try it.. if i put WinWaitActive("RF Online") it will be ok right? Link to comment Share on other sites More sharing options...
Swift Posted January 12, 2008 Share Posted January 12, 2008 or... While 1 Sleep(10000) Send("{F7}") WEnd ez... Link to comment Share on other sites More sharing options...
Dabz Posted January 13, 2008 Author Share Posted January 13, 2008 Hello all,, i've try it.. and it's simply doesn't work ! i don't know why. But i think it's because the program block it, because when i try WinWaitActive("Untitled - Notepad") While 1 While 1 Send("trying") Sleep(10000); 10s Send("trying") Sleep(10000); 10s Send("trying") Sleep(10000); 10s WEnd Sleep(60000); 1min WEnd it works. but it's keep on sending "trying" every 10 second instead of sending it 3 times every minute.. it works on notepad. but when i try to run it on the game (it should make me chat "trying" every 10 second) but nothing happened. So i conclude that AutoIt couldn't do it on RF Online.. and when i try WinWaitActive("Untitled - Notepad") While 1 While 1 For $i = 1 To 3 Send("trying") Next Sleep(10000); 10s WEnd Sleep(60000); 1min WEnd it send "trying" 3 times without 10sec delay between each word.. anyone can help? i'm really don't understand.. hopefully there is a RF Online player so he/she can try it.. Link to comment Share on other sites More sharing options...
Dabz Posted January 13, 2008 Author Share Posted January 13, 2008 (edited) I've found how to make it send "trying" 3 times each minute.. WinWaitActive("Untitled - Notepad") While 1 While 2 Send("trying") Sleep(10000); 10s Send("trying") Sleep(10000); 10s Send("trying") Sleep(60000); 60s WEnd Sleep(60000); 1min WEnd but still.. it works only on any program but RF Online.. sob.. help me.. wondering what the problem is.. is there other command that works like the "send" command? maybe there is a specific command for hotkey? Edited January 13, 2008 by Dabz Link to comment Share on other sites More sharing options...
james3mg Posted January 13, 2008 Share Posted January 13, 2008 (edited) Regarding getting it to work in notepad: WinWaitActive("Untitled - Notepad") While 1 For $i = 1 To 3 Send("trying") Sleep(10000); 10s Next Sleep(60000); 1min WEnd Regarding your game: I think it's a common anti-cheating method of such games to detect and ignore simulated keypresses, so you may not be able to do what you want in that particular game. Seems I've seen a post somewhere on the forums here of a UDF alternate to the send() command that worked deeper down in the OS so it might bypass that feature in the game...maybe someone knows more than me (actually, it's quite certain someone does, but maybe they can help you) Edited January 13, 2008 by james3mg "There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110 Link to comment Share on other sites More sharing options...
Dabz Posted January 13, 2008 Author Share Posted January 13, 2008 (edited) Thx james..so there is a anti-cheating method.. now i'm really desperate.. anyone could help me make a mechanic robot that could press "F7" every minute manually? LOL..hix.. hix..Seems I've seen a post somewhere on the forums here of a UDF alternate to the send() command that worked deeper down in the OS so it might bypass that feature in the game...maybe someone knows more than me (actually, it's quite certain someone does, but maybe they can help you) wink.gifanyone who know it, please tell me.... Edited January 13, 2008 by Dabz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now