Jump to content

woodyfly

Active Members
  • Posts

    27
  • Joined

  • Last visited

woodyfly's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. How do I find out where the clicks are landing?
  2. I have an application and I'm trying to send controlclicks to it. It receives the click but the coords are all off. My app has no controlIDs, just the application title opt("MouseCoordMode",0) ControlClick("app (64bit)","","","right",1,77,866) Any idea why it won't send to the right coords?
  3. I set the coordinate to 19, 36 which is targetted to clicking "File". It clicked somewhere around the top left area of the typing area. Edit: Using mousecoordmode 2, it gives the same result as ControlClick. Mousecoord 0 gives the correct window position
  4. No. ControlClick works fine on win 7, there's nothing different in this simply code. Something is messing up the coordinates, I don't know. Will try to reinstall my video drivers
  5. Let me rephrase it ControlClick does not click at the right coordinates (Window coordinates). If I were to test it with MouseClick (window coordinates, mousecoord 0), it clicks right. If I were to put controlclick 0,0 as coordinates, it doesn't click on the topleft of the window.
  6. The coordinates for controlclick are way off for some reason, It was working fine on win 7. EG: ControlClick("hello","","","right",1,16,41) will NOT click where I want it to. If I do MouseClick @ 16,41, it gets it right. ???
  7. How do I get pixelsearch to search an exact coordinate? For instance I want pixelsearch to check if coordinates 150,250 is the color 0xFFFF00 and keep looping. I tried While 1 PixelSearch(150,250,150,250,0xFFFF00) If not @error Then MsgBox(0,"","FOUND") Exit EndIf wend ***EDIT: I think the code works, I just had the coordinates wrong (window vs screen coordinates)
  8. Thanks but I kind of have that step already. I'm trying to figure out how to write the code after it finds the initial pixel. I found a way to check for the adjacent pixel but I think it's poorly written and incorrect. Even so, I don't know how to make it check the next available pixel in the row search() Func search() $coord = pixelsearch(339,205,721,481,0xFF0000,0) IF not @error then $x=$coord[0]+1 $y=$coord[1] $color= pixelgetcolor($x,$y);gets the color from the pixel on x+1(right) If $color = "0x00000" then mousemove($coord[0],$coord[1]) msgbox(0,"",hex($color, 6)) Else ;Check next pixel EndIf EndIf EndFunc This checks the first pixel (red) it finds and sees if the next one to it is black. It isn't, but I don't know how to make it find the next pixel available and keep searching. And the code is probably wrong and sucks anyways
  9. I just searched 10+ pages on "pixelsearch", didn't really find anything specific to what I need. I'll try to keep looking until then....
  10. I need help on making pixelsearch more accurate. Let's say I'm trying to find pixel 0xFFFFFF but on the screen there's dozens of the same pixel scattered. How would I make it find the right pixel that I need? I thought of an idea but perhaps there are better ways? How about checking the pixels in relation to the pixel that we found. For example, if we find pixel 0xFFFFFF, then check pixel to the right. If the pixel to the right = 0xCCCCCC then we're done. If the pixel to the right is not 0xCCCCCC, then move on to the next 0xFFFFFF and repeat until there are no more pixels left to search. When we've reached the last 0xFFFFFF, start over from the first one and keep looping. To make it even more accurate, we could check the pixels all around the initial pixel but would that make it too time consuming for the script? or no? Would this be the best way to accurately get the right pixel and how would I write this?
  11. Edit: Delete, Figured it out! Had to think for a while. I love autoIT, so much thinking behind it!
  12. Can a monitor affect pixel detection at all? If i unplug my monitor, does it make a difference?
  13. There's a program that I'm trying to use and it uses pixel detection. For some reason, it's not reading my pixels right and it just sits there idle. My question is, what can affect pixel detection? List anything you can think of and I'll try it. For exameple... Do video drivers, monitor, video settings (specific), OS, etc... List the things that can actually affect pixel detection, thanks.
  14. Im trying to do a simple script that sends a controlsend to a PROCESS, instead of a window title. This doesnt work: $process = WinGetProcess("Atlantica.exe") ControlSend($process,"","","x") This works: ControlSend("Atlantica Online","","","x") What am i doing wrong? How do i simply send a command to Atlantica.exe?
  15. Hmm didnt work either
×
×
  • Create New...