Jump to content
Sign in to follow this  
UnknowName

Newbe needs some help

Recommended Posts

UnknowName

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.

Share this post


Link to post
Share on other sites
hannes08

Hello Unknown name.

Please read the forum rules. Writing about game automation is not allowed in this forum.

Edit: reported.

Edited by hannes08

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
UnknowName

Just trying to automate Windows task, like sending keystroke. I think it's not unlawful. Maybe I think wrong.

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×