Jump to content

Recommended Posts

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.

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.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
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
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Link to post
Share on other sites
  • Moderators

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!

Link to post
Share on other sites
  • Developers

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.
  :)

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...