A lock is described for sliding aluminium door or window panels, wherein are used discrete hooking and locking mechanisms. The hooking mechanism comprises an oblong hook profile (21) which rotates automatically in a hooking or unhooking position into a vertically extending frame profile (1) which bears a respective recession shaping, as the sliding door/window panel is simply pulled in the opening or shutting direction, respectively. The locking mechanism operates so that, when being controlled by the user, it is set in a position for capturing the hooking mechanism in the hooking position, by capturing the immobilisation arm of the above mentioned, otherwise freely and automatically rotating, oblong hook profile (21).