#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.
x = 15
y = 15
Gui, Add, Button, x556 y327 w200 h50 , Button
Gui, Add, Edit, x516 y127 w220 h90 , Edit
Gui, Add, ListBox, x186 y137 w60 h130 , ListBox
; Generated using SmartGUI Creator for SciTE
Gui, Show, w962 h516, Untitled GUI
vk41:: ; A
x += 2
CoordMode, Mouse
MouseMove, x, y
return
vk44:: ; D
CoordMode, Mouse
x -= 2
MouseMove, x, y
return
vk57:: ; W
CoordMode, Mouse
y += 2
MouseMove, x, y
Gui, Add, Button, x306 y177 w140 h60 , Button
return
vk53:: S
CoordMode, Mouse
y -= 2
MouseMove, x, y
return
Вот
(И даже если и в конец самого окна будет курсор уходить, мне нужно что бы допустим кнопка уходила, а не курсор. Да и не в конец, а с её начального места (X25 & Y25 к примеру.)