Sign in to follow this  
Followers 0
UnknowName

Newbe needs some help

6 posts in this topic

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



#2 ·  Posted (edited)

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

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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

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!

Share this post


Link to post
Share on other sites

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

It is here.

*click*


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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