This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
#Persistent | |
;~ ************************************************** | |
SetTitleMatchMode, 2 | |
SetTimer, Close_Scite, 200 | |
MsgBox here 1 | |
MsgBox here 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;~ #Include <xl> | |
;~ #Include <func> | |
;~ #Include <func> | |
;~ func("func") ; Это для прыжка на функцию, файл которого находится в той же папке/подпапке. Для работы нужно раскомментировать -- #Include <func> | |
func("func") | |
myfunc(b) | |
Gosub, subroutine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Include <func> ; при помощи такой строки сможем в `intellisense` вызывать те параметры которые имеем в другом файле "Intellisense_file_2"! | |
;~ func_one("one") | |
func_two("two") | |
;~ Func ; пишем и видим в `intellisense` -- func_One -- func_Two ! | |
;~ func_One() ; Курсор ставим на название функции > Alt+F1 > будет прыжок на файл func.ahk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text:="hello world" | |
;FiLeRead,text,C:\Users\NIKA\Downloads\New.txt ;если в файле текст то быстро прочитает с выводом в окно "дебаггер". | |
DebugWindow(Text,Clear:=l,LineBreak:=l,Sleep:=500) | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;~ Пример #1 | |
strHello := "Hello," | |
myName := "Alexander" | |
MsgBox % strHello " " myName | |
;~ Пример #2 | |
strHello := "Hello," | |
myName := "Alexander" | |
newText := strHello " " myName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;~ Вычисление - функции `abs` | |
MsgBox % abs(-5) ; получить модуль числа | |
; myNum := -5 | |
; MsgBox % abs(myNum) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myName := "Sasha" ; приоритетно к переменным (тут присваеваем переменной строку). | |
myAge = 18 ; приоритетно к тексту. | |
myVar := myName ; "myName" – если обрамить кавычками то тоже получим текст. | |
myVar2 = myAge | |
MsgBox % myVar "`n" myVar2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
// ### Базовая анимация | |
// Можно использовать со словами либо конкретно в миллисекундах. | |
// Способ 1: | |
$('.box:first').hide(1000) | |
// Способ 2: | |
$('.box:first').delay(1000).hide(1000) | |
// Способ 3: | |
$('.box:first').delay(1000).hide(1000).delay(1000).show(1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// ### Формы (focus, change и т.д.) | |
// input - текстовое поле для ввода; focus - то есть поместили курсор в область этого поля. | |
$('input').focus(function() { | |
// Ещё можно присваивать какие то классы, значения, менять стиль элементов но в качестве примера выберем - console. | |
console.log("Поле в фокусе"); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// ### Можем выделить все теги p, h2, h1 и т.д. c обводкой. | |
$('p').css('border', 'solid 3px red'); | |
// Чтобы обратиться к конкретному элементу (p.blue, #id) | |
//p - это тэг который имеет клас .lead | |
$('p.lead').css('border', 'solid 3px red'); | |
}); |
NewerOlder