kimi18 Posted October 19, 2012 Share Posted October 19, 2012 hello I want write 1 script for fifa. If I push "one" button the scar "push" 3-4-5 button So it would be easy to dodge . But when I running the fifa and scar script, and push the "one" button, and scar writen "I push this button", but so many, scar dont push the other buttons in fifa, in skype, firefox, notpad yes, fifa no:(. But why? Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted October 19, 2012 Share Posted October 19, 2012 Well it seems that i didnt clearly understand you:/ Maybe english isnt your best language? But i think i got your main point. Can i please see your whole script to see it all? Quote Link to comment Share on other sites More sharing options...
kimi18 Posted October 19, 2012 Author Share Posted October 19, 2012 Sorry my bed english program New; begin repeat if IsKeyDown('1') then begin KeyDown(81); KeyDown(68);KeyDown(83);KeyDown(VK_DOWN); KeyUp(81); KeyUp(68); KeyUp(83); KeyUp(VK_DOWN); end; until(1=0) ; end. So when I push 1 button, this script push 3 button, this is ok. But If I running fifa game, the script dont push the buttons. a trick more than one key to be pressed, so you only need one Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted October 19, 2012 Share Posted October 19, 2012 so i believe this is why: You have it saying when u press the key "1" that it will press 3 keys "Q","D", and "S". Buuuuttt its probably pressing those buttons on the Scar Window and not your FIFA window. Sooo use the 'Client Target' and drag in onto your FIFA window, then try to run the script. Or have it click on your FIFA window before it presses the keys, either way would work probably. Test it out and get back to me:) Quote Link to comment Share on other sites More sharing options...
kimi18 Posted October 19, 2012 Author Share Posted October 19, 2012 Yes-yes, i use CLient target, and I click on fifa window before press the keys, but nothing . If I click on firefox window is work, notepad.. work, skype... work, everywhere work, only not fifa window. Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted October 19, 2012 Share Posted October 19, 2012 hmm weird.... do u think fifa has a bot-dettection and anti-bot methods? Quote Link to comment Share on other sites More sharing options...
LordJashin Posted October 19, 2012 Share Posted October 19, 2012 So none of SCAR's keyboard functions work on this fifa game? Ill try to post a library for SCAR with instructions on how to use it. To add one keyboard function that might just work on your game, later. Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted October 20, 2012 Share Posted October 20, 2012 how would KeyDown not work on a specific game? It just presses a specific key down. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted October 20, 2012 Share Posted October 20, 2012 Scar uses the SendInput api from Windows API. And sometimes or a lot of times it won't work with certain games. There is a keybd_event function you can use that I've had some success with as an alternative to sendinput. Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 20, 2012 Share Posted October 20, 2012 keybd_event is just a different front-end that works like SendInput... Quote Link to comment Share on other sites More sharing options...
LordJashin Posted October 20, 2012 Share Posted October 20, 2012 Also, would BlockInput, work on keybd_event? Maybe that has something to do with it as well. Quote Link to comment Share on other sites More sharing options...