Jump to content

BrookieDragon

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by BrookieDragon

  1. Pretty sure this is a one line problem on a easiness factor of "1" on a scale from 1-100 with 0 being the easiest... I want to make a re-usable hotkey that spams 1 and 2 when I press it, an cancels when I press it again. Problem is, after I close it once (pressing the hotkey a second time) the script finishes. I want it to recall the hotkey so that I can use it to time and time again. Where do I call the HotkeySet again? HotKeySet("{F1}", "spam") While 1 Sleep(100) WEnd Func spam() $i=0 HotKeySet("{F1}") HotKeySet("{F1}", "quit") Do Send("2") Sleep(50) Send("1") Sleep(50) Send("2") Sleep(650) Until $i=1 EndFunc Func quit() Exit EndFunc
  2. Thanks much, I was thinking my problem was with that. Cause all the script samples used something other then what the Autoit windows info tool was returning. Is there an easy way to get hex using the window tool?
  3. OK, I'm trying to create a script exit via opening the Windows start menu (vista) and matching the white in the info box there. Basically...have the script running, running, running, hit the windows key, start menu opens, white background of the recently used programs list is shown, script stops. (got stuck in a few infinite loops earlier where I had no control over the mouse to manually close the script) I made a little test script to work on this, but for the life of me, I can not get this to work. Anyone see anything blaring'ly wrong? I usually just test this with notepad up to see whats being written. I have yet to get an "o".
  4. Ok this is driving me crazy now. The script is working....except for the pixel match. I can not get it to trigger! I can take the screenshot on the app, go get the coordinates using full screen in MSPaint, then put them into the script and still get nothing when I go back to the app! Either my coordinates are wrong (though I tried them like 10 times) or my method of getting the coordinates is wrong. Heres the picture. http://news.allakhazam.com/uf/BrookieDragon/Untitled_1.jpg I dont' know if its possible after saving it from a BMP to a JPEG, but if anyone could help me get the coordinates for the left area of the bright right bar in the bottom left corner, would greatly appreciate it. This is the script and general coordinates I've been trying. It goes PixelGetColor(Xcoor, Ycoor) = Dec:Number, right? Space after the comma and before and after equal sign?
  5. I've worked with autoit a long while ago....few years, but forgot almost all the basics and don't have my old scripts to deconstruct. Right now I'm just trying to do a simple pixel match to a fullscreen application. Can someone remind me how to uise the Active Window utility to get the right coordinates on a screenshot for the app? I'm running the app in 1024x768, but I can't get the coord from the screenshot to match that at all. Always just what the size of the picture is. And can someone just double check that this is right? if PixelGetColor(COOR1, COOR2) = DEC# then on with the script Thanks much
  6. Sure I'm overlooking something here, but can't get the run function to work. I can get the example line of Run("Notepad.exe", "", @SW_MAXIMIZE) to work just fine. But I'm trying to run a program called WizTrigger.exe, and whenever I try to open it with the script I get an error message that says the system can not find the file specified. I've tried playing around with the dir but it doesn't wanta go my way. Also tried taking out the maximize line because the program I'm opening doesn't maximize, but still nothing being found. Run("WizTrigger.exe", "", @SW_MAXIMIZE)
×
×
  • Create New...