What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Fix PoE Window in place?

Dbuddy

Member
Joined
Jun 18, 2012
Messages
963
Reaction score
0
Hey,

i want to try AutoIt soon but there is only 1 problem ;)

Somehow my PoE Window is moving a little bit around from time to time (dunno exactly what's causing this...) and i haven't found a win7-based solution....

the windows frame (for PoE and EB) should always be exactly be the same - no matter if i accidently drag&drop.


Goal:

1x doubleclick --> start Vm 1-x with time delay, start EB each VM, press "start" each vm. enjoy.
this could also do the "restart my machine once a day" job
 
Last edited:
Code:
Func ForcePoEOnPos($WantedX, $WantedY, $WantedWidth, $WantedHeight)
	;First we need to get the game window
	Local $GameHandle = WinGetHandle("[TITLE:Path of Exile; CLASS:Direct3DWindowClass]")
	If @error Then Return False
	
	;Now getting it's position
	Local $lPos = WinGetPos($GameHandle)
	If @error Then Return False
	
	;If it's not where we want, move it
	If $lPos[0] <> $WantedX Or $lPos[1] <> $WantedY Or $lPos[2] <> $WantedWidth Or $lPos[3] <> $WantedHeight Then
		WinMove($GameHandle, "", $WantedX, $WantedY, $WantedWidth, $WantedHeight)
		Sleep(3000)
	EndIf
	
	Return True
EndFunc

Call it in a loop
 
Hey,

i want to try AutoIt soon but there is only 1 problem ;)

Somehow my PoE Window is moving a little bit around from time to time (dunno exactly what's causing this...) and i haven't found a win7-based solution....

the windows frame (for PoE and EB) should always be exactly be the same - no matter if i accidently drag&drop.


Goal:

1x doubleclick --> start Vm 1-x with time delay, start EB each VM, press "start" each vm. enjoy.
this could also do the "restart my machine once a day" job
Code:
Func ForcePoEOnPos($WantedX, $WantedY, $WantedWidth, $WantedHeight)
	;First we need to get the game window
	Local $GameHandle = WinGetHandle("[TITLE:Path of Exile; CLASS:Direct3DWindowClass]")
	If @error Then Return False
	
	;Now getting it's position
	Local $lPos = WinGetPos($GameHandle)
	If @error Then Return False
	
	;If it's not where we want, move it
	If $lPos[0] <> $WantedX Or $lPos[1] <> $WantedY Or $lPos[2] <> $WantedWidth Or $lPos[3] <> $WantedHeight Then
		WinMove($GameHandle, "", $WantedX, $WantedY, $WantedWidth, $WantedHeight)
		Sleep(3000)
	EndIf
	
	Return True
EndFunc

Call it in a loop

You guys have serious OCDs... Damn I thought I was a good example of retardness but you're on the list too ! :D good snippet btw torm.
 
You guys have serious OCDs... Damn I thought I was a good example of retardness but you're on the list too ! :D good snippet btw torm.

well it's useful for the relogger. using something similiar too for the bot and poe window. doesnt have much to do with OCD issues tho :P
 
You guys have serious OCDs... Damn I thought I was a good example of retardness but you're on the list too ! :D good snippet btw torm.

It's not OCD's. I have a relogger but made in C#, it's using Image Find for... reasons and that's why I want the window to be on exact position with exact size.

I was working with AutoIT for few years so snippets like this are piece of cake :D
 
It's not OCD's. I have a relogger but made in C#, it's using Image Find for... reasons and that's why I want the window to be on exact position with exact size.

I was working with AutoIT for few years so snippets like this are piece of cake :D

Oh god pixelfind lol :D you've the skills to do it in c# fully u morons ! :D
 
Back
Top