Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing subfolder tmpscrpts #1

Closed
hoppfrosch opened this Issue Apr 23, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@hoppfrosch
Copy link

commented Apr 23, 2014

Running a snippet (script) after fresh installation the following Dialogbox shows:

---------------------------
tmpScript.ahk
---------------------------
The script file "D:\Dev\GIT\AHK\lintalist\tmpscrpts\tmpScript.ahk" does not exist.  Create it now?
---------------------------
Yes No   
---------------------------

Pressing Yes - an error occurs:

---------------------------
tmpScript.ahk
---------------------------
Could not create file, perhaps because the current directory is read-only or has insufficient permissions.
---------------------------
OK   
---------------------------

Manually creating the subfolder _tmpscrpts_ solves the problem

@lintalist

This comment has been minimized.

Copy link
Owner

commented Apr 25, 2014

Thank you for reporting this issue, should be fixed in this new release https://github.com/lintalist/lintalist/releases/tag/v1.0.2

@lintalist lintalist closed this Apr 25, 2014

@mikeyww

This comment has been minimized.

Copy link

commented Mar 25, 2019

I receive "tmpScript.ahk not found" error when running a Lintalist.exe that I have compiled, but no error when I run Lintalist.ahk directly. The error occurs when trying to execute a text shortcut for a Lintalist entry in a bundle that is triggered by a window title.

image

Lintalist version 1.9.8.2

Operating system           : Microsoft Windows 7 Professional 
OS version                 : 6.1.7601
Service pack major version : 1
Service pack minor version : 0
Free physical memory       : 11912476
Total physical memory      : 17052119040
PC manufacturer            : TOSHIBA
PC model                   : PORTEGE R930
CPU                        : Intel64 Family 6 Model 58 Stepping 9
OS bitness                 : 64
CPU bitness                : 64
BIOS manufacturer          : TOSHIBA
BIOS name                  : Default System BIOS
BIOS version               : Version 6.80  
Motherboard manufacturer   : TOSHIBA
Motherboard product        : PORTEGE R930
Motherboard version        : Version A0
Display                    : Intel(R) HD Graphics 4000
Display width              : 1024
Display height             : 768
DPI                        : 120
@lintalist

This comment has been minimized.

Copy link
Owner

commented Mar 25, 2019

That is because Lintalist.ahk isn't meant to be compiled as such. If you are running lintalist.ahk (or lintalist.exe provided in the ZIP download, which is simply a renamed autohotkey.exe) it uses AutoHotkey to run scripts. If you compile the script and AutoHotkey isn't properly installed on the target computer it can't run scripts as there is no autohotkey.exe present.

A_AhkPath: For non-compiled scripts: The full path and name of the EXE file that is actually running the current script. For example: C:\Program Files\AutoHotkey\AutoHotkey.exe
For compiled scripts: The same as the above except the AutoHotkey directory is discovered via the registry entry HKLM\SOFTWARE\AutoHotkey\InstallDir. If there is no such entry, A_AhkPath is blank.
Source: https://autohotkey.com/docs/Variables.htm#BuiltIn

I never took into account for lintalist.ahk to be compiled so apart from it not being able to run scripts in some situations, there will be other parts of the script that might not perform as expected. I will not prepare or modify lintalist.ahk for it to be compiled.

@mikeyww

This comment has been minimized.

Copy link

commented Mar 25, 2019

OK. Thank you for explaining. I have installed AH properly, but it is just portable and not installed through the installer. In any case, I will just run Lintalist as a AHK file. It is a handy program!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.