簡體   English   中英

AutoHotkey的MouseClickDrag在選擇Paint.NET圖像平方面積時遇到問題?

[英]AutoHotkey's MouseClickDrag issues in dealing with selecting Paint.NET images squared area?

(如果要重現此示例,請從此處下載Paint.NET,它是免費的,並且比Microsoft Paint具有更多的功能)。

當您打開Paint.NET時,加載一個簡單的圖像並將矩形選擇作為工具。

我寫了這個簡單的腳本:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

^d::
MouseClickDrag, Left, 365, 434, 906, 460
;You can change mouse coordinates as you wish
Send, ^c
Return

使用Ctrl + d運行它。

我無法選擇這些坐標所描述的區域,但是使用矩形顏色填充儀效果很好。

如果我使用矩形選擇器,似乎AutoHotkey不會突出顯示該區域。

你有同樣的問題嗎?

如果SendMode Input不起作用, 事件通常會起作用。 不幸的是,它不如Input快,因此使用SetKeyDelay可能有助於SetKeyDelay這種影響。
但是,如果您正在尋找一種自動操作圖像的方法,建議您使用GDI +

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM