Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No automated card pack opening on hotkey. #9

Open
mikkelyst opened this issue Jun 3, 2018 · 2 comments
Open

No automated card pack opening on hotkey. #9

mikkelyst opened this issue Jun 3, 2018 · 2 comments

Comments

@mikkelyst
Copy link

Such a function would be useful, would it not?

@mikkelyst
Copy link
Author

mikkelyst commented Jun 3, 2018

Here is how I would solve it.

OpenPack()
{
; card coords as window percent
;1   0,43	0,37
;2   0,57	0,28
;3   0,73	0,37
;4   0,50	0,74
;5   0,67	0,74
;C   0,57	0,50

	BlockInput, On
	MouseGetPos, MouseX, MouseY
	Send, {Space}
	Sleep, 5000
	Card := GetAbsolutePixels(0.43, 0.37)
	MouseClick, left, Card[1], Card[2]
	Sleep, 50
	Card := GetAbsolutePixels(0.57, 0.28)
	MouseClick, left, Card[1], Card[2]
	Sleep, 50
	Card := GetAbsolutePixels(0.73, 0.37)
	MouseClick, left, Card[1], Card[2]
	Sleep, 50
	Card := GetAbsolutePixels(0.5, 0.73)
	MouseClick, left, Card[1], Card[2]
	Sleep, 50
	Card := GetAbsolutePixels(0.67, 0.73)
	MouseClick, left, Card[1], Card[2] 
	Sleep, 2000
	Accept := GetAbsolutePixels(0.57, 0.5)
	MouseClick, left, Accept[1], Accept[2]
	MouseMove, MouseX, MouseY
	BlockInput, Off
}

Also, a hotkey to invoke that function, perhaps Shift+Q

;Open a card pack quickly
+q:: ; shift+q
OpenPack()
return

@haens90
Copy link

haens90 commented Dec 19, 2019

I feel the original developer isn't interested in this anymore.
But I implemented something similar in my fork. Please have a look.
https://github.com/haens90/Hearthstone-Hotkeys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants