AHK Studio
Moderator: maestrith
Re: AHK Studio
what library? how are you defining the library in the code?
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
I added a Lib floder in the main script folder, and put in Gdip_All.ahk in the folder to use as a library. Only way that library shows up in the Studio explorer if that .ahk is put in the main AutoHotkey/Lib folder. Id like it to show up in the explorer when its in the main script lib folder
#include <Gdip_All>
#include <Gdip_All>
Re: AHK Studio
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: AHK Studio
@nnnik: I installed AHK using the installer version, just a standard install...same install procedure on both machines, but on the one that is administrated by an admin ahk studio throws this error message. AHK studio is started from my user directory.
Scite4AutoHotkey runs fine on both machines, both running ahk 1.1.25. Scite4AutoHotkey is also started from my user directory.
Any hints?
Scite4AutoHotkey runs fine on both machines, both running ahk 1.1.25. Scite4AutoHotkey is also started from my user directory.
Any hints?
Re: AHK Studio
@Geramont can you run the following Script:
Code: Select all
Msgbox % A_AhkVersion
Recommends AHK Studio
Re: AHK Studio
@nnnik: This morning I did a fresh install of ahk 1.1.26.01. Then I ran the following
Which gave me this:
Started the skript by double clicking on the file name it tells me: 1.1.19.02
Started it from within scite4ahk by pressing F5: 1.1.26.01
AHK is installed in C:\Program Files\AutoHotkey\AutoHotkey.exe
So this makes me go "hmmmmmmm"...
AHK Studio still throws:
---------------------------
AHK-Studio.ahk
---------------------------
Error: Parameter #3 invalid.
Specifically: FR
Line#
3323: IfMsgBox,No
3324: Return
3325: filelist:=[],all:=SN(Current(1),"descendant-or-self::file")
3326: While,(aa:=all.item[A_Index-1]),ea:=XML.EA(aa)
3327: filelist[ea.filename]:=ea
3328: Close(0)
3329: For a,b in filelist
---> 3330: Loop,Files,b.dir "\" b.filename,FR
The program will exit.
---------------------------
OK
---------------------------
Code: Select all
#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.
;Msgbox % A_AhkVersion A_AhkPath
Msgbox % A_AhkVersion
Started the skript by double clicking on the file name it tells me: 1.1.19.02
Started it from within scite4ahk by pressing F5: 1.1.26.01
AHK is installed in C:\Program Files\AutoHotkey\AutoHotkey.exe
So this makes me go "hmmmmmmm"...
AHK Studio still throws:
---------------------------
AHK-Studio.ahk
---------------------------
Error: Parameter #3 invalid.
Specifically: FR
Line#
3323: IfMsgBox,No
3324: Return
3325: filelist:=[],all:=SN(Current(1),"descendant-or-self::file")
3326: While,(aa:=all.item[A_Index-1]),ea:=XML.EA(aa)
3327: filelist[ea.filename]:=ea
3328: Close(0)
3329: For a,b in filelist
---> 3330: Loop,Files,b.dir "\" b.filename,FR
The program will exit.
---------------------------
OK
---------------------------
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
that workedjoedf wrote:put this at the beginning of the script?Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
Nvm still same issueclow_yakayi wrote:that workedjoedf wrote:put this at the beginning of the script?Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Re: AHK Studio
I have your script and it shows up in my Project Explorerclow_yakayi wrote:Nvm still same issueclow_yakayi wrote:that workedjoedf wrote:put this at the beginning of the script?Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
On my system if I have .ahk scripts in the scriptDir/Lib directory, those script functions do not apear in the library inside the code explorer. They only appear if it is in the userdir/lib or globaldir/lib
Re: AHK Studio
Please take a screenshot if your screen and add in what it is you want and where you want it.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
This is what happens when the UseDir/Lib is full, where code explorer library has functions
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
but when the UserDir/Lib is empty but the ScriptDir/lib is full, those libraries and their functions dont apear inside the code explorer lib tree
-
- Posts: 39
- Joined: 15 Oct 2017, 10:15
Re: AHK Studio
My setup is sort of redundant i understand I have AutoHotkey folder in the same place as AHK Folder, but this is more for future issues that can arise when i want to have a script and its lib in a specific non redundant location or even for portability reasons
Re: AHK Studio
@Geramont you need to uninstall any kind of AHK installation you currently have on the PC and then install again - it seems that somehow you still have an old version installed.
This version will be used to execute files and is too old to run AHKStudio
This version will be used to execute files and is too old to run AHKStudio
Recommends AHK Studio
Re: AHK Studio
Hey maestrith, just started using AhkStudio. So far I love it, thank you. I did notice however that if a class extends another class it does not show up properly in the lib tree. I can confirm removing the "extends classWhatever" fixes the problem and the class shows up as it should.
Re: AHK Studio
@nnnik: Followed your hint. I checked both machines, only showed two different ahk versions. So I did a search on autohotkey*.exe and found the old exe which I then remembered that it was the first version I placed in another directory after playing with ahk for about an hour. I deleted it an everything works fine!
Thanks a lot!
Thanks a lot!
Re: AHK Studio
Defining this hotkey won't make it show up in code explorer. I think it affects all hotkeys with "up" at the end
~Control UP::
~Control UP::
Re: AHK Studio
Updated in the Beta Build Direct Zip DownloadBarney wrote:Defining this hotkey won't make it show up in code explorer. I think it affects all hotkeys with "up" at the end
~Control UP::
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
Re: AHK Studio
When I'm trying to run AHK-Studio from ahk file (not zip), I'm getting those errors:
The same happens when I'm running from unziped package.
And nextErrors happened while trying to save lib\Menus.xml. Reverting to old version of the XML.
Process and icon stays in system trayError: Menu does not exist.
Specifically: main
Line 5757: Gui,1:Menu,%menuname%
The current thread will exit.
The same happens when I'm running from unziped package.
Who is online
Users browsing this forum: No registered users and 2 guests