Jump to content

giantsquid

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by giantsquid

  1. Try something like for $x = $xstart to $xend for $y = $ystart to $yend if pixelgetcolor($x, $y) = $color then $count = $count + 1 next next where $xstart, $xend, $ystart, $yend are used to decide which rectangle of pixels to check, $color is the color you are looking for, and $count is used to record how many match. I did not test the code, but this is the general idea.
  2. Number() will evaluate 4+6, but not "4+6" Execute() does not seem to work for me. Do I need the beta?
  3. My plan is to add a sort of calculator to my script. I currently have a hotkey to bring up an input box, which is used to control other parts of the script. I hope to use this to enter the equations to be solved, instead of making GUI that is a clone of the calculator that comes with windows. But I cannot find any (easy) way to input the equation as a string, and then evaluate the string. I started working on a function to break the string apart into numbers and operators, which can then be solved more easily, but this is turning out to be harder than I thought it would be. Adding brackets and such will make it even more difficult. If I have a string such as $input = "1.5*(9-6/2)" , is there any simple way to turn this into "9", or should I start working on breaking the input apart, and then solving it? Thanks in advance for any help!
  4. You could also use WinSetTitle to change the title of the msgbox, but this is a bit clumsy.
  5. I have a feeling that this may be a stupid question, but I have not been able to find out on my own. Where can I find Koda? All I can see at http://www.autoitscript.com/fileman/users/lookfar/index.html is AutoEd, and this doesn't look to be the same thing. I am sorry if there is something obvious that I missed.
×
×
  • Create New...