怎么实现桌面右击,修改中等图标
怎么实现桌面右击,修改中等图标小图标?Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics] "Shell Icon Size"="64"
[此贴子已经被作者于2021-1-26 15:12编辑过]
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long) Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Private Const MOUSEEVENTF_MOVE = &H1 Private Const MOUSEEVENTF_LEFTDOWN = &H2 Private Const MOUSEEVENTF_LEFTUP = &H4 Private Const MOUSEEVENTF_RIGHTDOWN = &H8 Private Const MOUSEEVENTF_RIGHTUP = &H10 Private Sub Form_Load() Set objSHA = CreateObject("Shell.Application") objSHA.ToggleDesktop Set objSHA = Nothing Sleep 1000 SetCursorPos 0, 0 mouse_event MOUSEEVENTF_RIGHTDOWN Or MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0 Sleep 1000 SetCursorPos 45, 13 Sleep 1000 SetCursorPos 270, 36 mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 End End Sub
[此贴子已经被作者于2021-1-26 19:24编辑过]