jonnybravo Posted May 2, 2005 Share Posted May 2, 2005 ok i need a loop hole what will continue until a new options pops up Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("","") If Not WinActive("","") Then WinActivate("","") WinWaitActive("","") Send("{ENTER}") MouseMove(509,393) MouseClick("left",509,393,2) MouseMove(598,377) MouseClick("left",598,377,2) Send("{ENTER}") MouseMove(520,389) MouseDown("left") MouseMove(520,388) MouseUp("left") Sleep(1000) starts with Exceeded, then full, then normal, easy, right now its clicking over and over until it changes to full,normal,easy need a funtion that will stop it and click on it when it sees, normal easy, or full and stop script Link to comment Share on other sites More sharing options...
buzz44 Posted May 2, 2005 Share Posted May 2, 2005 I/We have no idea what you are talking about lol, what is full,normal,easy??? qq Link to comment Share on other sites More sharing options...
jonnybravo Posted May 2, 2005 Author Share Posted May 2, 2005 Ok if i click on a button it will say exceed now if keep clicking on the button u will see it say full,normal,or easy, now im needing it to click on full,normal,easy, when these words popup....... FOR A SERVER....... see im using a loop hole to click but need it to click on the word full when it pops up Link to comment Share on other sites More sharing options...
buzz44 Posted May 2, 2005 Share Posted May 2, 2005 Try ControlGetText() and use the AutoIt window tool to get the controlID. qq Link to comment Share on other sites More sharing options...
jonnybravo Posted May 2, 2005 Author Share Posted May 2, 2005 Ok so like this.... Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("BLAH","") If Not WinActive("BLAH","") Then WinActivate("BLAH","") WinWaitActive("BLAH","") MouseMove(597,375) MouseClick("left",597,375,2) ContinueLoop [0] $var = ControlGetText( "BLAH",1628708 ) Link to comment Share on other sites More sharing options...
buzz44 Posted May 2, 2005 Share Posted May 2, 2005 Yeah, I guess. I have no idea what the window is or anythign so its up to you. qq Link to comment Share on other sites More sharing options...
jonnybravo Posted May 2, 2005 Author Share Posted May 2, 2005 how do u link a ini file to be read so i can have auto login features... var Account="acountname"; var Acountpassword="accountpassword"; while script is still running... Link to comment Share on other sites More sharing options...
buzz44 Posted May 2, 2005 Share Posted May 2, 2005 IniRead() > Help file. qq Link to comment Share on other sites More sharing options...
jonnybravo Posted May 2, 2005 Author Share Posted May 2, 2005 ControlGetText ( "title", "text", controlID ) >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 645 Y: 338 Cursor ID: 0 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< BGR: Hex: 0x5FE5EE Dec: 6284782 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 0 Y: 0 W: 553 H: 671 Control ID: 1628708 ClassNameNN: ShImgVw:CZoomWnd1 Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< am i doing this right >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Link to comment Share on other sites More sharing options...
buzz44 Posted May 2, 2005 Share Posted May 2, 2005 Why don't you test it yourself... or use the example in the help file. qq Link to comment Share on other sites More sharing options...
jonnybravo Posted May 2, 2005 Author Share Posted May 2, 2005 oh k here it is.... Channel-1(exceeded) Channel-2(exceeded) Channel-3(exceeded) now if i keep clicking on them it will change to this Channel-1(full) Channel-2(exceeded) Channel-3(full) now i need to click on it when it says full..... (FULL color is yellow) (Exceeded color is red) also when u click on the full it also changes to brown so that the mouse knows that uve clicked on it to select it.. any idea in doing this......... Link to comment Share on other sites More sharing options...
buzz44 Posted May 2, 2005 Share Posted May 2, 2005 ?????? I have already told you... ControlGetText()................................ Seeing as you have now mentioned colours. You COULD do a messy work around and use PixelGetColour(). Please don't as me for idea's that I have already provided that will/might work. qq Link to comment Share on other sites More sharing options...
jonnybravo Posted May 2, 2005 Author Share Posted May 2, 2005 now trying to find controlid for the color yellow and brown but when i click on the colors no ControlId comes up..... Link to comment Share on other sites More sharing options...
buzz44 Posted May 3, 2005 Share Posted May 3, 2005 Then is PixelGetColour. If the colour = brown or w/e then click at that position. qq Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now