Jump to content

Fainth

Active Members
  • Posts

    34
  • Joined

  • Last visited

Fainth's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi all, i am experimenting with the above version since i want to use the hbitmap version. I am on Win7 64 and already have the 'conventional' imagesearch working fine. But when i try to use this i am out of luck. Anyone has a 'compatible' package of ImageSearch.au3 and corresponding 32bit Dlls that can use hbitmaps ? That would be great since i cannot compile my own version of proper dlls. too much C for me. I tried picking up all the scatered bits of .au3 files and Dlls here all over the place but thats realy a bit 'unsortet'.
  2. Func checkpath($processname) $currentpath = '' $processhandle = _processopen($processname,0x0400) $processinfo = _ProcessGetPathname($processhandle) If Not @error Then $currentpath = $processinfo __PFCloseHandle($processhandle) If $currentpath = '' Then Return 0 EndFunc ;==>checkpath Yay! thnx mate
  3. Thank you for the lead, will check it out, and see if i can work with it
  4. Hey, i know this can be done in liux by a cmdline, but is there any way to determine the workingdir of a process, by PID or something? I need to find the source of a process that may or may not exist. Problem the Process is named all the same but could be startet from different directories. My current solution is to check all possible sources for a lock.txt which is written when the process is startet. But there might be a more 'nice' method of checking this out.
  5. I tried to use this for a Patternsearchengine but then wrote my own as a spin-off from it since i had alot of trouble with selections that had their first lines beeing singlecolor. Thats some time ago, i check if i can dig something up from my old Harddrive.
  6. Did you try bitmaps that have the first line complete same color ?
  7. nice one ! I was reading throu all this just now and ther you come along with something working
  8. I encounterd alot of this behavior while creating screenreading tools on some maschine configurations. I recommend for healthbar reading the proper memtable and checking for the places in the client of your game. If that is over your abilities, you need your application to work in window-mode or you need to hook into its DX-calls (which should be over your abilities then aswell). If you still get the black-problem in windowed mode your maschine might use SLI or XFire which result in a 'flickering' while reading from videomem. In that case you could write your own checkpixel like i finaly did that gets your proper results. Or you just modify the existing one like this Func checkpixel(Const $xpos, Const $ypos) $cptimer = TimerInit() Local $color1 = 0, $i = 0 While $color1 = 0 And $i < 3 $color1 = PixelGetColor($xpos, $ypos) If $color1 = 0 Then Sleep(1) $i += 1 WEnd ;~ ConsoleWrite('Color = '&$color1& ' ,Trys = '&$i&@CRLF) Return $color1 EndFunc ;==>checkpixel This will kill your overall performance but from what i get just reading a bar or checking on a button this will do. If you are about to get into 'real' bot-coding your problems will be far more advanced, so will your skill.
  9. I did not yet find a version that i cannot embed and for the keys i would just capture them by hotkeyset (do nothing)
  10. Could someone just DL it and verify if i am the only one with this problem ? http://www.autoit.de/index.php?page=Attachment&attachmentID=6428 I could use a second opinion.
  11. can you see any text in the window?
  12. Sorry for digging this one up but i still get this Error, even with the original script and ProSpeed.dll
  13. Are you on a DX fullscreen ? My current Project involves a Cam-Monitoring that does Dx9 in fullscreen and im failing to hook properly into the applications DX calls. So the whole pixelsearch stuff is useless, did you check what colors you get?
  14. You compiled an exe and that didnt work ? Run("C:\Users\yourname\Desktop\x.exe") WinWaitActive("yourProgramsWindowTitle") While 1 Send("{ENTER}") Sleep(1000) WEnd like that?
  15. how about including the path to the .exe in your run('c:\user\..\desktop\x.exe') ? winwaitactive for 'untitled' needs adjustment as well since its no empty notepad coming up...
×
×
  • Create New...