[AutoIt Script] Auto press skills when off cooldown (no key spamming, perma Serenity) menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    MlokCZ's Avatar Member
    Reputation
    5
    Join Date
    Mar 2017
    Posts
    70
    Thanks G/R
    11/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Example of whole Vengeance script with works with actual THUD:

    #include <File.au3>
    #include <FileConstants.au3>
    #include <MsgBoxConstants.au3>
    #include <WinAPIFiles.au3>
    #include <WinAPI.au3>

    #region Nastavení klávesových zkratek
    HotKeySet("{F1}", "start")
    HotKeySet("{F2}", "stop")
    HotKeySet("^{F2}", "quit")
    #EndRegion

    #region proměnné
    Global $runner
    Global $on=0
    Global $poz1=658
    Global $poz2=1009
    Global $barva1="872409"
    Global $barva2="862408"
    Global $cekej=60
    Global $cekejstisk=30
    Global $cekejVengeance=30
    Global $mousePos
    Global $hDC
    Global $handle
    #EndRegion

    #Region start
    Func start()
    #Send(4)

    $on = 1
    EndFunc
    #EndRegion

    #Region stop
    Func stop()
    $on = 0
    EndFunc
    #EndRegion

    #Region ukončení programu
    Func quit()
    _WinAPI_ReleaseDC($handle, $hDC)
    Exit
    EndFunc
    #EndRegion

    #Region MemoryReadPixel
    Func MemoryReadPixel($x, $y)
    $iColor = DllCall("gdi32.dll", "int", "GetPixel", "int", $hDC, "int", $x, "int", $y)

    $sColor = Hex($iColor[0], 6)

    #MsgBox(0, "", "MemoryReadPixel color returned : " & $sColor)

    Return StringRight($sColor, 2) & StringMid($sColor, 3, 2) & StringLeft($sColor, 2)
    EndFunc
    #EndRegion


    #Region po spuštění, aby se to hned neukončilo
    $handle = WinGetHandle("Diablo III")
    if $handle = "" Then
    MsgBox(0, "", "Please run D3")
    Exit
    EndIf
    $hDC = _WinAPI_GetWindowDC($handle)

    While 1
    While $on=1

    $pos = MemoryReadPixel($poz1,$poz2)
    sleep($cekej)

    if $pos = $barva1 or $pos = $barva2 and $on = 1 Then
    Send("{4 down}")
    While $pos = $barva1 or $pos = $barva2 and $on = 1
    sleep($cekejVengeance)
    $pos = MemoryReadPixel($poz1,$poz2)
    WEnd
    Send("{4 up}")
    EndIf

    WEnd

    sleep($cekejstisk)
    WEnd

    #EndRegion

    [AutoIt Script] Auto press skills when off cooldown (no key spamming, perma Serenity)
  2. #17
    d3lak's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2018
    Posts
    104
    Thanks G/R
    2/17
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are we really bumping threads from 5+ years ago. How antiquated are we? There is better technology for this sort of thing surely by now...

  3. #18
    MlokCZ's Avatar Member
    Reputation
    5
    Join Date
    Mar 2017
    Posts
    70
    Thanks G/R
    11/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was requsted on another thread (in THUD section0. AutoIT is good for use with current version of THUD, because performance problems with AHK after necessary modification of scripts (after THUD restriction of reading overlay pixel color) .

  4. #19
    gdias92's Avatar Active Member
    Reputation
    20
    Join Date
    Dec 2018
    Posts
    21
    Thanks G/R
    6/16
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Is this working with the current version of THUD ? I am not able to make it work when i focus the d3 screen.

  5. #20
    gdias92's Avatar Active Member
    Reputation
    20
    Join Date
    Dec 2018
    Posts
    21
    Thanks G/R
    6/16
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah, looks like turbohud is blocking the pixel reading when the d3 windows is focused.

    Just did a java program to test and the same problem happened.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Auto-Clicker] Need proffesional programmers help ! with diablo 3 auto press skill. ^^
    By Dlay in forum Diablo 3 Bots Questions & Requests
    Replies: 1
    Last Post: 10-29-2015, 03:02 PM
  2. Auto IT Goldfarming] Sarkoth DH Gold Script [AutoIT Script] [1260x720 (Widescreen)
    By rowland55 in forum Diablo 3 Bots Questions & Requests
    Replies: 0
    Last Post: 07-07-2012, 01:02 PM
  3. Auto IT Goldfarming] notAres' Sarkoth DH Gold Script [AutoIT Script] [1920x1080]
    By Peterk426 in forum Diablo 3 Bots Questions & Requests
    Replies: 5
    Last Post: 07-02-2012, 03:05 PM
  4. Is there a way to disable actual mouse input when a AutoIt script is running?
    By Simonzi in forum Diablo 3 Bots Questions & Requests
    Replies: 4
    Last Post: 06-22-2012, 06:45 PM
  5. [Release] Auto Mote-extractor - AutoIt script
    By Jimbomcb in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 07-03-2008, 11:11 AM
All times are GMT -5. The time now is 02:39 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search