-
Active Member
Originally Posted by
iThinkiWin
with gdip
image:=Gdip_BitmapFromHWND(hwnd) ; Pull the image from hwnd that you set.
rgb := GDIP_GetPixel(image, x, y) ;get the color from the above image
Using a few lines of test code, i was able to take whole D3 screenshot with THUD active
Now i ve some clue to modify my existing ahk script to work with new thud
-
Member
Originally Posted by
RNN
One thing has become clear to me, the competitiveness (fair, it is understood) in this game is a mere illusion. Who does not use one thing uses another, and not everyone has access to the same things.
Yeah thats the truth, i really know alot top 100 Players, they are all using thud (killerjohn said dont do it but comeon sure they do what did anyone expect^^) they have privat helpers and can do new shit really easy because they are good on this computer stuff. And with all this shit they are celbrate themselves on twitch like they are the best comeon.
On season 16 the first helpers came online for the public and so many players used it and really enjoyed to play d3 again. and spend alot of time. Now KJ killed it and its like before a few people have access to something and we others cant do anything.
-
Legendary
A big difference difference between TH and many other tools (I was told that it is even possible to select which map set to play in GR), is that TH is free and public use. To those who ask that D3Helper be released, those who also create their own tools I ask: are you going to release yours?
edit: everyone understood that it was a rhetorical question xD
Last edited by RNN; 09-30-2019 at 09:45 AM.
-
Member
Since you are trying to fight this automation, this game have turn to a Circus, it was allready one, but it makes that even worst now.
Many players out there tried those helpers or macros, and fun fact, they enjoyed them for two specific reasons :
1 - It's a great QoL to solve a bad game design, like spaming buttons like a retard all day long
2 - It improve your gameplay experience and efficiency (you can play longer those stupid rath runs, the "must do" activity if you want to compete a little)
What is happening in the community right now ? People are spying each others to have the latest version of any kind of helper. And people who are creating them are afraid to share it because you KJ are trying to eradicate them. It divide even more the community than it was before, and tbh, this is bad.
You just simply CAN'T remove what most of the ppl have allready tried and enjoyed play with. What is gonna happen if THUD will no longer support those features ? ppl gonna try to find another "exotic" version of THUD and keep this circus alive. There will always someone gonna find the solution and the community will always search for it. Does it worth to fight against that ? It's up to you, but let's be honest for a second, cheating programmer responsible for the most common cheating program use in D3 trying to fight against other cheating programs only for not breaking a specific ToS that THUD allready breaking tons of it ? What's the point.
Blizzard does not care anymore, it's a fact. They are even more happy to see monthly active player count rising cause of these tools, including yours. Just let ppl do what they want, THUD was designed this way, and that's what gonna keep THUD AND the community alive.
Just my 2 cents.
Last edited by RockStarZ; 09-30-2019 at 09:58 AM.
-
Post Thanks / Like - 1 Thanks
Furnace (1 members gave Thanks to RockStarZ for this useful post)
-
Member
I have tested right now on home computer with one graphics card and It is the same.
The same odd behavior (it works only after first change to full screen and first alt + tab away from D3 and back), what I described here
https://www.ownedcore.com/forums/dia...ml#post4071067 (Permanent closure of the plugin API and the removal of China/Asia realm support)
Thats way it is not related to 2 graphics cards. Maybe to version of Win10 (1903 on both computers)?
No more ideas what to try next to solve this.
Last edited by MlokCZ; 09-30-2019 at 10:16 AM.
-
Member
Originally Posted by
KillerJohn
I think I managed to implement something funny (it is funny, considering HUD is an un-wanted extension of D3 and now I am trying to prevent using un-wanted extensions of HUD...):
HUD automatically terminates if a known automation framework (like AHK) is running on the user's PC
Currently it is based on memory reading, but in the future it could monitor the APM of the user and if it is impossibly high then it can quit too.
You will hardly achieve anything by that because then they will use mouse software scripting for automation like Logitech scripting macros...
-
Member
New observation.
I have tried D3 in 32 bit mode and suddenly all works ok (both metod of get pixel color). I will investigate autoit vs 64bit (I have installed autoit for 64 bit). Now at least I know source of problem.
-
Member
Originally Posted by
MlokCZ
It works. But it sucks. I don't use TH for automatization. I use some macros independent of TH. But this build disable it too, because macro can't read pixel color of D3.
Vyr Archon Wiz is unplayable without macro. This restriction will be for me end of D3 (and end of donations for TH). I will not play without TH, but without macro I will not play too.
Edit: With this resctriction it is possible to write macro only without reading pixel color of D3. It is possible spam archon skill without, but is it not possible to end spaming on archon end.
use this: Archon Spam - Pastebin.com
-
Active Member
See a lot of people here misunderstanding what KJ said; He's not trying to block macros/scripts, He just doesn't want TurboHUD involved in it.
(meaning drawing color boxes on screen when skills active then having AHK read them.)
you can use HUD with macros/scripts, but he wants you to make the scripts read the game client itself Not HUD if you do intend to play that way.
-
Member
Originally Posted by
AnotherOwnedCoreUser
Simple script without reading pixel color of D3 will ofcourse works ok. But I am using much more sofisticated script which reads D3 pixel color.
Last edited by MlokCZ; 09-30-2019 at 01:35 PM.
-
Member
Originally Posted by
iThinkiWin
See a lot of people here misunderstanding what KJ said; He's not trying to block macros/scripts, He just doesn't want TurboHUD involved in it.
(meaning drawing color boxes on screen when skills active then having AHK read them.)
you can use HUD with macros/scripts, but he wants you to make the scripts read the game client itself Not HUD if you do intend to play that way.
I know. But blocking reading TH pixels complicated reading D3 pixels too.
-
Active Member
TBH, KJ is not against automation tools like ahk, autoit and even mouse macro software.
He just dont like ppl use thud overlay info for automation.
For me I dont use the overlay info for automation in ahk, since thud new version has been banned screen capture.
I cant use the old way to capture d3 screen and, now I figured out to use other method to capture the d3 screen for my ahk script
Last edited by takayo72; 09-30-2019 at 05:11 PM.
-
Member
Originally Posted by
iThinkiWin
with gdip
image:=Gdip_BitmapFromHWND(hwnd) ; Pull the image from hwnd that you set.
rgb := GDIP_GetPixel(image, x, y) ;get the color from the above image
It is working? I am traying now AHK with never version Gdip_All.ahk and it doesen't work.
I end up with the same problem like with autoIT. It works ok when I run D3 in 32 bit mode. But with D3 in 64 bit not.
OS: Win10 1903
Last edited by MlokCZ; 10-01-2019 at 01:46 AM.
-
Active Member
Originally Posted by
mlokcz
it is working? I am traying now ahk with never version gdip_all.ahk and it doesen't work.
I end up with the same problem like with autoit. It works ok when i run d3 in 32 bit mode. But with d3 in 64 bit not.
Os: Win10 1903
sure 100% work~~~~
I didnt use get a pixel color but search a give image file where existed on the screen
Here is my updated code snippet used iin my ahk script
Code:
global gdipToken := Gdip_Startup()
, hwnd := WinExist("ahk_exe Diablo III64.exe")
, ArchonImage = Archon.png // part of archon skill image in the the skill bar
gameBitmap := Gdip_BitmapFromHWND(hwnd) // d3 game screen
skillBitmap := Gdip_CreateBitmapFromFile(ArchonImage) //
// similar as ahk builtin imagesearch
// where var1,var2,var3,var4 is the search area of a image (d3 screen)
// 30 is variation
vRet := Gdip_ImageSearch(gameBitmap, skillBitmap, vPosXY, Var1, Var2, Var3, Var4, 30)
if vRet = 1 {
; found do something
} else if vRet=0 {
; not found do otherthing
}
use gdip_all.ahk instead of gdip.ahk where it supported both 32 and 64 bit
Last edited by takayo72; 10-01-2019 at 02:06 AM.
-
Post Thanks / Like - 1 Thanks
johnbl (1 members gave Thanks to takayo72 for this useful post)
-
Member
I am using gdip_all.ahk. Problem still the same, 64 bit D3 don't return correctly gameBitmap := Gdip_BitmapFromHWND(hwnd). When I switch to 32 bit D3, than it works.
Which Win version do you use?
Last edited by MlokCZ; 10-01-2019 at 02:26 AM.