Change the name of the variable does not affect the operations code But better to change $BORDER_LF_RI_SIZE,$BORDER_TO_BO_SIZE New script Mouse_Capture2.zip Mouse_Capture.au3 #include <WindowsConstants.au3> #include <WindowsConstants.au3> #include <StructureConstants.au3> #include <GUIConstantsEx.au3> #include <StructureConstants.au3> #include <Constants.au3> #include <WinAPI.au3> Global $HHook , $WM_LBUTTON_TEST = 0 , $START_X , $START_Y , $MouseGui