Zoom, Phóng lớn khu vực cần thiết với AutoIT
Số trang: 3
Loại file: pdf
Dung lượng: 92.26 KB
Lượt xem: 10
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Bạn sử dụng đoạn code sau để phóng to khu vực cần thiết.#include #include #include #include Opt(MustDeclareVars, 1) _Zoom() Func _Zoom() Global $hGUI1, $hGUI2, $hImage, $hGraphic1, $hGraphic2, $pos, $x ,$y, $z $hGUI2 = GUICreate("Zoom", 200, 200, @DesktopWidth/2, @DesktopHeight/2,$WS_GROUP) GUISetState() $x = 120 $y = 50 $z = 100 WinSetOnTop(Zoom,,1) while 1
Nội dung trích xuất từ tài liệu:
Zoom, Phóng lớn khu vực cần thiết với AutoIT Zoom, Phóng lớn khu vực cần thiết với AutoITBạn sử dụng đoạn code sau để phóng to khu vực cần thiết.#include #include #include #include Opt(MustDeclareVars, 1)_Zoom()Func _Zoom()Global $hGUI1, $hGUI2, $hImage, $hGraphic1, $hGraphic2, $pos, $x ,$y, $z$hGUI2 = GUICreate(Zoom, 200, 200, @DesktopWidth/2,@DesktopHeight/2,$WS_GROUP)GUISetState()$x = 120$y = 50$z = 100WinSetOnTop(Zoom,,1)while 1HotKeySet({ESC},_Exit)HotKeySet({F5},_up)HotKeySet({F6},_down)$pos = MouseGetPos()_ScreenCapture_Capture (@WindowsDir&\zoom.jpe, $pos[0]-$y, $pos[1]-$y, $pos[0]+$z, $pos[1]+$z)_GDIPlus_Startup ()$hImage = _GDIPlus_ImageLoadFromFile (@WindowsDir&\zoom.jpe)$hGraphic1 = _GDIPlus_GraphicsCreateFromHWND ($hGUI1)_GDIPlus_GraphicsDrawImage ($hGraphic1, $hImage, 0, 0)$hGraphic2 = _GDIPlus_GraphicsCreateFromHWND ($hGUI2)_GDIPlus_GraphicsDrawImageRectRect ($hGraphic2, $hImage,0, 0,$x, $x,0,0,200, 200)_GDIPlus_GraphicsDispose ($hGraphic1)_GDIPlus_GraphicsDispose ($hGraphic2)_GDIPlus_ImageDispose ($hImage)_GDIPlus_Shutdown ()FileDelete(@WindowsDir&\dat.jpe)WEndEndFuncFunc _Exit()ExitEndFuncFunc _Up()$x = $x + 2$y = $y + 1$z = $z + 1EndFuncFunc _Down()$x = $x - 2$y = $y - 1$z = $z - 1EndFunc
Nội dung trích xuất từ tài liệu:
Zoom, Phóng lớn khu vực cần thiết với AutoIT Zoom, Phóng lớn khu vực cần thiết với AutoITBạn sử dụng đoạn code sau để phóng to khu vực cần thiết.#include #include #include #include Opt(MustDeclareVars, 1)_Zoom()Func _Zoom()Global $hGUI1, $hGUI2, $hImage, $hGraphic1, $hGraphic2, $pos, $x ,$y, $z$hGUI2 = GUICreate(Zoom, 200, 200, @DesktopWidth/2,@DesktopHeight/2,$WS_GROUP)GUISetState()$x = 120$y = 50$z = 100WinSetOnTop(Zoom,,1)while 1HotKeySet({ESC},_Exit)HotKeySet({F5},_up)HotKeySet({F6},_down)$pos = MouseGetPos()_ScreenCapture_Capture (@WindowsDir&\zoom.jpe, $pos[0]-$y, $pos[1]-$y, $pos[0]+$z, $pos[1]+$z)_GDIPlus_Startup ()$hImage = _GDIPlus_ImageLoadFromFile (@WindowsDir&\zoom.jpe)$hGraphic1 = _GDIPlus_GraphicsCreateFromHWND ($hGUI1)_GDIPlus_GraphicsDrawImage ($hGraphic1, $hImage, 0, 0)$hGraphic2 = _GDIPlus_GraphicsCreateFromHWND ($hGUI2)_GDIPlus_GraphicsDrawImageRectRect ($hGraphic2, $hImage,0, 0,$x, $x,0,0,200, 200)_GDIPlus_GraphicsDispose ($hGraphic1)_GDIPlus_GraphicsDispose ($hGraphic2)_GDIPlus_ImageDispose ($hImage)_GDIPlus_Shutdown ()FileDelete(@WindowsDir&\dat.jpe)WEndEndFuncFunc _Exit()ExitEndFuncFunc _Up()$x = $x + 2$y = $y + 1$z = $z + 1EndFuncFunc _Down()$x = $x - 2$y = $y - 1$z = $z - 1EndFunc
Tìm kiếm theo từ khóa liên quan:
Javascript ASP.NET Tin học đại cương giáo trình Tin học đại cương bài giảng Tin học đại cương tài liệu Tin học đại cương lý thuyết Tin học đại cươngTài liệu có liên quan:
-
Ứng dụng công cụ Quizizz thiết kế trò chơi học tập trong giảng dạy học phần tin học đại cương
12 trang 310 0 0 -
Tài liệu hướng dẫn thực hành Tin học đại cương - ĐH Bách Khoa Hà Nội
40 trang 263 0 0 -
Giáo trình Tin học đại cương part 7
19 trang 254 0 0 -
Giáo trình Tin học đại cương: Phần 1 - ĐH Kinh tế Quốc Dân
130 trang 184 0 0 -
Giáo trình Tin học đại cương: Phần 2 - Trần Đình Khang
118 trang 159 0 0 -
Giáo trình Tin học đại cương (Tái bản năm 2020): Phần 1 - PGS.TS. Nguyễn Thị Thu Thủy (Chủ biên)
105 trang 148 0 0 -
Hướng dẫn thực hành lập trình C trên Visual Studio
9 trang 138 0 0 -
Giáo trình Tin học đại cương: Phần 1 - Vi Hồng Thắm
90 trang 136 0 0 -
Quản trị người dùng trong Exchange 2007 bằng Powershell
9 trang 112 0 0 -
GIÁO TRÌNH LẬP TRÌNH WEB_PHẦN 2_BÀI 3
3 trang 110 0 0