Search found 54 matches

by UserNameForAH_Board
05 May 2024, 12:16
Forum: Ask for Help (v2)
Topic: MsgBox - how to split a long string across lines only at '/'?
Replies: 10
Views: 581

Re: MsgBox - how to split a long string across lines only at '/'?

Thanks, all. I think I've got it working. I had a lot of trouble working out how the logic should be and I'm unsure I could sum up the logic that I have implemented! Here though is the relevant part of my code. local displayStr, maxLen path_display := path maxLen := 30 if StrLen(path_display) > maxL...
by UserNameForAH_Board
05 May 2024, 09:14
Forum: Ask for Help (v2)
Topic: MsgBox - how to split a long string across lines only at '/'?
Replies: 10
Views: 581

Re: MsgBox - how to split a long string across lines only at '/'?

Thanks. Your code splits the string only and always at \. I do not want the always. But I think you've given me enough to work with. So, as I say: thank you.
by UserNameForAH_Board
05 May 2024, 08:51
Forum: Ask for Help (v2)
Topic: MsgBox - how to split a long string across lines only at '/'?
Replies: 10
Views: 581

Re: MsgBox - how to split a long string across lines only at '/'?

Thanks. That - or rather StrReplace(str, '\', '\`n') produces the likes of this:
image.png
image.png (10.73 KiB) Viewed 542 times
That is not exactly what I want. I will investigate `StrReplace` and see what I can come up with.

EDITED to fix formatting.
by UserNameForAH_Board
05 May 2024, 07:35
Forum: Ask for Help (v2)
Topic: MsgBox - how to split a long string across lines only at '/'?
Replies: 10
Views: 581

MsgBox - how to split a long string across lines only at '/'?

Dear all My question might be a silly one, but I am having trouble finding the answer to it. I have a msgbox that displays a file path, and I want that path to be line-split only at the '/' character, i.e. the character that divides directories from each other (and the final directory from the leafn...
by UserNameForAH_Board
05 Feb 2024, 04:43
Forum: Ask for Help (v2)
Topic: Easiest replacement for SplashText? Topic is solved
Replies: 3
Views: 415

Re: Easiest replacement for SplashText? Topic is solved

Ah: I can answer my own question - thusly. msgBox <string or variable-containing-string> does it!
by UserNameForAH_Board
05 Feb 2024, 04:41
Forum: Ask for Help (v2)
Topic: How to close all interpreted instances of a script?
Replies: 1
Views: 227

How to close all interpreted instances of a script?

Dear all I would like to close all interpreted versions of a named AHK script (and any compiled version, but I know how to do that latter). Thus, if the script in question is called `myScript`, I'd like to close all instances of AutoHotKey64.exe (and only those instances of it) that are running `myS...
by UserNameForAH_Board
05 Feb 2024, 04:31
Forum: Ask for Help (v2)
Topic: Easiest replacement for SplashText? Topic is solved
Replies: 3
Views: 415

Easiest replacement for SplashText? Topic is solved

SplashTextOn was a quick and dirty way to get a script to display information. In AutoHotKey version 2, that convenient command has gone. I am wondering what the nearest - simplest - equivalent in V2 would be. I have not found a good answer to that question anywhere (though I have found elaborate d...
by UserNameForAH_Board
20 Dec 2022, 11:03
Forum: Forum Issues
Topic: The dark board themes: surely some of the text colours should be brighter
Replies: 4
Views: 1055

The dark board themes: surely some of the text colours should be brighter

Hello there. It seems to me that, in the dark themes that are available - namely, 'Digi' and 'DigiDarkBlue2' - some fonts are insufficiently bright. The fonts in question (or at least the main ones): the heading font and the post body font. Here is an image of the heading font, using the 'Digi' them...
by UserNameForAH_Board
20 Dec 2022, 10:51
Forum: AutoHotkey Development
Topic: congrats
Replies: 13
Views: 3336

Re: congrats

I too am grateful for AutoHotkey 2.0!
by UserNameForAH_Board
27 Nov 2022, 15:42
Forum: General Discussion
Topic: v2.0-rc.1 feedback
Replies: 4
Views: 942

Re: v2.0-rc.1

Happy V2 Release day to all!
@AHK_user: perhaps I pick a nit, but aren't we still on the release candidate?
by UserNameForAH_Board
27 Nov 2022, 11:41
Forum: General Discussion
Topic: v2.0-rc.1 feedback
Replies: 4
Views: 942

Re: v2.0-rc.1

Yes, thanks for this.

I do find AutoHotKey version 2 to be a great improvement, syntax-wise, over version 1, and, as of this release candidate (or a bit before that?) installing version 2 has got easier than it was - which is something that I appreciate too.
by UserNameForAH_Board
06 Oct 2022, 16:28
Forum: Ask for Help (v1)
Topic: Installed a beta; lost the ability to compile from Explorer; how to regain that ability?
Replies: 1
Views: 201

Re: Installed a beta; lost the ability to compile from Explorer; how to regain that ability?

It seems that both the directory and the file are missing; and the file that the installer downloaded was not the file about which the window complains . . EDIT: I used a backup to restore files in C:\Program Files\AutoHotkey\Compiler . Then when I tried to compile, I saw the following, even though,...
by UserNameForAH_Board
06 Oct 2022, 16:20
Forum: Ask for Help (v1)
Topic: Installed a beta; lost the ability to compile from Explorer; how to regain that ability?
Replies: 1
Views: 201

Installed a beta; lost the ability to compile from Explorer; how to regain that ability?

Hi all I had 2.0-beta.7. I downloaded and installed v2.0-beta.11. My previous procedure with installing the beta was to download a zip of it, unpack the zip somewhere, and then paste the unpacked files over my . . Program Files\ installation. This time I tried to install directly to the Program File...
by UserNameForAH_Board
27 Jul 2022, 14:25
Forum: Ask for Help (v2)
Topic: Is the comma-in-assignments optimization still applicable?
Replies: 1
Views: 627

Is the comma-in-assignments optimization still applicable?

Dear all I've some code of this form: awake_timeToSleepBeforeActing := 5000 ; 2000 seems to stop the speakers awaking. , blockers := ["Skype.exe", "Zoom.exe", "Jitsi.exe", "Jami.exe"] , debugging := 0 ; , debugging_logFile := "R:\keepSpeakerAlive.txt" This code runs under AHK 2. But do I need those ...
by UserNameForAH_Board
07 Jul 2022, 04:40
Forum: Ask for Help (v2)
Topic: Removing the tray icon (completely) Topic is solved
Replies: 6
Views: 1217

Re: Removing the tray icon (completely) Topic is solved

TharArkive: I was trying to remove the tray icon - one I'd set earlier - immediately before my (compiled) AHK program exited. For, I have found in the past that otherwise the icon can remain - after program exit - until the tray is redrawn.
by UserNameForAH_Board
06 Jul 2022, 15:29
Forum: Ask for Help (v2)
Topic: Removing the tray icon (completely) Topic is solved
Replies: 6
Views: 1217

Re: Removing the tray icon (completely) Topic is solved

swagfag: thank you! That seems to do the trick.

@TheArkive: I suppose the 'completely' in my post title might have misled you. Sorry!
by UserNameForAH_Board
06 Jul 2022, 13:34
Forum: Ask for Help (v2)
Topic: Removing the tray icon (completely) Topic is solved
Replies: 6
Views: 1217

Re: Removing the tray icon (completely) Topic is solved

TheArkive I did write: 'but I do want there to be a tray icon, earlier in the program's runtime'. I presume I cannot simply insert #NoTrayIcon as a command. Indeed, the page that you linked says: 'specifying this anywhere in a script will prevent the showing of a tray icon for that script when it i...
by UserNameForAH_Board
06 Jul 2022, 12:46
Forum: Ask for Help (v2)
Topic: Removing the tray icon (completely) Topic is solved
Replies: 6
Views: 1217

Removing the tray icon (completely) Topic is solved

Could someone tell me how, in v2, to remove a tray icon? My old code has A_TrayMenu.NoIcon, which no longer works. Thank you. (I've looked at documentation but to no avail.) I won't be needing to restore the icon (but I do want there to be a tray icon, earlier in the program's runtime).
by UserNameForAH_Board
17 Jun 2022, 10:44
Forum: AutoHotkey Development
Topic: UX - Installer and other scripts aimed at improving the user experience
Replies: 38
Views: 10616

Re: UX - Installer and other scripts aimed at improving the user experience

I could have been clearer. What I deemed crucial was the provision of pithy and prominent instructions on how one should run the installer . Your comment makes me realise that to that list of epithets - 'pithy', 'prominent' - I should add 'correct'. I would try again, here and now, to provide such i...

Go to advanced search