当我想用这个变量随机休眠几秒时,它总是休眠3000秒。我不知道为什么。我在多个论坛上搜索过,但大多数时候解决方案中提供的代码对我来说太复杂了。我遵循了这条评论中的确切步骤: https://www.reddit.com/r/AutoHotkey/comments/3o5trp/how_to_do_a_random_sleep_in_ahkautohotkey/cvuenc1/ 这是我的代码: pause on
,%run_Win% MsgBox,:( Oops }WinSet , AlwaysOnTop , Off , SciTE4AutoHotkeyAlwaysOnTop , On , %run_Win% ; dont work. window stays behindMouseGetPos,xM,yM
MouseMove,% x, % y , 10 ; works: mouse is moving to left top of