Search found 137 matches

by think
16 Jan 2022, 09:25
Forum: Ask for Help (v1)
Topic: Transparent png on a dark background
Replies: 10
Views: 945

Transparent png on a dark background

Hi, I have troubles showing the transparent png picture on a dark background. The picture has a gradual transparency on the edges (anti aliasing) to ensure smooth edges but those are colored white on a dark background. When opened in the image editor, it shows correctly. My simple code is below. Do ...
by think
07 Jan 2022, 05:31
Forum: Ask for Help (v1)
Topic: Windows 11 Checkbox color
Replies: 4
Views: 1189

Re: Windows 11 Checkbox color

Thanks for this. Unfortunately it doesn't help.
I cannot understand why MS introduces gui colors which cannot be changed.
by think
02 Jan 2022, 04:56
Forum: Ask for Help (v1)
Topic: Windows 11 Checkbox color
Replies: 4
Views: 1189

Re: Windows 11 Checkbox color

Thanks for your response. This works for checkbox control although the style gets old fashioned with 3D effect.
However this doesn't work for a checkboxes on a ListView control. I tried the -theme for a control and the whole gui without any impact.

Any idea?
by think
30 Dec 2021, 16:02
Forum: Ask for Help (v1)
Topic: Windows 11 Checkbox color
Replies: 4
Views: 1189

Windows 11 Checkbox color

I just installed Windows 11 and tested few of my scripts. Everything works well so far which is good. However I see some visual changes, for example, I have a window with checkboxes which are now colored dark blue when selected. This does not match with my gui color scheme so the obvious question is...
by think
14 Oct 2021, 11:10
Forum: Ask for Help (v1)
Topic: Sending text to latest active window from a gui
Replies: 6
Views: 590

Re: Sending text to latest active window from a gui

Thank you, this works. I believe this is the only way.
by think
13 Oct 2021, 12:16
Forum: Ask for Help (v1)
Topic: Sending text to latest active window from a gui
Replies: 6
Views: 590

Re: Sending text to latest active window from a gui

Sorry, it doesn't work, maybe I described the request poorly. - The gui is only opened once and than stays always on top, like a floating toolbar. - Edit control on the gui should be editable. - Send button should paste the control's current text to the currently active window (window in which user ...
by think
13 Oct 2021, 04:55
Forum: Ask for Help (v1)
Topic: Sending text to latest active window from a gui
Replies: 6
Views: 590

Re: Sending text to latest active window from a gui

Thanks. Any other idea to avoid gui flickering?
by think
13 Oct 2021, 03:17
Forum: Ask for Help (v1)
Topic: Sending text to latest active window from a gui
Replies: 6
Views: 590

Sending text to latest active window from a gui

Hi, I'm trying to make a simple always on top gui containing the editable edit control and a Send button to send the content of the edit control to the active window. I know I could use +E0x08000000 option for that but in this case I cannot edit the control. Pressing Send button should send the text...
by think
30 Sep 2021, 09:11
Forum: AutoHotkey_H
Topic: ahkThread and ComObjCreate
Replies: 13
Views: 4745

Re: ahkThread and ComObjCreate

Thanks. The only thing I’m still not sure I understand - what’s the difference between ahkTerminate(100) and ahk Terminate(-100)?
by think
28 Sep 2021, 08:19
Forum: AutoHotkey_H
Topic: ahkThread and ComObjCreate
Replies: 13
Views: 4745

Re: ahkThread and ComObjCreate

Negative number will terminate thread if it cannot exit after given time, in that case the thread will not have a chance to clear memory and such. So if I understand correctly ahkTerminate(-100) waits 100ms before forcing the termination? In case of, for example, ahkTerminate(200), what happens aft...
by think
28 Sep 2021, 02:30
Forum: AutoHotkey_H
Topic: ahkThread and ComObjCreate
Replies: 13
Views: 4745

Re: ahkThread and ComObjCreate

Thanks. What about the general usage of ahkTerminate? Is ahkTerminate(-1) ok?
by think
27 Sep 2021, 14:10
Forum: AutoHotkey_H
Topic: ahkThread and ComObjCreate
Replies: 13
Views: 4745

ahkThread and ComObjCreate

In some cases when ahkThread containing ComObjCreate is run for the second time, ahkTerminate is having issues to terminate it. See the example below - if CreateItem is done in two lines it doesn't work. I know this would be solved by adding m:="""" to the end of the string to release the variable. ...
by think
15 Jun 2020, 16:17
Forum: Ask for Help (v1)
Topic: Lighten/Darken color
Replies: 3
Views: 1299

Re: Lighten/Darken color

Thank you for such a fast reply. It works. :) There are some limitations though, I was not able to enter amounts >40. color:="2d78d6" amts:="-40,-20,0,20,40" loop, parse, amts, `, { ncolor:=Format("{:X}", LightenDarkenColor(color, A_LoopField)) gui, add, progress, w50 h50 background%ncolor% } gui, s...
by think
15 Jun 2020, 15:46
Forum: Ask for Help (v1)
Topic: Lighten/Darken color
Replies: 3
Views: 1299

Lighten/Darken color

I have searched the forum for the script which would lighten or darken the hex color without luck. Instead I found a javascript code here: https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors Can anyone suggest how to change this into Aut...
by think
18 May 2020, 09:59
Forum: Ask for Help
Topic: ahkgetvar trouble
Replies: 2
Views: 1294

Re: ahkgetvar trouble

That was fast, thank you!
by think
18 May 2020, 08:21
Forum: Ask for Help
Topic: ahkgetvar trouble
Replies: 2
Views: 1294

ahkgetvar trouble

Trying to use ahk_h to evaluate the expression in a string. Any idea why this is not working with the decimals? dll:=ahkthread("#NoTrayIcon`n#Persistent") ;~ dll.ahkExec["result:=2+1"] ;works ;~ dll.ahkExec["result:=2.2+1`nmsgbox % result"] ;works dll.ahkExec["result:=2.2+1"] ;not working msgbox % d...
by think
08 May 2020, 11:37
Forum: Ask for Help
Topic: Error when calling ComObjCreate
Replies: 9
Views: 4131

Re: Error when calling ComObjCreate

Thank you very much!
by think
06 May 2020, 13:52
Forum: Ask for Help
Topic: Error when calling ComObjCreate
Replies: 9
Views: 4131

Re: Error when calling ComObjCreate

Hi HotKeyIt, after a while I have noticed that AhkPostFunction is not working for me in all cases - I'm getting freezes in some scenarios.

As an alternative you mentioned SetTimer - would it be possible to demonstrate this solution? Thanks.
by think
25 Feb 2020, 06:07
Forum: Ask for Help
Topic: Error when calling ComObjCreate
Replies: 9
Views: 4131

Re: Error when calling ComObjCreate

Thanks HotKeyIt, much appreciated!
by think
24 Feb 2020, 03:23
Forum: Ask for Help
Topic: Error when calling ComObjCreate
Replies: 9
Views: 4131

Re: Error when calling ComObjCreate

Thank you very much HotKeyIt. Few more questions please: :-)
- Do you recommend using DynaCall instead of my DllCall/A_AhkExe? Any disadvantage or potential issue?
- How is it possible to send multiple function parameters (Text1, Text2, Text3)? Example?
- What is the meaning of i=sssssssss part?

Go to advanced search