UnknowName Posted December 15, 2011 Posted December 15, 2011 Hi there, I'm a newbe, and I need some help with my first script. This script use to send keystroke, in definite circumstances. It's really really easy. All of circumstances are PixelGetColor. There is my script : ; Script Start ;Affichage FIFA 12 Func win($FIFA12) WinActivate($FIFA12) EndFunc ;Boucle Func Mainfarm() If PixelGetColor(1180,555) = 0x858585 Then Send("ENTER") Sleep($tempo2) If PixelGetColor(850,750) = 0x282728 Then Send("ENTER") Sleep($tempo4) If NOT PixelGetColor(850,750) = 0x282728 Then Send("SPACE") Sleep($tempo4) If PixelGetColor(330,700) = 0x424142 Then Send("ENTER") Sleep($tempo1) If PixelGetColor(1310,830) = 0x030403 Then Send("ENTER") Sleep($tempo1) If PixelGetColor(1310,830) = 0x030403 Then Send("ENTER") Sleep($tempo1) If PixelGetColor(1550,460) = 0x000000 Then Send("ENTER") Sleep($tempo4) If PixelGetColor(1900,10) = 0x000000 Then Send("^+{TAB}") Sleep($tempo1) WinActivate($FIFA12) EndFunc Func Over() Exit EndFunc ;FIFA Window $FIFA12 = "FIFA 12" ;Temporisation $tempo1 = 200 $tempo2 = 1000 $tempo3 = 2000 $tempo4 = 5000 $tempo5 = 10000 I need to test the script like that, and if it don't works properly, I'll make a script doing task line by line. I hop I'll be understood By the way, when I strat the script, nothing happen. I did something wrong, or I missed something. Thanks for your help.
hannes08 Posted December 15, 2011 Posted December 15, 2011 (edited) Hello Unknown name. Please read the forum rules. Writing about game automation is not allowed in this forum. Edit: reported. Edited December 15, 2011 by hannes08 Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
water Posted December 15, 2011 Posted December 15, 2011 FIFA 12? Do you try to automate a game? If yes, please read the forum rules! My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
UnknowName Posted December 15, 2011 Author Posted December 15, 2011 Just trying to automate Windows task, like sending keystroke. I think it's not unlawful. Maybe I think wrong.
Moderators JLogan3o13 Posted December 15, 2011 Moderators Posted December 15, 2011 Hi, UnknownName. As has been mentioned, the forum rules specifically state we will not assist with any game automation - forum rules. If this is not for a game, please explain just what you're trying to accomplish and we will be happy to assist. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Developers Jos Posted December 15, 2011 Developers Posted December 15, 2011 Just trying to automate Windows task, like sending keystroke. I think it's not unlawful. Maybe I think wrong.It is here.*click* SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts