jacky998877 Posted May 14, 2023 Share Posted May 14, 2023 (edited) i use this code to resize potplayer , most of the time it works well, only not works when the potplayer is in full screen mode, how to modify the code? WinActivate("[CLASS:PotPlayer]") WinSetState("[CLASS:PotPlayer]", "", @SW_SHOWNORMAL) WinMove("[CLASS:PotPlayer]","",0,0,682,729) Edited May 14, 2023 by jacky998877 Link to comment Share on other sites More sharing options...
Solution ioa747 Posted May 14, 2023 Solution Share Posted May 14, 2023 (edited) first go to playback setting in default window size select custom 700X400 save, and then try again Edit: or first sendkey 1 to exit full screen Local $hPotPlayer = WinWait("[CLASS:PotPlayer]") WinActivate($hPotPlayer) Send("1") WinMove($hPotPlayer,"",0,0,682,729) or better Local $hPotPlayer = WinWait("[CLASS:PotPlayer]") WinActivate($hPotPlayer) Send("9") WinMove($hPotPlayer, "", 0, 0) Sleep(100) Send("8") to hold aspect ratio Edited May 14, 2023 by ioa747 jacky998877 1 I know that I know nothing Link to comment Share on other sites More sharing options...
jacky998877 Posted May 14, 2023 Author Share Posted May 14, 2023 58 minutes ago, ioa747 said: first go to playback setting in default window size select custom 700X400 save, and then try again Edit: or first sendkey 1 to exit full screen Local $hPotPlayer = WinWait("[CLASS:PotPlayer]") WinActivate($hPotPlayer) Send("1") WinMove($hPotPlayer,"",0,0,682,729) or better Local $hPotPlayer = WinWait("[CLASS:PotPlayer]") WinActivate($hPotPlayer) Send("9") WinMove($hPotPlayer, "", 0, 0) Sleep(100) Send("8") to hold aspect ratio it woked out perfectly.thx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now