Deye Posted May 4, 2017 Share Posted May 4, 2017 (edited) Hi, I'm trying to retrieve each $SPI_GETWINARRANGING parameter = true or false and then apply the actual return with $SPIF_SENDCHANGE Just trying to understand how _WinAPI_SystemParametersInfo can be used Thanks expandcollapse popup#include <Array.au3> #include <WinAPI.au3> Local Const $SPI_GETWINARRANGING = 130 Local Const $SPI_SETWINARRANGING = 131 Local Const $SPI_GETDOCKMOVING = 0x0090 Local Const $SPI_GETMOUSEDOCKTHRESHOLD = 0x007E Local Const $SPI_GETMOUSEDRAGOUTTHRESHOLD = 0x0084 Local Const $SPI_GETMOUSESIDEMOVETHRESHOLD = 0x0088 Local Const $SPI_GETPENDOCKTHRESHOLD = 0x0080 Local Const $SPI_GETPENDRAGOUTTHRESHOLD = 0x0086 Local Const $SPI_GETPENSIDEMOVETHRESHOLD = 0x008A Local Const $SPI_GETSNAPSIZING = 0x008E Local $WINARRANG[9][2] $WINARRANG[0][0] = 9 $WINARRANG[1][0] = 0x0090 $WINARRANG[2][0] = 0x007E $WINARRANG[3][0] = 0x0084 $WINARRANG[4][0] = 0x0088 $WINARRANG[5][0] = 0x0080 $WINARRANG[6][0] = 0x0086 $WINARRANG[7][0] = 0x008A $WINARRANG[8][0] = 0x008E ;Determines whether window arrangement is enabled. The pvParam parameter must point to a BOOL variable that receives TRUE if enabled, or FALSE otherwise. For $i = 1 To UBound($WINARRANG) - 1 If _WinAPI_SystemParametersInfo($SPI_GETWINARRANGING, 0, $WINARRANG[$i][0]) Then $WINARRANG[$i][1] = 1 Else $WINARRANG[$i][1] = 0 EndIf Next _ArrayDisplay($WINARRANG) ;~ For $i = 1 To UBound($WINARRANG) - 1 ;~ _WinAPI_SystemParametersInfo($SPI_SETWINARRANGING, $WINARRANG[$i][0], $WINARRANG[$i][1], $SPIF_SENDCHANGE) ;~ Next Edited May 4, 2017 by Deye Link to comment Share on other sites More sharing options...
232showtime Posted May 4, 2017 Share Posted May 4, 2017 whats inside the $SPIF_SENDCHANGE ???? Deye 1 ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Deye Posted May 4, 2017 Author Share Posted May 4, 2017 (edited) 1 hour ago, Deye said: _WinAPI_SystemParametersInfo($SPI_SETWINARRANGING, [$i0,$i1], $SPIF_SENDCHANGE) never mind , updated .. i didn't want anyone to run this yet , since it probably all wrong .. Edited May 4, 2017 by Deye 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