本帖最后由 lixiaolong 于 2011-2-27 12:47 编辑
我只会移动窗口
$message = "按下 Ctrl 或 Shift 键选择多个文件."
$Timer = DllCallbackRegister("Timer", "int", "hwnd;uint;uint;dword")
$TimerDLL = DllCall("user32.dll", "uint", "SetTimer", "hwnd", 0, "uint", 0, "int", 0, "ptr", DllCallbackGetPtr($Timer))
$var = FileOpenDialog($message, @WindowsDir & "\", "Images (*.jpg;*.bmp)", 1 + 4)
If @error Then
MsgBox(4096, "", "没有选择文件")
Else
$var = StringReplace($var, "|", @CRLF)
MsgBox(4096, "", "你选择了: " & $var)
EndIf
Func Timer($hWnd, $uiMsg, $idEvent, $dwTime)
If $idEvent = $TimerDLL[0] Then
If WinExists($message) Then _WinCenter($message)
EndIf
EndFunc ;==>Timer
_WinCenter()
http://www.autoitx.com/forum.php ... E%C6%F7%D6%D0%D0%C4 |