Sign in to follow this  
Followers 0
DaHexor

Need Some Scripting Help

6 posts in this topic

Hi Everyone i'm New to Autoit Forums Hope i'm posting in Right Area.

1.) Can Auto-it Send Commands to a Non-Active window.? If so how can one do this.

(Like i wanna Send Click Mouse few times in Certian Spot of the window. and Be on the Web Surfing as Script Click in Other Window like Multi-Tasking.)

2.) How to Do RGB Color Targeting.? An Example Please.

3.) i'm Using:

;5000; 5 Seconds 
;5000*12-60000;5*12-60 (1-Min)
;60000*60-3600000 (1-Hour)

$XTimeOut = 1500

Global $Paused

While 1
    Sleep(100)
WEnd

                 ;Start Slot 1
      Sleep($XTimeOut3)
      MouseClick("left", 48, 240, 2, 10); Pick Top Left Slot First
      Sleep($XTimeOut2)
      MouseClick("left", 355, 442, 1, 10); Click on Mining Area
      Sleep($XTimeOut2)
      MouseClick("left", 515, 364, 1, 10); Click on Selective Production
      Sleep($XTimeOut2)
      MouseClick("left", 515, 388, 1, 10); Click on Quality Stone
     ;End Slot 1

Is there a better way to have Auto Delay For Game Lag? other then Sleep

4.) Okay i'm Maken this for a Few People That use Different Screen Resolutions

$GameWinTitle = "LastChaos - Aeria Games & Entertainment (Window 1024x768)"
;$GameWinTitle = "LastChaos - Aeria Games & Entertainment (Window 800x600)"

And I Have to Keep Changing it Can i Do a If satement? Cause the Title Says the Resolutions. Trying to Make it So Certian Part of Script won't Run When on Desktop or Something.

6.) Is there a Way to Make Auto-it Press F2 Say and Hold it Down. Until Command to Stop.

5.) Any Other Good Things that Might Help me Make a Macro for a Game.

Share this post


Link to post
Share on other sites



1) Check out ControlSend and ControlClick

2) Check out PixelSearch andPixelGetColor,

3) Sleeps are very useful. Yo ucould also check the game for status though, like if the color green pops up when you want to do something, check for that.

4) Window titles can be matched partially starting at the beginning of the title name. Check out the WinTitleMatchMode.

5) Yes, check out the Send Key List

6) AU3 Window Info Tool, included with the latest installation package.

Cheers.


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

Check out MarcoGamer by Toady if you just want to make some simple marcos.

MacroGamer v.2.75

Else follow what mikehunt114 said.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hey Mikehunt114

Thank you for your Post. Helped Alot =)

Thanks Generator That Pretty Cool Prop to Toady.

Edited by DaHexor

Share this post


Link to post
Share on other sites

(from the forum)

Last Chaos is an on-line role playing game

some of these "on-line" games require IE.au3 tools

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Can Someone Give me Example how to Use Non-Active Window Click i can't get it working.

This Position's

MouseClick("left", 520, 430, 1, 7)

I Tryed

$GameWinTitle = "LastChaos - Aeria Games & Entertainment"

Opt("WinTitleMatchMode", 2)

ControlClick($GameWinTitle, "", "","left",1,520,430)

Am i doing it Wrong?

Edited by DaHexor

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0