Jump to content

bbaffert

Members
  • Posts

    10
  • Joined

  • Last visited

bbaffert's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. If ($Net > 2 and (PixelGetColor(13,572)=16777215)) then ControlClick($name, "", $Out) This stops my program from working when the situation becomes greater than 2. I really need the script to hit this $Out and the wait until the $Net becomes <2 and then do the same controlclick. What would be the next line to get it to pause after making this click and then make the click again when the $Net < 2? I know the comeback line will be the one below but I am having a problem with how to get the script to go into a waiting mode until the number gets below 2 again and then make the click again. I am guessing that there is a line or some code that goes between these two that will make it wait but not sure what that is or how to do it. If ($Net < 2 and (PixelGetColor(13,572)=16777215)) then ControlClick($name, "", $Out) Thanks for your time.
  2. mouseclick("left",607,533,1); How can I write this in my script to make the mouse click randomly in the area of say x 600 to 650 and from y 500 to 550? Just a random click in that area when instructed to instead of the exact same spot each time. PS- Great board. Have learned alot the last few days reading the manual and reading posts.
  3. I'm real new to autoit, and to be honest - just as new to programming. I've had a bit of success with autoit and have made a few small working scripts. I'm trying something a bit more elaborate and am stuck - maybe someone can help me. Basically, I call a function called GetSunColor from a weather site. Depending on the color, I assign the variable $sun either 1,2,3,4 The problem is, once the function is executed and returns to the main part of the script, the value of $sun is not retained. When I ran a seperate script just scanning the color of the sun on a webpage, I did get the exact colors and confirmed that the function was assigning the variable. However, once I implemented the function, the variable loses the value that was just placed into it. Hope this is enough info - I appreciate any help. Thanks
  4. This is giving me problems now. The autoit I am working has to go from one window to another. It is not picking up one of the windows. Is there a way to get the exact window name so I can plug it into the script and make it work? I am not sure how I should add this window name to the script so it knows that is the window I need. Have not had a problem before but this one is giving me fits.
  5. Thanks, Set the Opt(MouseCordMode,0) and added a "left" before the mouse coordinates and it actually worked. Now new problem!!
  6. ControlClick($pagename, "", $RedButton); Replaced it with this mouseclick(207,481,1); Did not work? Is there anyway to make this into a mouseclick?
  7. Working on this myself. Trying to learn. How can I make this work? $BlueButton = "MouseClick ( "left", 730, 543 )" Is it possible to assign a variable as a mouseclick like this? Is this all wrong? How can I assing this variable to do this mouseclick at this spot? Thanks!
  8. I am working on learning the language. So far, it is kinda like the French I took in high school. Je ne sais pas. I just cannot grasp my head around this. I did learn enough to get a portion of what I want done to work. Now I have many new problems to get the rest done.
  9. I got a problem with an autoit script and need some help with it. Not sure where i should ask but just looking for someone that is proficient in the program to do some work for me. Something that is simple for probably 80% of the guys here but just wont compute for me. PM me if you are interested in doing this small job.
×
×
  • Create New...