Search found 1303 matches

by PuzzledGreatly
21 Nov 2023, 23:50
Forum: Ask for Help (v1)
Topic: AHK text control color word
Replies: 13
Views: 2731

Re: AHK text control color word

I'm now trying to use a modified version of Hellbent's example: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ;#Warn ; Recommended for catching common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingD...
by PuzzledGreatly
20 Nov 2023, 02:06
Forum: Ask for Help (v1)
Topic: AHK text control color word
Replies: 13
Views: 2731

Re: AHK text control color word

I'm still trying to find a method for changing the color of a single word in a text control. Can the RichEdit class be used for a text control or is it only for an edit control? The Rich Edit demo is amazing but are there any examples of how to change the color of a single word. Thanks.
by PuzzledGreatly
01 Nov 2023, 07:18
Forum: Ask for Help (v1)
Topic: Issue with Windows Media Player
Replies: 3
Views: 404

Re: Issue with Windows Media Player

Thanks for the warning. I will add some code that prevents the video from running unless there is more than one monitor. Can you think of a way to check if the video player fails to initiate?
by PuzzledGreatly
27 Oct 2023, 17:50
Forum: Ask for Help (v1)
Topic: Issue with Windows Media Player
Replies: 3
Views: 404

Issue with Windows Media Player

I use Windows Media Player to play video inside an AHK Gui. Here's the basic code for creating a video: SysGet, n, monitorcount Loop, % n { SysGet, M, Monitor, %A_Index% MX%A_index% := Mleft MY%A_index% := MTop MW%A_index% := MRight - MLeft MH%A_index% := MBottom - MTop Global X_ := Mleft Global Y_ ...
by PuzzledGreatly
10 Oct 2023, 14:32
Forum: Ask for Help (v1)
Topic: Detect overlapping circles
Replies: 25
Views: 2243

Re: Detect overlapping circles

Wow! Thanks for taking the time to post your brilliant looking class and the Youtube link. I've started looking at the videos - really good. I want to be able to work this out and you've given me a great start.
by PuzzledGreatly
09 Oct 2023, 22:33
Forum: Ask for Help (v1)
Topic: Detect overlapping circles
Replies: 25
Views: 2243

Re: Detect overlapping circles

Hellbent - I totally missed replying to this at the time - my apologies. I've been restudying this topic and your examples have been a big help. I'm now trying to use moving circles and have one bounce off the other. Thanks again.
by PuzzledGreatly
29 Jun 2023, 20:12
Forum: Ask for Help (v1)
Topic: AHK Gui - measuring the duration of a button press.
Replies: 2
Views: 244

Re: AHK Gui - measuring the duration of a button press.

I've found if I use text or a picture control instead of a button my code will work. It would still be useful to know how to measure the length of a press on a normal button.
by PuzzledGreatly
29 Jun 2023, 18:56
Forum: Ask for Help (v1)
Topic: AHK Gui - measuring the duration of a button press.
Replies: 2
Views: 244

AHK Gui - measuring the duration of a button press.

I want to know how long a button on a gui is pressed. I tried code like this: Gui, add, button, w100 h50 default gpush, Push Me Gui, show return Push() { enow := A_tickcount keywait lbutton keywait enter msgbox, 4096, Duration,% A_tickcount - enow exitapp } This works when enter is pressed but not f...
by PuzzledGreatly
04 Jun 2023, 19:03
Forum: Ask for Help (v1)
Topic: Current system font
Replies: 2
Views: 377

Re: Current system font

Thanks for the link. I always conduct a forum search before making a post but I obviously need to do a search of my own posts as well.
by PuzzledGreatly
04 Jun 2023, 17:04
Forum: Ask for Help (v1)
Topic: Current system font
Replies: 2
Views: 377

Current system font

Is there any way to tu use AHK v1 to find out what the current system font is? Thanks.
by PuzzledGreatly
02 Jun 2023, 18:01
Forum: Ask for Help (v1)
Topic: Problem with exe file
Replies: 6
Views: 499

Re: Problem with exe file

Thanks teadrinker. I understand what you mean and will give your code a try.
by PuzzledGreatly
31 May 2023, 17:17
Forum: Ask for Help (v1)
Topic: Problem with exe file
Replies: 6
Views: 499

Re: Problem with exe file

Following is my code using Scripting.FileSystemObject. The idea is that if there is more than 1,000 megabytes in the pool of directories to search the time to process the directories will be so long that it is best to display a splash screen. Can anyone see anything wrong with the code that could br...
by PuzzledGreatly
29 May 2023, 17:59
Forum: Ask for Help (v1)
Topic: Problem with exe file
Replies: 6
Views: 499

Re: Problem with exe file

Thanks very much for the replies. I tried teadrinker's link and got one hit: Name: CTL_E_PATHNOTFOUND, Type: UInt32,Value: 2148139084 I don't really understand what this means but I do have a line of code using scripting.FileSystemObject so I will investigate that. Part of the program I wrote takes ...
by PuzzledGreatly
29 May 2023, 17:25
Forum: Ask for Help (v1)
Topic: Problem with exe file
Replies: 6
Views: 499

Problem with exe file

A friend of mine used an exe file I had compiled and after a while the screen froze. I have OnError("OnErrorLog") near the top of my code and am using the OnError function like this: OnErrorLog(exception) { FileAppend % A_YYYY "-" A_MM "-" A_DD A_tab "Error on line " exception.Line ": " exception.Me...
by PuzzledGreatly
22 May 2023, 18:52
Forum: Ask for Help (v1)
Topic: Pulling information from a mrimg file
Replies: 8
Views: 680

Re: Pulling information from a mrimg file

Thanks, RussF for taking the time to look at this. I tried your code on one of my old images but gave up waiting for it to find the comments. I don't have the confidence to try to rework your script. For now I'll keep using my clunky method and see if I can get it working with a FileSelectFile dialo...
by PuzzledGreatly
16 May 2023, 22:39
Forum: Ask for Help (v1)
Topic: Pulling information from a mrimg file
Replies: 8
Views: 680

Re: Pulling information from a mrimg file

mikeyww wrote:
16 May 2023, 22:11
OK. That was my only idea!
But good to know, I never think about FileRead.
by PuzzledGreatly
16 May 2023, 22:37
Forum: Ask for Help (v1)
Topic: Launching LibreWolf Pid trouble
Replies: 3
Views: 391

Re: Launching LibreWolf Pid trouble

Thanks, I ran your script and got the error message, but by that time LibreWolf had launched.
by PuzzledGreatly
16 May 2023, 19:46
Forum: Ask for Help (v1)
Topic: Launching LibreWolf Pid trouble
Replies: 3
Views: 391

Launching LibreWolf Pid trouble

LibreWolf portable won't launch in a maximized state. So I tried the following: run, C:\PortableApps\LibreWolf\LibreWolf-Portable.exe,,, LWpid winwait ahk_pid %LWpid% soundbeep sleep 1000 winmaximize, ahk_pid %LWpid% ^+home:: winmaximize, a ^+p:: winmaximize, ahk_pid %LWpid% I never hear the soundbe...
by PuzzledGreatly
16 May 2023, 19:35
Forum: Ask for Help (v1)
Topic: Pulling information from a mrimg file
Replies: 8
Views: 680

Re: Pulling information from a mrimg file

Thanks for the reply. I hadn't and I did and I got an out of memory error message. Mrimg files are over 40 gb in size. I tried the *m1024 parameter but got a blank msgbox.
by PuzzledGreatly
16 May 2023, 18:20
Forum: Ask for Help (v1)
Topic: Pulling information from a mrimg file
Replies: 8
Views: 680

Pulling information from a mrimg file

Macrium Reflect image files have comments. I know a very clunky way to get this information from an mrimg file selected in explorer by bringing up the proprieties dialogue selecting the Macrium Reflect tab and pulling the text from the edit1 field which has the comment. Does anyone know of a more ro...

Go to advanced search