I have a little suggestion:
Add a tag [Admin] or [User] to AHK Studios' title.
I've been using this modification for a while but I just now realized that it might be helpful to other people :'D
Because of those problems related to user rights.
- If the script is already running with adm, and you try to reload it with AHKS in normal privileges it won't be able to restart the process.
- If you have AHK Studio running with adm, and you are doing something that needs normal privileges it will lead to undesired results.
That kind of stuff...
This is what I did:
Take care
AHK Studio
Moderator: maestrith
Re: AHK Studio
- Attachments
-
- My Mods - Forum.ahk
- I usually drop and run this inside AHK Studio's folder.
- (1.22 KiB) Downloaded 503 times
Re: AHK Studio
@BennettBensonBennettBenson wrote: ↑14 Oct 2020, 14:09I just downloaded AHK Studio from github. It's a zip file and I get asked if I want to overwrite 2 files when I unzip it. There are 2 different Readme.md files (not a big deal) but there are also 2 different commands.xml. One has a Capital C and the other does not. Same date/time but different sizes. Which one is correct?
Having the same question. version 1.005.32
Last edited by NorInd on 07 Dec 2020, 11:38, edited 1 time in total.
Re: AHK Studio
I have the same issue.
When I have access to the internet. And I start AHKStuodio.ahk. It will go to download ahk.xml for 10 sec, and then open up the AHK Studio.
When I disconnect from the internet. And I start AHKStuodio.ahk, it stucks on the "downloading ahk.xml" forever.
How do you solve this? v1.005.32
Re: AHK Studio
Same question. I like using "tab key" to do indentation (with length of 2 white spaces). But I dont want to use "2-space-width Tab" as indentations, I prefer just "2 spaces" to be the identations.
Because tabs often get messed up if I open the file with other software or editors, (or get messed up if I copy and paste the code to other files).
Re: AHK Studio
I had to go back and use an earlier version. This download every time I would open the program was driving me crazy.It will go to download ahk.xml for 10 sec, and then open up the AHK Studio.
Re: AHK Studio
Does it work on your computer? Just an empty txt file call noupdate.txt right? I tried it before and tried it just now (tried NoUpdate.txt too), its not working for me. v1.005.32
I have to use v1.005.19 to fix that problem.
--- update ---
Well, I just checked the code in AHK-Studio.ahk & github.
In github, the code committed is::
}v.LineEdited:=[],v.LinesEdited:=[],v.RunObject,ComObjError(0),new Keywords(),(FileExist("NoUpdate.txt")?"":FileCheck(%True%))
But when you download it, there is no FileExist("NoUpdate.txt") in AHK-Studio.ahk
not sure why.
Re: AHK Studio
Probably because you downloaded a release rather than the current development code. Or you downloaded from a different branch
Re: AHK Studio
make sure it's NoUpdate file, .txt is already there, first time i created NoUpdate.txt.txt and it was not workingNorInd wrote: ↑08 Dec 2020, 21:13Does it work on your computer? Just an empty txt file call noupdate.txt right? I tried it before and tried it just now (tried NoUpdate.txt too), its not working for me. v1.005.32
I have to use v1.005.19 to fix that problem.
--- update ---
Well, I just checked the code in AHK-Studio.ahk & github.
In github, the code committed is::
}v.LineEdited:=[],v.LinesEdited:=[],v.RunObject,ComObjError(0),new Keywords(),(FileExist("NoUpdate.txt")?"":FileCheck(%True%))
But when you download it, there is no FileExist("NoUpdate.txt") in AHK-Studio.ahk
not sure why.
Re: AHK Studio
Anyone have a problem where studio won't show why script is not running?
this is just an example but script is not running because of the numbers. Temp fix is to turn off studio open it again the it works for few runs but after some time it just gets stuck again.
Code: Select all
!Up::
return
123132132
Re: AHK Studio
Situation::
I think your are correct.
1. So I download the code as zip from the main page in github instead of from the release.
When I extract the zip, I click No for the replacement of the Readme.md file & another Command.xml file.
2. Then I opened AHK studio, let it update and turned it off.
3. Then I created a file "NoUpdate.txt" at the same directory. And started AHK studio.
The following message popped up:
---------------------------
AHK-Studio.ahk
---------------------------
Error: Unregistered window class.
Specifically: Scintilla
Line#
2960: }
2961: if (!init)
2962: DllCall("LoadLibrary","str",A_ScriptDir "\scilexer.dll"),init:=1
2963: v.im:=info.main,v.ip:=info.pos,v.iw:=info.win,notify:=info.notify,win:=window?window:1,pos:=info.pos?info.pos:"x0 y0 w0 h0"
2964: if (info.hide)
2965: pos.=" Hide"
2966: mask:=0x10000000|0x400000|0x40000000,notify:=notify?notify:"notify"
---> 2967: Gui,%win%:Add,custom,%pos% classScintilla +%mask% hwndsc g%notify%
2968: For a,b in {fn:2184,ptr:2185}
2969: this[a]:=DllCall("SendMessageA",UInt,sc,int,b,int,0,int,0)
2970: this.parent:=sc,this.sc:=sc+0
2971: if (!info.notify)
2972: s.ctrl[sc]:=this
2973: For a,b in [[2563,1],[2565,1],[2614,1],[2124,1]]
2974: this[b.1](b.2,b.3?b.3:0)
The current thread will exit.
---------------------------
---------------------------
4. I ignored it, closed it, exit AHK Studio at the tray icon.
5. I deleted the NoUpdate.txt file, then I started AHK Studio again. This time there was no more update from AHK studio, and I was happy.
Question::
But why did the message pop up, should that happen under the normal procedure?
Re: AHK Studio
Hi Folks, I thought I'd give AHK Studio a try. Before I even get started though... I want to make sure that my setup is appropriate, so that I (hopefully) won't run into any big hangups. This is my work computer and I am not an "administrator" of the computer. I have autohotkey at the folder location:
C:/PortableApps/AutoHotkey/
it works fine. My main script is a
C:\PortableApps\AutoHotkey\AutoCorrect\AutoCorrect2020.exe
I can't really run any installers, so everything gets used as "portable" applications.
Just now I put AHK Studio at
C:\PortableApps\AutoHotkey\AHK-Studio-master\
The zip file had AHK-Studio.ahk, but not the exe. So I got the latest zip of AutoHotkey v1 (1.1.33.02). I copied AutoHotkeyU32.exe into the AHK-Studio-Master folder and named it AHK-Studio.exe.
It seems to launch as expected. Do you guys (and gals) see any potential problems with this setup?
C:/PortableApps/AutoHotkey/
it works fine. My main script is a
C:\PortableApps\AutoHotkey\AutoCorrect\AutoCorrect2020.exe
I can't really run any installers, so everything gets used as "portable" applications.
Just now I put AHK Studio at
C:\PortableApps\AutoHotkey\AHK-Studio-master\
The zip file had AHK-Studio.ahk, but not the exe. So I got the latest zip of AutoHotkey v1 (1.1.33.02). I copied AutoHotkeyU32.exe into the AHK-Studio-Master folder and named it AHK-Studio.exe.
It seems to launch as expected. Do you guys (and gals) see any potential problems with this setup?
name := "ste(phen|ve) kunkel"
Re: AHK Studio
Has anyone made an AHK-Studio color theme to visually match that of SciTE4AHK? The default theme with the dark background hurts my eyes a bit. I see how to change the themes, but the ones with light backgrounds all seem to have text that it too light.
EDIT:
I tried to copy the SciTE colors. The below screenshot has the bgmCoder theme on the left. I copy-n-pasted the the contents into SciTE, which is the middle. On the left is my recreation. It looks like AHK-Studio actually lets you colorize more unique components than what is suggested in the default SciTE theme. I made use of that a bit. I didn't change the background color because I didn't see how.
Below the screenshot is the xml code that got exported.
EDIT:
I tried to copy the SciTE colors. The below screenshot has the bgmCoder theme on the left. I copy-n-pasted the the contents into SciTE, which is the middle. On the left is my recreation. It looks like AHK-Studio actually lets you colorize more unique components than what is suggested in the default SciTE theme. I made use of that a bit. I didn't change the background color because I didn't see how.
Below the screenshot is the xml code that got exported.
Spoiler
Last edited by kunkel321 on 31 Dec 2020, 13:40, edited 1 time in total.
name := "ste(phen|ve) kunkel"
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: AHK Studio
Is it possible to have indentation insert spaces instead of a tab character? The visual breaks on github and spaces will alway show consistently.
I had this in scite4authotkey but can't find in ahk studio.
I had this in scite4authotkey but can't find in ahk studio.
Re: AHK Studio
At the very least, it should be both. A lot of people uses tabs, and that way is neater. Spaces tend to get messy, because how many spaces used varies by each person, though there are also a lot of people with that preference and certain programming languages where it's part of their culture.metacognition wrote: ↑24 Jan 2021, 13:22Is it possible to have indentation insert spaces instead of a tab character? The visual breaks on github and spaces will alway show consistently.
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: AHK Studio
well I would argue its the same neatness as long as the editor is aware and can calculate at which column tabs should align when converting to spaces. In my scenario you wouldn't know the difference unless you had whitespace characters turned on like in my picture above. scite4autohotkey would automatically convert tabs to 5 spaces so that it would line up correctly, the problem happens on lines that don’t necessarily start with a tab where the tabbing is after or mid code, say you are using tabs to align assignment operators when setting a number of variables... github will render it wonky because of the width github assigns to tabs (8 columns I believe). I’ll try and post a side by side comparison to demonstrate.
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: AHK Studio
"Someone at GitHub hates tabs" --> https://github.community/t/whats-the-deal-with-tab-sizes-on-github-gists/954/6
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: AHK Studio
from that forum thread: https://github.com/isaacs/github/issues/170#issuecomment-150489692
does this work?
does this work?
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]
Who is online
Users browsing this forum: No registered users and 7 guests