Guest uzume Posted July 26, 2004 Share Posted July 26, 2004 (edited) well i dont know if the problem is win xp, or keyboardlayout or anything.. when i try to open the notepad example, it opens notepad and..... that's all, AU3 wont send keys, im using win xp pro my keyboard is hum.. configured for Spanish(México) tried to change it to EN(united states ) but still not working, when notepad is opened, it changes to Spanish again . im trying to use this code: Sleep(100000);give time to open FFXI $fisha = 2; $event = 0; $bite = 0; $failsafe=0; $nobait = 0; WinWaitActive("FFXiApp"); While $fisha > 1 AutoItSetOption("SendKeyDelay", 40); Send ("!1"); fishing macro $event = 0; $failsafe = 0; $nobait = 0; Do Sleep(250); If PixelGetColor(23,571) = 16777215 AND PixelGetColor(145,574) = 16777215 AND PixelGetColor(239,569) = 16777215 Then AutoItSetOption("SendKeyDelay", 40); Sleep(Random(3000,3200)); Send("{ENTER}"); Sleep(5400); EndIf If PixelGetColor(59,573) = 16777215 AND PixelGetColor(83,575) = 16777215 AND PixelGetColor(175,572) = 16777215 Then Sleep(Random(5100,5400));You lost your catch. Finish and speed things up a little. $event = 1; EndIf If PixelGetColor(33,576) = 16777215 AND PixelGetColor(91,569) = 16777215 AND PixelGetColor(225,577) = 16777215 Then Sleep(Random(5100,5400));You didn't catch anything. Finish and speed things up a little. $event = 1; EndIf If PixelGetColor(86,569) = 16777215 AND PixelGetColor(210,571) = 16777215 AND PixelGetColor(338,576) = 16777215 Then $nobait = 1;You ran out of bait so let's get ready to change it. EndIf If PixelGetColor(21,572) = 16777215 AND PixelGetColor(43,572) = 16777215 AND PixelGetColor(85,571) = 16777215 Then autosort() Sleep(Random(2100,2200)); $event = 1;You caught something so now autosort, sleep a bit, and finish the event. EndIf $failsafe = $failsafe+1; If $failsafe = 175 Then $event = 1; EndIf Until $event = 1 sleep(2000); If $nobait = 1 Then Send("!2");change bait EndIf WEnd Func autosort() Sleep(9000); AutoItSetOption("SendKeyDelay", 0235); Send ("!i"); Sleep(0250); Send ("{NUMPADADD}"); Sleep (0250); Send ("{ENTER}"); sleep(0350); Send ( "a" ); sleep(0350); Send ("{ENTER}"); sleep(0250); Send ("{ESCAPE}"); sleep(0250); Send ("{ESCAPE}"); Sleep (0250); EndFunc ============= the code i copied and pasted as is ont he source file, any ideas? Edited July 26, 2004 by uzume Link to comment Share on other sites More sharing options...
ezzetabi Posted July 26, 2004 Share Posted July 26, 2004 There is key in every keyboard called "Enter" it used to put @lf ,@cr or @crlf characters that make things a lot easier to read... Link to comment Share on other sites More sharing options...
pekster Posted July 26, 2004 Share Posted July 26, 2004 AutoIt can only have one command per line. You do not use semicolons at the ends of statements, and you must have only one program statement per line. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
Valik Posted July 26, 2004 Share Posted July 26, 2004 That's that same stupid bot again... Link to comment Share on other sites More sharing options...
emmanuel Posted July 26, 2004 Share Posted July 26, 2004 don't que usted lo consigue, esta escritura aspira. él trabajo de doesn't. aprenda escribir sus el propios en vez de hacer esto.dude. just messing around there... that bot has been posted and reposted. if you really want a bot for ffxi, I think you're going to have to really get to know the guts of ffxi and autoit much more than copypasting this ol' bot. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Guest uzume Posted July 28, 2004 Share Posted July 28, 2004 problem solved by extending advanced keyboard services to all aplications 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