Jump to content

Cid

Members
  • Posts

    5
  • Joined

  • Last visited

Cid's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ok thx, and I will look into the fileopen and filewriteline.
  2. But Can this Script be minimized the way I have it?
  3. I want to run this in the background, so I can work on other projects and this script not take control of my mouse and have the Monitor window minimized. #Region #AutoIt3Wrapper_UseX64=n #EndRegion #include <ImageSearch.au3> HotKeySet("{s}", "StartScript") HotKeySet("{z}", "PauseScript") HotKeySet("{q}", "QuitScript") Global $Start = 0 Global $Light = 0 Global $LightX = 0 Global $LightY = 0 WinActivate("Monitor") Func StartScript() $Start = 1 EndFunc Func Light() Local $Light = _ImageSearcharea("LightOn.bmp", 1, 960, 0, 1440, 270, $LightX, $LightY, 100) If $Light = 1 Then MouseClickDrag("Left", $LightX, $LightY, $LightX+72, $LightY, 1) Send("^c") Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("^v") EndIf EndFunc Func PauseScript() $Start = 0 EndFunc Func QuitScript() Exit EndFunc While 1 If $Start = 1 Then Light() EndIf Sleep(1000) WEnd As for the program, it's just called Monitor. It's a basic GUI that monitor one of the controllers in the plant.
  4. Thanks for having me. I wan't really meaning minesweeper and hearts, It was an example of the the process I am looking to write my script to do. I have a program I have to watch that has a green light pop up, and I have to write that code that follows it into a e-mail and send it. I got that script working, but I want to have the window minimized so I can do other things beside just having that window open and controlling my mouse.
  5. Is there an option to have a program running in the background, with mouse movement and clicks and not effect your current project? Maybe something with AutoItSetOption(), with Pixel & Mouse Coord Mode. Example: Playing Minesweeper minimized, while playing Heaths Maximized.
×
×
  • Create New...