stealzy
Путь менял и так же менял место все равно выдает ошибку
error adding FileInstall file:
"Имя файлa"
Вот полный код
PathIni = IniFile.ini
IniRead, MyGuiHotkey, % PathIni, Section, MyGuiHotkey, % A_Space
Hotkey, % PrSetSuspend := MyGuiHotkey, Suspend, UseErrorLevel
FileInstall, a79465b31e5b.jpg, %A_Temp%\a79465b31e5b.jpg
Gui, Add, Picture, x-278 y-50 w1020 h720 , %A_Temp%\a79465b31e5b.jpg
Gui, Font, S16 Cblue, Verdana
Gui, Add, Text, x142 y10 w190 h30 BackgroundTrans, Введите клавишу
Gui, Add, Hotkey, x62 y40 w300 h30 gSetSuspend vMyGuiHotkey, %MyGuiHotkey%
Gui, Add, Button, x162 y80 w120 h30, ОК
; Generated using SmartGUI Creator for SciTE
Gui, Show, w479 h379, Зажим
Return
SetSuspend:
Hotkey, % PrSetSuspend, Off, UseErrorLevel
GuiControlGet, Hotkey, %A_Gui%:, %A_GuiControl%
Hotkey := FormatHotkey(Hotkey)
Hotkey, % PrSetSuspend := Hotkey, Suspend
IniWrite, % Hotkey, % PathIni, Section, % A_GuiControl
Return
Suspend:
Suspend
Return
FormatHotkey(Hotkey) {
RegExMatch(Hotkey, "S)^([\^\+!]*)(.*?)$", K)
If (StrLen(K2) = 1)
Return K1 . Format("sc{:X}", GetKeySC(K2))
Return Hotkey
}
Сама картинка находится в C:\Users\User\AppData\Local\Temp\"Картинка"