Error at line 16 autohotkey что делать

Error at line 16 - posted in Ask for Help: Error at line 16.   Line Text: #z::Run www.autohotkey.com Error: Invaild hotkey.   The program will exit.   help me please i dont know what to do

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

Error at line 16.

Line Text: #z::Run www.autohotkey.com

Error: Invaild hotkey.

The program will exit.

help me please i dont know what to do :(

#1

Posted 12 October 2014 — 09:53 AM

  • Back to top



Jackie Sztuk _Blackholyman

  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012

Please post the rest of your script as that Line alone does not seem to hold Any errors if you have a winkey on your keyboard

#2

Posted 12 October 2014 — 10:02 AM

  • Back to top



snowmastery

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

how can i see the rest of my script ?

#3

Posted 12 October 2014 — 10:04 AM

  • Back to top



Jackie Sztuk _Blackholyman

  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012

Right click your script file and select the edit option, this will open a text editor with the text of your script.

#4

Posted 12 October 2014 — 10:30 AM

  • Back to top



snowmastery

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

I have’nt script I think

if I have where its need to be ?

#5

Posted 12 October 2014 — 10:33 AM

  • Back to top



Jackie Sztuk _Blackholyman

  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012

I can’t say maybe in your «My documents» folder

#6

Posted 12 October 2014 — 10:40 AM

  • Back to top



Oldman

  • Members
  • 2475 posts
  • Last active: Feb 18 2015 04:57 PM
  • Joined: 01 Dec 2013

If I understand correctly, you launched AutoHotkey.exe without defining any script, right ?

The error, at line 16, comes from the default script (AutoHotkey.ahk) located in «My Documents» folder, since line 16 contains this code :

#z::Run www.autohotkey.com

What keyboard layout do you use ?

Do you have a «z» key on it ?

#7

Posted 12 October 2014 — 11:04 AM

Si ton labeur est dur et que tes résultats sont minces, souviens toi du grand chêne qui avant n’était qu’un gland….comme toi ! (anonyme) ;)

L’art de lire, c’est l’art de penser avec un peu d’aide. (É. Faguet)

Windows 3.1. Collector’s Edition.     (www.avaaz.org)

  • Back to top



snowmastery

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

I think I does’nt use any script how can i defining one ?

#8

Posted 12 October 2014 — 11:34 AM

  • Back to top



Oldman

  • Members
  • 2475 posts
  • Last active: Feb 18 2015 04:57 PM
  • Joined: 01 Dec 2013

I think I does’nt use any script how can i defining one ?

Yes, you do. You use the default script (AutoHotkey.ahk).

You can create a text file with Notepad, but the extension has to be «ahk».

This little script example opens Notepad.

Run Notepad

#9

Posted 12 October 2014 — 11:59 AM

Si ton labeur est dur et que tes résultats sont minces, souviens toi du grand chêne qui avant n’était qu’un gland….comme toi ! (anonyme) ;)

L’art de lire, c’est l’art de penser avec un peu d’aide. (É. Faguet)

Windows 3.1. Collector’s Edition.     (www.avaaz.org)

  • Back to top



snowmastery

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

i cant get it … i tried and isnt working

#10

Posted 12 October 2014 — 12:57 PM

  • Back to top


  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

It is important for me to note that I do not speak English regularly so sorry if you a little hard to understand me…

i have Windows 7 32bit.

i installed the AutoHotkey(the newest version) and immediately show me this:

yjzkiwretzom.jpg

(I didn’t start any script)

what can i do to solve this problem.

Thanks for your help:)

#1

Posted 16 December 2014 — 01:22 AM

  • Back to top



flyingDman

  • Spam Officer
  • 2186 posts
  • Last active: Nov 07 2015 08:15 AM
  • Joined: 27 Feb 2009

Download the version found here.

#2

Posted 16 December 2014 — 02:04 AM

Marine Corps Gen. Joseph Dunford told senators at his Joint Chiefs of Staff confirmation hearing : “If you want to talk about a nation that could pose an existential threat to the United States, I’d have to point to Russia. And if you look at their behavior, it’s nothing short of alarming.”

  • Back to top



hardox12

  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

Download the version found here.

I downloaded from this site.. this version — Unicode 32-bit — recommended for new scripts.

and still does not work :

#3

Posted 16 December 2014 — 03:06 AM

  • Back to top



flyingDman

  • Spam Officer
  • 2186 posts
  • Last active: Nov 07 2015 08:15 AM
  • Joined: 27 Feb 2009

Try locating the file and comment the line in question out (placing a ; in front). See if that helps. 

By any chance, do you have another keyboard utility which has assigned #z to do something else?

#4

Posted 16 December 2014 — 06:26 AM

Marine Corps Gen. Joseph Dunford told senators at his Joint Chiefs of Staff confirmation hearing : “If you want to talk about a nation that could pose an existential threat to the United States, I’d have to point to Russia. And if you look at their behavior, it’s nothing short of alarming.”

  • Back to top



hardox12

  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

Try locating the file and comment the line in question out (placing a ; in front). See if that helps. 

By any chance, do you have another keyboard utility which has assigned #z to do something else?

if i understand true you mean drive C or D? i try to save both and stiil does not work..

and your question i don’t have another keyboard.

It is even possible to solve this problem?

#5

Posted 16 December 2014 — 12:04 PM

  • Back to top



Xtra

  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013

You started AutoHotkey.exe it asks you if you want to make a default script in your mydocuments folder.

This is the script:

; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments.  They are not executed.

; This script has a special filename and path because it is automatically
; launched when you run the program directly.  Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it.  You can have as many .ahk
; files as you want, located in any folder.  You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.

; SAMPLE HOTKEYS: Below are two sample hotkeys.  The first is Win+Z and it
; launches a web site in the default browser.  The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one).  To
; try out these hotkeys, run AutoHotkey again, which will load this file.

#z::Run www.autohotkey.com

^!n::
IfWinExist Untitled - Notepad
	WinActivate
else
	Run Notepad
return


; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded.  So feel free to customize it to suit your needs.

; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks.  It also explains more about hotkeys.

Basicly your running the above default script when running AutHotkey.exe directly.

When you want to run a script you do not run Autohotkey.exe. (There is no gui or program interface)

You should run the myscriptnamehere.ahk (user created) which its file extension .ahk is associated with AutoHotkey.exe.

Please read notes in bottom half of this posted default script .

Hope this makes sense.

#6

Posted 17 December 2014 — 04:05 AM

  • Back to top



hardox12

  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

You started AutoHotkey.exe it asks you if you want to make a default script in your mydocuments folder.

This is the script:

; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments.  They are not executed.

; This script has a special filename and path because it is automatically
; launched when you run the program directly.  Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it.  You can have as many .ahk
; files as you want, located in any folder.  You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.

; SAMPLE HOTKEYS: Below are two sample hotkeys.  The first is Win+Z and it
; launches a web site in the default browser.  The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one).  To
; try out these hotkeys, run AutoHotkey again, which will load this file.

#z::Run www.autohotkey.com

^!n::
IfWinExist Untitled - Notepad
	WinActivate
else
	Run Notepad
return


; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded.  So feel free to customize it to suit your needs.

; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks.  It also explains more about hotkeys.

Basicly your running the above default script when running AutHotkey.exe directly.

When you want to run a script you do not run Autohotkey.exe. (There is no gui or program interface)

You should run the myscriptnamehere.ahk (user created) which its file extension .ahk is associated with AutoHotkey.exe.

Please read notes in bottom half of this posted default script .

Hope this makes sense.

I did what I understand and still does not work :( :(

#7

Posted 17 December 2014 — 05:02 AM

  • Back to top


Содержание

  1. неработает ahk
  2. Сообщения 7
  3. 1 Тема от antoonfadeev07 2018-08-06 12:32:16
  4. Тема: неработает ahk
  5. Error at line 16
  6. Error at line 16
  7. Autohotkey error at line 16 что делать
  8. Error at line #

неработает ahk

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Сообщения 7

1 Тема от antoonfadeev07 2018-08-06 12:32:16

  • antoonfadeev07
  • Участник
  • Неактивен
  • Рейтинг : [ 0 | 0 ]

Тема: неработает ahk

F1::
SendMessage, 0x50,, 0x4190419,, A

Sendinput, /me сел на одно колено
Sleep 3000
Sendinput, /do Сидит
Sleep 3000
Sendinput, /me достал клятву Гиппократа
Sleep 3000
Sendinput, /do Клятва Гиппократа перед глазами
Sleep 3000
Sendinput, /me читает
Sleep 3000
Sendinput, «Клянусь Аполлоном, врачом Асклепием, Гигеей и Панакеей, всеми богами и богинями, беря их в

свидетели..
Sleep 3000
Sendinput, . посвятить свою жизнь служению человечеству,
Sleep 3000
Sendinput, /do Читает
Sleep 3000
Sendinput, Здоровье моего пациента будет основной моей заботой, буду уважать доверенные мне тайны,

Sleep 3000
Sendinput, /do Читает
Sleep 3000
Sendinput, К своим коллегам я буду относиться как к братьям,
Sleep 3000
Sendinput, /do Читает
Sleep 3000
Sendinput, Даже под угрозой я не буду использовать свои знания против законов человечности.
Sleep 3000
Sendinput, /do Читает
Sleep 3000
Sendinput, Я обещаю это торжественно, добровольно и чистосердечно.
Sleep 3000
Sendinput, /do Закончил читать
Sleep 3000
Sendinput, /me встал
Sleep 3000
Return

НАПИСАЛ ЭТО а он ошибку

Error at line 16.
Line text: свидетели
Error: this line does not contain a recognized action
The program will exit

Источник

Error at line 16

Error at line 16.

Error: Invaild hotkey.

The program will exit.

help me please i dont know what to do

  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012

[ AHK ] Version. 1.1+ [ CLOUD ] DropBox ; Copy [ WEBSITE ] Blog ; About

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

how can i see the rest of my script ?

  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012

[ AHK ] Version. 1.1+ [ CLOUD ] DropBox ; Copy [ WEBSITE ] Blog ; About

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

I have’nt script I think

if I have where its need to be ?

  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012

[ AHK ] Version. 1.1+ [ CLOUD ] DropBox ; Copy [ WEBSITE ] Blog ; About

  • Members
  • 2475 posts
  • Last active: Feb 18 2015 04:57 PM
  • Joined: 01 Dec 2013

If I understand correctly, you launched AutoHotkey.exe without defining any script, right ?

The error, at line 16, comes from the default script (AutoHotkey.ahk) located in «My Documents» folder, since line 16 contains this code :

What keyboard layout do you use ?

Do you have a «z» key on it ?

Si ton labeur est dur et que tes résultats sont minces, souviens toi du grand chêne qui avant n’était qu’un gland. comme toi ! (anonyme)

L’art de lire, c’est l’art de penser avec un peu d’aide. (É. Faguet)

Windows 3.1. Collector’s Edition. ( www.avaaz.org )

  • Members
  • 5 posts
  • Last active: Oct 12 2014 07:26 PM
  • Joined: 12 Oct 2014

I think I does’nt use any script how can i defining one ?

Источник

Error at line 16

It is important for me to note that I do not speak English regularly so sorry if you a little hard to understand me.

i have Windows 7 32bit.

i installed the AutoHotkey(the newest version) and immediately show me this:

( I didn’t start any script )

what can i do to solve this problem .

Thanks for your help:)

  • Spam Officer
  • 2186 posts
  • Last active: Nov 07 2015 08:15 AM
  • Joined: 27 Feb 2009

Download the version found here.

Marine Corps Gen. Joseph Dunford told senators at his Joint Chiefs of Staff confirmation hearing : “If you want to talk about a nation that could pose an existential threat to the United States, I’d have to point to Russia. And if you look at their behavior, it’s nothing short of alarming.”

  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

Download the version found here.

I downloaded from this site.. this version — Unicode 32-bit — recommended for new scripts.

and still does not work :

  • Spam Officer
  • 2186 posts
  • Last active: Nov 07 2015 08:15 AM
  • Joined: 27 Feb 2009

Try locating the file and comment the line in question out (placing a ; in front). See if that helps.

By any chance, do you have another keyboard utility which has assigned #z to do something else?

Marine Corps Gen. Joseph Dunford told senators at his Joint Chiefs of Staff confirmation hearing : “If you want to talk about a nation that could pose an existential threat to the United States, I’d have to point to Russia. And if you look at their behavior, it’s nothing short of alarming.”

  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

Try locating the file and comment the line in question out (placing a ; in front). See if that helps.

By any chance, do you have another keyboard utility which has assigned #z to do something else?

if i understand true you mean drive C or D? i try to save both and stiil does not work..

and your question i don’t have another keyboard.

It is even possible to solve this problem ?

  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013

You started AutoHotkey.exe it asks you if you want to make a default script in your mydocuments folder.

This is the script:

Basicly your running the above default script when running AutHotkey.exe directly.

When you want to run a script you do not run Autohotkey.exe. (There is no gui or program interface)

You should run the myscriptnamehere.ahk (user created) which its file extension .ahk is associated with AutoHotkey.exe.

Please read notes in bottom half of this posted default script .

Hope this makes sense.

  • Members
  • 4 posts
  • Last active: Jan 30 2015 12:38 PM
  • Joined: 16 Dec 2014

You started AutoHotkey.exe it asks you if you want to make a default script in your mydocuments folder.

This is the script:

Basicly your running the above default script when running AutHotkey.exe directly.

When you want to run a script you do not run Autohotkey.exe. (There is no gui or program interface)

You should run the myscriptnamehere.ahk (user created) which its file extension .ahk is associated with AutoHotkey.exe.

Please read notes in bottom half of this posted default script .

Hope this makes sense.

I did what I understand and still does not work

Источник

Autohotkey error at line 16 что делать

So I’ve been using Pulover’s macro creator to create this. It will work as a hotkey but when I compile it to a .exe it won’t run. I’m running it as administrator.

I keep on getting Error at line so and so.
Line Text: Until ErrorLevel (which i can’t find anything on google about it)
Error: This line does not contain a reconized action.
The program will exit

Send
F3::
Openfirefrox:
Run, «C:Program Files (x86)Mozilla Firefoxfirefox.exe», , Max
WinShow, **I’m not going to be listing the webpage** — Mozilla Firefox
Sleep, 333
WinActivate, **I’m not going to be listing the webpage**- Mozilla Firefox
Sleep, 333

Loop
<
WinActivateBottom, **I’m not going to be listing the webpage** — Mozilla Firefox ahk_class MozillaWindowClass
Sleep, 333
WinActivate, Right friends, everywhere | Find and unfollow twitter users who unfollowed me — Mozilla Firefox ahk_class MozillaWindowClass
Sleep, 333
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 0, 0, 1600, 900, 0x1AAF63, 0, Fast RGB
If ErrorLevel = 0
Click, %FoundX%, %FoundY%, 0
Sleep, 3000
Loop
<
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 0, 0, 1600, 900, 0x00A651, 0, Fast RGB
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 3000
>
Until ErrorLevel
ControlSend, , , **I’m not going to be listing the webpage** — Mozilla Firefox ahk_class MozillaWindowClass
Sleep, 5000
Send,

Источник

Error at line #

  • Members
  • 16 posts
  • Last active: Jan 13 2017 08:46 AM
  • Joined: 06 Feb 2014

Sometimes when I try to launch AHK script, it gives me the error:

Mainly happens at auto-launch when I boot up Windows. But, sometimes it doesn’t happen and it starts normally (usually if I wait some minutes after the error and retry). I don’t change the contents of the script file in any way.

It’s really annoying, what can be the reason of this error?

  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010

An intermittent error like that sounds like there is something wrong somewhere. You might try reinstalling AhtoHotkey.

  • Members
  • 16 posts
  • Last active: Jan 13 2017 08:46 AM
  • Joined: 06 Feb 2014

An intermittent error like that sounds like there is something wrong somewhere. You might try reinstalling AhtoHotkey.

I have this error on 2 different PCs. At work and at home. Both run Windows 8 x64, and in both cases the issue happenes sometime and sometime it’s not.

  • Members
  • 755 posts
  • Last active: Sep 08 2016 06:26 PM
  • Joined: 25 Aug 2011

Have you checked to see if the keyboard language is correct? AHK looks if the key exist in a «virtual» way so to say.

What i mean is if you press «g», when that error happens, do you still get the letter g?

  • Members
  • 16 posts
  • Last active: Jan 13 2017 08:46 AM
  • Joined: 06 Feb 2014

Have you checked to see if the keyboard language is correct? AHK looks if the key exist in a «virtual» way so to say.

What i mean is if you press «g», when that error happens, do you still get the letter g?

Heh, you’re right! I live in Russia so I use 2 layouts: English and Russian. When russian is active, AHK doesn’t launch and show this error. However, if I activate english layout and launch AHK, after this I can swith to Russian and all the scripts are working normally.

I’ll file this issue in the corresponding section because I think this should be corrected. I assume this issue is valid for any cyrillic users

Источник

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться

1 2018-08-06 12:32:16

  • antoonfadeev07
  • Участник
  • Неактивен
  • Рейтинг : [0|0]

Тема: неработает ahk

F1::
SendMessage, 0x50,, 0x4190419,, A

Sendinput, {F6}/me сел на одно колено{Enter}
Sleep 3000
Sendinput, {F6}/do Сидит{Enter}
Sleep 3000
Sendinput, {F6}/me достал клятву Гиппократа{Enter}
Sleep 3000
Sendinput, {F6}/do Клятва Гиппократа перед глазами{Enter}
Sleep 3000
Sendinput, {F6}/me читает{Enter}
Sleep 3000
Sendinput, {F6}»Клянусь Аполлоном, врачом Асклепием, Гигеей и Панакеей, всеми богами и богинями, беря их в

свидетели..{Enter}
Sleep 3000
Sendinput, {F6} … посвятить свою жизнь служению человечеству, {Enter}
Sleep 3000
Sendinput, {F6}/do Читает{Enter}
Sleep 3000
Sendinput, {F6}Здоровье моего пациента будет основной моей заботой, буду уважать доверенные мне тайны,

{Enter}
Sleep 3000
Sendinput, {F6}/do Читает{Space}
Sleep 3000
Sendinput, {F6} К своим коллегам я буду относиться как к братьям, {Enter}
Sleep 3000
Sendinput, {F6}/do Читает{Enter}
Sleep 3000
Sendinput, {F6}Даже под угрозой я не буду использовать свои знания против законов человечности. {Enter}
Sleep 3000
Sendinput, {F6}/do Читает{Enter}
Sleep 3000
Sendinput, {F6}Я обещаю это торжественно, добровольно и чистосердечно.{Enter}
Sleep 3000
Sendinput, {F6}/do Закончил читать{Enter}
Sleep 3000
Sendinput, {F6}/me встал{Enter}
Sleep 3000
Return

НАПИСАЛ ЭТО а он ошибку

Error at line 16.
Line text: свидетели{enter}
Error: this line does not contain a recognized action
The program will exit

2 Ответ от Monax218 2018-08-06 16:03:48 (изменено: Monax218, 2018-08-06 16:06:25)

  • Monax218
  • Участник
  • Неактивен
  • Рейтинг : [0|0]

3 Ответ от Monax218 2018-08-06 16:07:56 (изменено: Monax218, 2018-08-06 16:19:04)

  • Monax218
  • Участник
  • Неактивен
  • Рейтинг : [0|0]

Re: неработает ahk

Пробел убери между Sendinput, {F6}»Клянусь Аполлоном, врачом Асклепием, Гигеей и Панакеей, всеми богами и богинями, беря их в

((тут убрать пробел )) свидетели..{Enter}

4 Ответ от qqlexa 2018-08-06 18:42:24

  • qqlexa
  • Участник
  • Неактивен

Re: неработает ahk

5 Ответ от antonfadeev07 2018-08-06 19:33:40

  • antonfadeev07
  • Участник
  • Неактивен
  • Рейтинг : [0|0]

Re: неработает ahk

так нормально объясните что делать

6 Ответ от antonfadeev07 2018-08-06 19:37:37

  • antonfadeev07
  • Участник
  • Неактивен
  • Рейтинг : [0|0]

Re: неработает ahk

он все равно выдает ошибку. напишите нормально

7 Ответ от qqlexa 2018-08-07 17:57:21

  • qqlexa
  • Участник
  • Неактивен

Re: неработает ahk

antonfadeev07 пишет:
так нормально объясните что делать

Для начала оформите тему и сообщения так как нужно.

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Possible Errors

(0x00+) General

  • (0x0) Compilation was successful.
  • (0x1) Error: Unknown error.
  • (0x2) Compilation was cancelled.
  • (0x3) Error: Bad parameters

(0x10+) Syntax

  • (0x1) Error: The script contains syntax errors.
  • (0x2) Error: Invalid «FileInstall» syntax found. Note that the first parameter must not be specified using a continuation section.

(0x20+) Not supported & AutoHotkey version dependent

  • (0x1) Error: #DerefChar is not supported.
  • (0x2) Error: #Delimiter is not supported.
  • (0x3) Error: /NoDecompile is not supported.
  • (0x4) Error: Password protection is not supported.
  • (0x5) Error: The AutoHotkey build used for auto-inclusion of library functions is not recognized.
  • (0x6) Error: Legacy AutoHotkey versions (prior to v1.1) can not be used to do auto-inclusion of library functions.
  • (0x7) Error: Cursor resource adding is not supported yet.

(0x30+) File open & Not found

  • (0x1) Error: Error opening the destination file.
  • (0x2) Script or #include cannot be opened.
  • (0x3) Error: Source file not specified.
  • (0x4) Error: The selected Base file does not exist.
  • (0x5) Error changing icon: File does not exist.
  • (0x6) Error: Specified resource does not exist.

(0x40+) File write

  • (0x1) Error: Unable to copy Base file to destination.
  • (0x2) Error changing icon: Unable to read icon or icon was of the wrong format.
  • (0x3) Error adding script file
  • (0x4) Error adding FileInstall file
  • (0x5) Error: Could not move final compiled binary file to destination.
  • (0x6) Error adding resource.

(0x50+) Miscellaneous

  • (0x1) Call to AutoHotkey has failed, Error code is n
  • (0x2) Error: Cannot find AutoHotkey help file!
  • (0x3) Error: Invalid codepage parameter was given.
  • (0x4) Error: Cannot determine AutoHotkey vintage.

(0x60+) Compiler directives

  • (0x1) Could not change executable subsystem.
  • (0x2) Command failed with RC=n.
  • (0x3) Error: Invalid directive.
  • (0x4) Error: Wrongly formatted directive.
  • (0x5) Error: Resource language must be an integer between 0 and 0xFFFF.
  • (0x6) Error: Impossible BMP file.
  • (0x7) Error changing the version information.
  • (0x8) Error: ‘Obey’ directive cannot be executed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
CREATE TABLE test
   (inventar                       NUMBER NOT NULL,
    date_give                      DATE NOT NULL,
    date_back                      DATE)
/
 
 
CREATE UNIQUE INDEX i1_test ON test
  (
    inventar                        ASC,
    NVL("DATE_BACK",TO_DATE(' 4000-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss')) ASC
  )
/
 
CREATE UNIQUE INDEX i2_test ON test
  (
    inventar                        ASC,
    date_give                       ASC
  )
  PCTFREE     10
  INITRANS    2
  MAXTRANS    255
  TABLESPACE  users
  STORAGE   (
    INITIAL     65536
    NEXT        1048576
    MINEXTENTS  1
    MAXEXTENTS  2147483645
  )
NOPARALLEL
LOGGING
/
 
 
 
-- Triggers for TEST
 
CREATE OR REPLACE TRIGGER TEST_TBI
 BEFORE 
 INSERT OR UPDATE
 ON TEST
 REFERENCING OLD AS OLD NEW AS NEW
 FOR EACH ROW
DECLARE
    dmax    DATE := TO_DATE('40000101','yyyymmdd');
    dmin    DATE := TO_DATE('10000101','yyyymmdd');
    PROCEDURE proc1 IS
        date_give_min       DATE;
        date_give_max       DATE;
        date_back_min       DATE;
        date_back_max       DATE;
        PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
        SELECT nvl(MIN(t.date_back), dmax) INTO date_back_min
        FROM test t, dual d
        WHERE t.inventar(+) = :NEW.inventar
          AND nvl(t.date_give(+), dmax) > NVL(:NEW.date_back, dmax)
          AND nvl(t.date_back(+), dmax) > NVL(:NEW.date_back, dmax)
          AND d.dummy=REPLACE(t.rowid(+),t.rowid(+),d.dummy)
        GROUP BY t.inventar;
        --
        SELECT nvl(MAX(t.date_back), dmin) INTO date_back_max
        FROM test t, dual d
        WHERE t.inventar(+) = :NEW.inventar
          AND nvl(t.date_back(+), dmin) < NVL(:NEW.date_back, dmax)
          AND nvl(t.date_give(+), dmin) < NVL(:NEW.date_back, dmax)
          AND d.dummy=REPLACE(t.rowid(+),t.rowid(+),d.dummy)
        GROUP BY t.inventar;
        --
        SELECT nvl(MAX(t.date_give), dmin) INTO date_give_max
        FROM test t, dual d
        WHERE t.inventar(+) =:NEW.inventar
          AND nvl(t.date_back(+), dmin) < :NEW.date_give
          AND nvl(t.date_give(+), dmin) < :NEW.date_give
          AND d.dummy=REPLACE(t.rowid(+),t.rowid(+),d.dummy)
        GROUP BY t.inventar;
        --
        SELECT nvl(MIN(t.date_give), dmax) INTO date_give_min
        FROM test t, dual d
        WHERE t.inventar(+) =:NEW.inventar
          AND nvl(t.date_back(+), dmax) > :NEW.date_give
          AND nvl(t.date_give(+), dmax) > :NEW.date_give
          AND d.dummy=REPLACE(t.rowid(+),t.rowid(+),d.dummy)
        GROUP BY t.inventar;
        COMMIT;
        
        IF NOT (:NEW.date_give BETWEEN date_back_max AND date_back_min) THEN
            raise_application_error(-20001,'Неверная дата начала');
        END IF;
        IF NOT (:NEW.date_back BETWEEN date_give_max AND date_give_min) THEN
            raise_application_error(-20001,'Неверная дата конца');
        END IF;
    END;
    
BEGIN
    IF :NEW.date_give > NVL(:NEW.date_back, dmax) THEN
        raise_application_error(-20001,'Дата начала больше даты конца');
    END IF;
 
    proc1;
END;
/
 
CREATE OR REPLACE TRIGGER TEST_TAI
 AFTER 
 INSERT OR UPDATE
 ON TEST
 REFERENCING OLD AS OLD NEW AS NEW
DECLARE
    dmax    DATE := TO_DATE('40000101','yyyymmdd');
    dmin    DATE := TO_DATE('10000101','yyyymmdd');
BEGIN
    FOR vv IN  (SELECT tt.inventar, nvl(tt.date_back,dmax) date_back, tt.date_give,
                       nvl(MIN(t.date_back), dmax) date_back_min
                FROM test t , tmp_test tt, dual d
                WHERE t.inventar(+) = tt.inventar
                  AND nvl(t.date_give(+), dmax) > tt.date_back
                  AND nvl(t.date_back(+), dmax) > tt.date_back
                  AND t.ROWID(+)<>tt.id
                  AND d.dummy=REPLACE(tt.rowid(+),tt.rowid(+),d.dummy)
                GROUP BY tt.inventar, nvl(tt.date_back,dmax), tt.date_give)
    LOOP
        UPDATE tmp_test tt
            SET date_back_min = vv.date_back_min
        WHERE inventar=vv.inventar
          AND nvl(date_back,dmax) = nvl(vv.date_back,dmax)
          AND date_give = vv.date_give;
    END LOOP;
    --
    FOR vv IN  (SELECT tt.inventar, nvl(tt.date_back,dmax) date_back, tt.date_give,
                       nvl(MAX(t.date_back), dmin) date_back_max
                FROM test t , tmp_test tt, dual d
                WHERE t.inventar(+) =tt.inventar
                  AND nvl(t.date_back(+), dmin) < tt.date_back
                  AND nvl(t.date_give(+), dmin) < tt.date_back
                  AND t.ROWID(+)<>tt.id
                  AND d.dummy=REPLACE(tt.rowid(+),tt.rowid(+),d.dummy)
                GROUP BY tt.inventar, nvl(tt.date_back,dmax), tt.date_give)
    LOOP
        UPDATE tmp_test tt
            SET date_back_max = vv.date_back_max
        WHERE inventar=vv.inventar
          AND nvl(date_back,dmax) = nvl(vv.date_back,dmax)
          AND date_give = vv.date_give;
    END LOOP;
    --
    FOR vv IN  (SELECT tt.inventar, nvl(tt.date_back,dmax) date_back, tt.date_give,
                       nvl(MAX(t.date_give), dmin) date_give_max
                FROM test t , tmp_test tt, dual d
                WHERE t.inventar(+) =tt.inventar
                  AND nvl(t.date_back(+), dmin) < tt.date_give
                  AND nvl(t.date_give(+), dmin) < tt.date_give
                  AND t.ROWID(+)<>tt.id
                  AND d.dummy=REPLACE(tt.rowid(+),tt.rowid(+),d.dummy)
                GROUP BY tt.inventar, nvl(tt.date_back,dmax), tt.date_give)
    LOOP
        UPDATE tmp_test tt
            SET date_give_max = vv.date_give_max
        WHERE inventar=vv.inventar
          AND nvl(date_back,dmax) = nvl(vv.date_back,dmax)
          AND date_give = vv.date_give;
    END LOOP;
    --
    FOR vv IN  (SELECT tt.inventar, nvl(tt.date_back,dmax) date_back, tt.date_give,
                       nvl(MIN(t.date_give), dmax) date_give_min
                FROM test t , tmp_test tt, dual d
                WHERE t.inventar(+) =tt.inventar
                  AND nvl(t.date_back(+), dmax) > tt.date_give
                  AND nvl(t.date_give(+), dmax) > tt.date_give
                  AND t.ROWID(+)<>tt.id
                  AND d.dummy=REPLACE(tt.rowid(+),tt.rowid(+),d.dummy)
                GROUP BY tt.inventar, nvl(tt.date_back,dmax), tt.date_give)
    LOOP
        UPDATE tmp_test tt
            SET date_give_min = vv.date_give_min
        WHERE inventar=vv.inventar
          AND nvl(date_back,dmax) = nvl(vv.date_back,dmax)
          AND date_give = vv.date_give;
    END LOOP;
    --
    FOR vv IN (SELECT DISTINCT * FROM tmp_test)
    LOOP
        IF NOT (vv.date_give BETWEEN vv.date_back_max AND vv.date_back_min) THEN
            raise_application_error(-20001,'Неверная дата начала');
        END IF;
        IF NOT (vv.date_back BETWEEN vv.date_give_max AND vv.date_give_min) THEN
            raise_application_error(-20001,'Неверная дата конца');
        END IF;
    END LOOP;
END;
/
 
CREATE OR REPLACE TRIGGER TEST_TBIUD
 BEFORE 
 INSERT OR UPDATE OR DELETE 
 ON TEST
 REFERENCING OLD AS OLD NEW AS NEW
BEGIN
    DELETE FROM tmp_test;
END;
/
 
CREATE OR REPLACE TRIGGER TESTPBX_TBI
 BEFORE 
 INSERT OR UPDATE
 ON TEST
 REFERENCING OLD AS OLD NEW AS NEW
 FOR EACH ROW
DECLARE
    dmax    DATE := TO_DATE('40000101','yyyymmdd');
    dmin    DATE := TO_DATE('10000101','yyyymmdd');
BEGIN
    IF :NEW.date_give > NVL(:NEW.date_back, dmax) THEN
        raise_application_error(-20001,'Дата начала больше даты конца');
    END IF;
END;
/

Понравилась статья? Поделить с друзьями:
  • Error at line 1 ora 01031 insufficient privileges
  • Error at least one required implicit or forwarded dependency was not found
  • Error at least one file was not a 32 bit or 64 bit windows module
  • Error at initialization of bundled dll ultraactivate dll
  • Error archive data corrupted decompression fails код ошибки 1 windows 10