Closed rob1121 closed 5 months ago
if you need to get the in game postion of an overlay window, you can add an ipc message for it, pass it from ingame dll to app side thought the IPC each time a movement is done
Thank you, @hiitiger. Can you direct me to the specific file I should check?
@rob1121 https://github.com/hiitiger/sln/blob/main/n_overlay/overlay/overlay.cc#L369 https://github.com/hiitiger/sln/blob/main/n_overlay/overlay/overlay.cc#L415
here you can send back the new windows position from in-game to electron side
I'm attempting to retrieve the updated x and y coordinates of the overlay window after moving it, but the
window.getPosition()
consistently returns the same[x, y]
value. Any suggestions on how to accurately fetch the x and y coordinates?