Preview of v1.1.28.00 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 24&t=42628
- StrSplit with positive MaxParts but no delimiter, appears to do StrSplit as normal, as if MaxParts were equal to -1.
- WinMenuSelectItem applied to the sysmenu, works once, but not multiple times on a window, it appears that control of the sysmenu is not being reverted to the window.
E.g. DllCall("user32\GetSystemMenu", Ptr,hSysMenu, Int,1, Ptr) to revert.
E.g. you can see that the sysmenu looks 'old school', after applying WinMenuSelectItem.
[EDIT:] It appears that the problem occurs when the script is closed/reloaded.
- General test code applied to v1.1.28.00 preview:
Code: Select all
;ERROR: StrSplit MaxParts: when no delimiter
;ERROR: WinMenuSelectItem sysmenu: doesn't revert
;Hotstring(":*:abc", "hello world")
;#Include C:\Users\%A_UserName%\Desktop\z include.txt
;file contains:
;MsgBox, % "hey"
;ListLines, On
;MsgBox, % A_ListLines
;ListLines, Off
;MsgBox, % A_ListLines
;MsgBox, % A_ComSpec
;:*E:abc::MsgBox
;MaxParts = 5: 4 items and 1 guff item
;oTemp := StrSplit("a,b,c,d,e,f,g,h,i,j", ",",, 5)
;MsgBox, % oTemp.4
;MsgBox, % oTemp.5
;MsgBox, % oTemp.Length()
;oTemp := StrSplit("abcdefghij",,, 5)
;MsgBox, % oTemp.4
;MsgBox, % oTemp.5
;MsgBox, % oTemp.6
;MsgBox, % oTemp.Length()
;vDir1 := A_ScriptDir
;Loop, Files, % vDir1 "\*", F
;{
; vPath := A_LoopFilePath
; MsgBox, % vPath
;}
;#InstallKeybdHook
;#InstallMouseHook
;Loop, 1000
;{
; ToolTip, % A_TimeIdleKeyboard "`r`n" A_TimeIdleMouse
; Sleep, 1000
;}
;WinWaitActive, ahk_class Notepad
;Sleep, 2000
;WinMenuSelectItem, A,, 0&, Maximize
;SoundBeep