Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonUnch authored Jan 22, 2021
1 parent 0f906e3 commit b0b43f3
Show file tree
Hide file tree
Showing 30 changed files with 130 additions and 100 deletions.
Binary file modified AltDrag.ini
Binary file not shown.
49 changes: 47 additions & 2 deletions AltDrag.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*=========================================================================*
* ALTDRAG for NT4 to Win10 *
* Modified by Raymond Gillibert from original source by Stefan Sundin *
* release 1.33 (January 8, 2021) *
* release 1.34 (January 16, 2021) *
*-------------------------------------------------------------------------*
* Download MEGA: https://mega.nz/folder/mW5ExCCT#gI8DQICICk-y4FIjxaqtGg *
* Download GitHub: https://github.com/RamonUnch/AltDrag/releases/ *
Expand All @@ -24,12 +24,57 @@ Note that this version has some more feature..

== CHANGELOG ==

== AltDrag 1.35 ==

+ Now the window can be displayed translucent while moving it.

* Fixed: When using the Win+Shift + doubleclick, the start menu would
appear under Windows 10.

* Changed: to simplify the code and avoid bugs, the Ctrl is no longer
suggested as a hotkey and if using it (using the ini file) other Ctrl
functions will be unavailable (it was buggy in the first place anyway).

* Fixed: Ctrl in some cases does not work properly to retain window
in current monitor and would be stuck sometime (thanks redactedscribe).
To avoid those problems that are specific to Ctrl, the Shift key can now
be used to restrict cursor to current monitor when dragging a window.

* Fixed: When adding a monitor, altdrag needed a restart,
this is no more the case.

* Fixed .manifest file so that proper windows version can be obtained.

* GUI fixed: Now under Windows 10, the 'scroll inactive window' option will
be grayed out unless it is activated, so that users do not enable it by
mistake and to make it clear that it is useless for Win10.

* GUI Fixed: Now if desktop composition is enabled, it will no longer be
possible to disable the Drag Full Window option (GDI Performances problem).

== AltDrag 1.34 ==

+ Added MMBLower in the [Blacklists] section of AltDrag.ini in order to
disable the "Lower windows by middle clicking on the title bar" option
for any window. use the name|class format.
Example: MMBLower=*|CASCADIA_HOSTING_WINDOW_CLASS
if you want to close tabs with midle click on Windows Terminal.

* Fixed: now the Lower action will deselect the lowered window if possible
so that it can be reselected easily (thanks redactedscribe).

* Fixed: Now when a windows is snapped normally under windows,
it will be restored properly if AltDragging it out. If a window is
snapped with AltDrag, however it can only be restored with AltDrag.

* Fixed: Scroll Action was restored to the 1.29 version behaviour (kimks3).

== AltDrag 1.33 ==

+ Added a MinAlpha option in the [Advanded] section of AltDrag.ini, in order
to adjust from 0 to 255 the minimum opacity of a windows (dfault is 8).

* Fixed AltDrag freezing when changing dip scaling or going to sleep mode.
* Fixed AltDrag freezing when changing dpi scaling or going to sleep mode.

* Fixed Stupid bug that would restart AltDrag wen moving windows between
monitors with different dpi scalings.
Expand Down
Binary file modified Lang/_en_US baseline.txt
Binary file not shown.
Binary file modified Lang/ca_ES.ini
Binary file not shown.
Binary file modified Lang/de_DE.ini
Binary file not shown.
Binary file modified Lang/es_ES.ini
Binary file not shown.
Binary file modified Lang/fr_FR.ini
Binary file not shown.
Binary file modified Lang/gl_ES.ini
Binary file not shown.
Binary file modified Lang/it_IT.ini
Binary file not shown.
Binary file modified Lang/ja_JP.ini
Binary file not shown.
Binary file modified Lang/ko_KR.ini
Binary file not shown.
Binary file modified Lang/nb_NO.ini
Binary file not shown.
Binary file modified Lang/nl_NL.ini
Binary file not shown.
Binary file modified Lang/pl_PL.ini
Binary file not shown.
Binary file modified Lang/pt_PR.ini
Binary file not shown.
Binary file modified Lang/ru_RU.ini
Binary file not shown.
Binary file modified Lang/sz_SK.ini
Binary file not shown.
Binary file modified Lang/zh_CN.ini
Binary file not shown.
Binary file modified Lang/zh_TW.ini
Binary file not shown.
9 changes: 5 additions & 4 deletions altdrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// App
#define APP_NAME L"AltDrag"
#define APP_NAMEA "AltDrag"
#define APP_VERSION "1.34"
#define APP_VERSION "1.35"

// Messages
#define WM_TRAY (WM_USER+1)
Expand Down Expand Up @@ -45,7 +45,7 @@ wchar_t inipath[MAX_PATH];
HINSTANCE hinstDLL = NULL;
HHOOK keyhook = NULL;
char elevated = 0;
char vista = 0;
char WinVer = 0;

// Include stuff
#include "unfuck.h"
Expand Down Expand Up @@ -240,10 +240,11 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, char *szCmdLine, in
}
}

// Check if elevated if in >= Vista
// Check if elevated if in >= WinVer
OSVERSIONINFO vi = { sizeof(OSVERSIONINFO) };
GetVersionEx(&vi);
if ((vista = vi.dwMajorVersion >= 6)) {
WinVer = vi.dwMajorVersion;
if (VISTA) { // Vista +
HANDLE token;
TOKEN_ELEVATION elevation;
DWORD len;
Expand Down
6 changes: 4 additions & 2 deletions altdrag.nsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# define the name of the installer
!define APP_NAME "AltDrag"
!define APP_VERSION "1.34"
!define APP_VERSION "1.35"

# define the name of the installer
OutFile "${APP_NAME}${APP_VERSION}-inst.exe"
Expand Down Expand Up @@ -33,6 +33,8 @@ Section
; Rename old ini file if it exists
IfFileExists "${APP_NAME}.ini" +2 0
File AltDrag.ini
ifFileExists "hooks_x64.dll" 0 +2
File AltDrag.ini

; Delete files that existed in earlier versions
Delete /REBOOTOK "$INSTDIR\info.txt" ; existed in <= 0.9
Expand Down Expand Up @@ -116,7 +118,7 @@ Section "Uninstall"
Delete License.txt
Delete Lang\*.*
RMDir "$INSTDIR\Lang"

SetOutPath $APPDATA
RMDir "$INSTDIR"

Expand Down
6 changes: 3 additions & 3 deletions altdrag.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "x86.exe.manifest"

#define VS_VERSION_INFO 1
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,4,0
PRODUCTVERSION 1,3,4,0
FILEVERSION 1,3,5,0
PRODUCTVERSION 1,3,5,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
Expand All @@ -21,7 +21,7 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "AltDrag"
VALUE "FileVersion", "1.34"
VALUE "FileVersion", "1.35"
VALUE "InternalName", "altdrag"
VALUE "OriginalFilename", "AltDrag.exe"
VALUE "CompanyName", "Gillibert Software"
Expand Down
18 changes: 11 additions & 7 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,14 @@ INT_PTR CALLBACK GeneralPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA

ret = GetPrivateProfileInt(L"General", L"InactiveScroll", 0, inipath);
Button_SetCheck(GetDlgItem(hwnd, IDC_INACTIVESCROLL), ret? BST_CHECKED : BST_UNCHECKED);
if(WIN10) Button_Enable(GetDlgItem(hwnd, IDC_INACTIVESCROLL), ret);

ret=GetPrivateProfileInt(L"General", L"MDI", 0, inipath);
Button_SetCheck(GetDlgItem(hwnd, IDC_MDI), ret? BST_CHECKED : BST_UNCHECKED);

ret=GetPrivateProfileInt(L"Performance", L"FullWin", 1, inipath);
Button_SetCheck(GetDlgItem(hwnd, IDC_FULLWIN), ret? BST_CHECKED : BST_UNCHECKED);
if(HaveDWM()) Button_Enable(GetDlgItem(hwnd, IDC_FULLWIN), !ret);

ret=GetPrivateProfileInt(L"Advanced", L"ResizeAll", 1, inipath);
Button_SetCheck(GetDlgItem(hwnd, IDC_RESIZEALL), ret? BST_CHECKED : BST_UNCHECKED);
Expand All @@ -284,7 +286,8 @@ INT_PTR CALLBACK GeneralPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
}
}

Button_Enable(GetDlgItem(hwnd, IDC_ELEVATE), vista && !elevated);
Button_Enable(GetDlgItem(hwnd, IDC_ELEVATE), VISTA && !elevated);

} else if (msg == WM_COMMAND) {
int id = LOWORD(wParam);
int event = HIWORD(wParam);
Expand Down Expand Up @@ -331,7 +334,7 @@ INT_PTR CALLBACK GeneralPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
} else if (id == IDC_AUTOSTART) {
SetAutostart(val, 0, 0);
Button_Enable(GetDlgItem(hwnd, IDC_AUTOSTART_HIDE), val);
Button_Enable(GetDlgItem(hwnd, IDC_AUTOSTART_ELEVATE), val && vista);
Button_Enable(GetDlgItem(hwnd, IDC_AUTOSTART_ELEVATE), val && VISTA);
if (!val) {
Button_SetCheck(GetDlgItem(hwnd, IDC_AUTOSTART_HIDE), BST_UNCHECKED);
Button_SetCheck(GetDlgItem(hwnd, IDC_AUTOSTART_ELEVATE), BST_UNCHECKED);
Expand Down Expand Up @@ -376,7 +379,8 @@ INT_PTR CALLBACK GeneralPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
Button_SetCheck(GetDlgItem(hwnd, IDC_AUTOSTART_HIDE), hidden ? BST_CHECKED : BST_UNCHECKED);
Button_SetCheck(GetDlgItem(hwnd, IDC_AUTOSTART_ELEVATE), elevated ? BST_CHECKED : BST_UNCHECKED);
Button_Enable(GetDlgItem(hwnd, IDC_AUTOSTART_HIDE), autostart);
Button_Enable(GetDlgItem(hwnd, IDC_AUTOSTART_ELEVATE), autostart && vista);
Button_Enable(GetDlgItem(hwnd, IDC_AUTOSTART_ELEVATE), autostart && VISTA);

}
}
if (updatestrings) {
Expand Down Expand Up @@ -470,8 +474,8 @@ INT_PTR CALLBACK InputPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
{ IDC_RIGHTALT, VK_RMENU },
{ IDC_LEFTWINKEY, VK_LWIN },
{ IDC_RIGHTWINKEY, VK_RWIN },
{ IDC_LEFTCTRL, VK_LCONTROL },
{ IDC_RIGHTCTRL, VK_RCONTROL },
// { IDC_LEFTCTRL, VK_LCONTROL },
// { IDC_RIGHTCTRL, VK_RCONTROL },
};

if (msg == WM_INITDIALOG) {
Expand Down Expand Up @@ -612,8 +616,8 @@ INT_PTR CALLBACK InputPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
SetDlgItemText(hwnd, IDC_RIGHTALT, l10n->input_hotkeys_rightalt);
SetDlgItemText(hwnd, IDC_LEFTWINKEY, l10n->input_hotkeys_leftwinkey);
SetDlgItemText(hwnd, IDC_RIGHTWINKEY, l10n->input_hotkeys_rightwinkey);
SetDlgItemText(hwnd, IDC_LEFTCTRL, l10n->input_hotkeys_leftctrl);
SetDlgItemText(hwnd, IDC_RIGHTCTRL, l10n->input_hotkeys_rightctrl);
// SetDlgItemText(hwnd, IDC_LEFTCTRL, l10n->input_hotkeys_leftctrl);
// SetDlgItemText(hwnd, IDC_RIGHTCTRL, l10n->input_hotkeys_rightctrl);
SetDlgItemText(hwnd, IDC_HOTKEYS_MORE, l10n->input_hotkeys_more);
}
}
Expand Down
Loading

0 comments on commit b0b43f3

Please sign in to comment.