update:
Add Multimedia Functions \ timeGetTime
Fix Time Functions \ GetTickCount
Fix Time Functions \ GetTickCount64
WinApi, DllCalls & AHK
Re: WinApi, DllCalls & AHK
[AHK] v2.0.18 | [WIN] 11 Pro (23H2) | [GitHub] Profile
Re: WinApi, DllCalls & AHK
update:
Add National Language Support Functions \ GetDurationFormat
Add System Information Functions \ GetComputerName
Add System Information Functions \ GetProductInfo
Add System Information Functions \ GetSystemDirectory
Add System Information Functions \ GetSystemRegistryQuota
Add System Information Functions \ GetSystemWindowsDirectory
Add System Information Functions \ GetSystemWow64Directory
Add System Information Functions \ GetUserName
Add System Information Functions \ GetWindowsDirectory
Fix Array-Begin from 0 to 1
Add National Language Support Functions \ GetDurationFormat
Add System Information Functions \ GetComputerName
Add System Information Functions \ GetProductInfo
Add System Information Functions \ GetSystemDirectory
Add System Information Functions \ GetSystemRegistryQuota
Add System Information Functions \ GetSystemWindowsDirectory
Add System Information Functions \ GetSystemWow64Directory
Add System Information Functions \ GetUserName
Add System Information Functions \ GetWindowsDirectory
Fix Array-Begin from 0 to 1
[AHK] v2.0.18 | [WIN] 11 Pro (23H2) | [GitHub] Profile
Re: WinApi, DllCalls & AHK
update:
Add String Functions \ CharLower
Add String Functions \ CharLowerBuff
Add String Functions \ CharUpper
Add String Functions \ CharUpperBuff
Fix return (delete , and %)
Add String Functions \ CharLower
Add String Functions \ CharLowerBuff
Add String Functions \ CharUpper
Add String Functions \ CharUpperBuff
Fix return (delete , and %)
[AHK] v2.0.18 | [WIN] 11 Pro (23H2) | [GitHub] Profile
Re: WinApi, DllCalls & AHK
COD : UF vs COD : BO
Call of DLL : Undocumented Functions vs Call of Duty : Black Ops
Call of DLL : Undocumented Functions vs Call of Duty : Black Ops
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: WinApi, DllCalls & AHK
Here is my contribution : AnimateWindow
Code: Select all
/*
http://msdn.microsoft.com/library/ms632669
BOOL WINAPI AnimateWindow(
_In_ HWND hwnd,
_In_ DWORD dwTime,
_In_ DWORD dwFlags
);
*/
AW_BLEND := 0x00080000 ; Uses a fade effect.
AW_SLIDE := 0x00040000 ; Uses slide animation. By default, roll animation is used.
AW_CENTER := 0x00000010 ; Animate collapse/expand to/from middle.
AW_HIDE := 0x00010000 ; Hides the window. By default, the window is shown.
AW_ACTIVATE := 0x00020000 ; Activates the window. Do not use this value with AW_HIDE.
AW_HOR_POSITIVE := 0x00000001 ; Animates the window from left to right.
AW_HOR_NEGATIVE := 0x00000002 ; Animates the window from right to left.
AW_VER_POSITIVE := 0x00000004 ; Animates the window from top to bottom.
AW_VER_NEGATIVE := 0x00000008 ; Animates the window from bottom to top.
AnimateWindow(h,t,f) {
return DllCall("AnimateWindow","UInt",h,"UInt",t,"UInt",f)
}
#NoEnv
#SingleInstance, Ignore
SetBatchLines -1
SetWinDelay 0
Gui, +HwndhGUI +ToolWindow
Gui, Color, c1A1A1A
Gui, Font, s18 cFEFEFE
Gui, Add, Text, x0 y224 w640 Center, AnimateWindow Test
Gui, Font, s8 cFEFEFE
Gui, Add, Text, x0 y+4 wp Center, Press Space to animate this window.
Gui, Show, w640 h480
GroupAdd,hGroup,ahk_id %hGUI%
return
GuiClose:
ExitApp
#IfWinActive ahk_group hGroup
Space::
AW_TIME:=500
MsgBox AnimateWindow : Fade In/Out
AnimateWindow(hGUI, AW_TIME, AW_BLEND|AW_HIDE) ;Hide
AnimateWindow(hGUI, AW_TIME, AW_BLEND) ;Show
MsgBox AnimateWindow : Roll Horizontal
AnimateWindow(hGUI, AW_TIME, AW_HOR_POSITIVE|AW_HIDE) ;Hide
AnimateWindow(hGUI, AW_TIME, AW_HOR_NEGATIVE) ;Show
MsgBox AnimateWindow : Roll Vertical
AnimateWindow(hGUI, AW_TIME, AW_VER_POSITIVE|AW_HIDE) ;Hide
AnimateWindow(hGUI, AW_TIME, AW_VER_NEGATIVE) ;Show
MsgBox AnimateWindow : Slide Horizontal
AnimateWindow(hGUI, AW_TIME, AW_HOR_POSITIVE|AW_SLIDE|AW_HIDE) ;Hide
AnimateWindow(hGUI, AW_TIME, AW_HOR_NEGATIVE|AW_SLIDE) ;Show
MsgBox AnimateWindow : Slide Vertical
AnimateWindow(hGUI, AW_TIME, AW_VER_POSITIVE|AW_SLIDE|AW_HIDE) ;Hide
AnimateWindow(hGUI, AW_TIME, AW_VER_NEGATIVE|AW_SLIDE) ;Show
MsgBox AnimateWindow : Roll Collapse/Expand to/from middle
AnimateWindow(hGUI, AW_TIME, AW_CENTER|AW_HIDE) ;Hide
AnimateWindow(hGUI, AW_TIME, AW_CENTER) ;Show
MsgBox AnimateWindow : Done!
return
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: WinApi, DllCalls & AHK
update:
Add File Management Functions \ GetFileAttributes
Add File Management Functions \ GetFileSize
Add File Management Functions \ GetFileSizeEx
Add File Management Functions \ GetTempPath
Add File Management Functions \ GetFileAttributes
Add File Management Functions \ GetFileSize
Add File Management Functions \ GetFileSizeEx
Add File Management Functions \ GetTempPath
[AHK] v2.0.18 | [WIN] 11 Pro (23H2) | [GitHub] Profile
Re: WinApi, DllCalls & AHK
update:
Add Error Handling Functions \ FormatMessage
Add Error Handling Functions \ GetLastError
Add PSAPI Functions \ GetModuleFileNameEx
Fix c++ codes
Add Error Handling Functions \ FormatMessage
Add Error Handling Functions \ GetLastError
Add PSAPI Functions \ GetModuleFileNameEx
Fix c++ codes
[AHK] v2.0.18 | [WIN] 11 Pro (23H2) | [GitHub] Profile
Re: WinApi, DllCalls & AHK
Great job so far, thanks!
Could you look at adding support for Raw Input. like getting the device list, registering your app, and receiving input data from the devices on that list?
http://msdn.microsoft.com/en-us/library ... s.85).aspx
Could you look at adding support for Raw Input. like getting the device list, registering your app, and receiving input data from the devices on that list?
http://msdn.microsoft.com/en-us/library ... s.85).aspx
Re: WinApi, DllCalls & AHK
update:
Change License
Fix Bugs
Add Error handling
Add Directory Management Functions \ CreateDirectory
Add Directory Management Functions \ RemoveDirectory
Add Directory Management Functions \ SetCurrentDirectory
Add Mouse Input Functions \ ClipCursor
Add System Information Functions \ GetUserNameEx
Please report any bugs or mistakes.
New update with bugfixes, error handlings and new Functions coming soon
Change License
Fix Bugs
Add Error handling
Add Directory Management Functions \ CreateDirectory
Add Directory Management Functions \ RemoveDirectory
Add Directory Management Functions \ SetCurrentDirectory
Add Mouse Input Functions \ ClipCursor
Add System Information Functions \ GetUserNameEx
Please report any bugs or mistakes.
New update with bugfixes, error handlings and new Functions coming soon
[AHK] v2.0.18 | [WIN] 11 Pro (23H2) | [GitHub] Profile