Jump to content

chaddiablo

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by chaddiablo

  1. There still something wrong, its either not noticing the pixel, or not making the file. This pixel is on a window that is minimized. $hWnd = WinGetHandle("[CLASS:GxWindowClassD3d]") $sLogPath = "C:/Users/God/Desktop/Logg/Test.txt" $sLogMsg = "It popped up!!" $L = PixelGetColor($hWnd, 1124, 117) While 1 If FileExists($sLogPath) And $L = 0x052AAD Then _FileWriteLog($sLogPath, $sLogMsg) Else If $L = 0x052AAD Then _FileCreate($sFilePath) _FileWriteLog($sLogPath, $sLogMsg) EndIf Sleep(900000) EndIf WEnd
  2. Oh, lol. Thanks.
  3. I dont get whats wrong here anyone know? It doesnt create the file when the pixel color pops up. The 15 min timer*900000* is for because thats how long the certain pixel lasts, and dont want it to keep writing the file. $hWnd = WinGetHandle("[CLASS:GxWindowClassD3d]") $sLogPath = "C:/Users/God/Desktop/Logg/Test.txt" $sLogMsg = "It popped up!!" $L = PixelGetColor($hWnd, 1124, 117) If FileExists($sLogPath) And $L = 0x052AAD Then _FileWriteLog($sLogPath, $sLogMsg) Else If $L = 0x052AAD Then _FileCreate($sFilePath) _FileWriteLog($sLogPath, $sLogMsg) EndIf Sleep(900000) EndIf
  4. No, don't use them. Don't even know what they use for lol. Hmm.... lol well don't know how i got it then. Thanks for the program though. Really helpful to me.
  5. To all who have used this. I ran this program and works great. When i tried to restart my computer it said a process couldn't be turned off. It was called Mioengine.exe. To all you have used this do you have this process?
  6. Oh cool. Thank you. Ill add in and see id the code is right.
  7. Im making a script to where when a certain color pops up in area it will perform actions, but i dont know how to get that color from my screen. I need to find out what that color is. And how to, if true do actions. Here is the part of the script where the color is needed. While 1 $c = PixelGetColor(386, 45) Case (color here) if $c = True Then MouseMove(660,360) Sleep(500) MouseClick("Left"[,660,360]) Sleep(500) Run("Program") WinWait("Program") Sleep(500) MouseMove(100,180) Sleep(500) MouseClick("Left"[,100,180]) WinWait("Load...") MouseMove(140,145) Sleep(500) MouseClick("Left"[,140,145]) Sleep(500) MouseMove(520,368) Sleep(500) MouseClick("Left"[,520,368]) Sleep(500) MouseMove(247,88) Sleep(500) MouseClick("Left"[,247,88]) Sleep(500) WinWait("INFO") MouseMove(640,425) Sleep(500) MouseClick(640,425) Sleep(500) MouseMove(1620,1008) SLeep(500) MouseClick("Left"[,640,425]) endif WEnd
  8. Aight ill try that thanks
  9. Hi im trying 2 make a loop where when a certain process closes, it turns it back on after a certain amount of time. This is as far as i got. If ProcessClose("Game") Then lol
  10. Well that does shorten like all my work i did lol
  11. old codding habbits i suppose
  12. also found out how to turn off firewall and turn back on Send("netsh{SPACE}firewall{SPACE}set{SPACE}opmode{SPACE}Disable{ENTER} and for turn back on Send("netsh{SPACE}firewall{SPACE}set{SPACE}opmode{SPACE}Enable{ENTER}
  13. Okay i found how to do it. I have to add it first before i "set" it. Send("netsh{SPACE}firewall{SPACE}add{SPACE}allowedprogram{SPACE}program{SPACE}={SPACE}E:\Games\PIle2\PIle2.exe{SPACE}PIle2{SPACE}enable{ENTER}") this adds it into the firewall exceptions
  14. Okay i tried to add the exception with this Run('cmd') WinWait("E:\WINDOWS\system32\cmd.exe", "") If Not WinActive("E:\WINDOWS\system32\cmd.exe", "") Then WinActivate("E:\WINDOWS\system32\cmd.exe", "") WinWaitActive("E:\WINDOWS\system32\cmd.exe", "") Send("netsh{SPACE}firewall{SPACE}set{SPACE}allowedprogram{SPACE}={SPACE}E:\Games\PIle2\PIle2.exe{SPACE}PIle2{SPACE}mode{SPACE}={SPACE}enabled{ENTER}") Send("Exit") But it didnt add the exception, is there something wrong here? And if possible is there a way to not use cmd?
  15. Oh thanks, ill try doing that.
  16. The game requires access to the internet to check if the cd key is a valid. I tried it with the firewall on and it said it cant access the internet.
  17. Hi in a script i made, i made it so the game installs and everything. But it asks that i should turn off firewall (only one i have is windows firewall) while installing. Anyone know how to turn it off then turn it back on?
×
×
  • Create New...