Search found 37 matches

by marc873a
19 Nov 2022, 11:45
Forum: Ask for Help (v1)
Topic: Loop sending Objects from array Topic is solved
Replies: 2
Views: 232

Re: Loop sending Objects from array Topic is solved

Yup, It was apparently that easy:)

Just a little not to anyone who finds this thread, "!", "#", "^", and "+" Is interpreted as keys. Use SendRaw instead
Thx for the help
by marc873a
19 Nov 2022, 11:19
Forum: Ask for Help (v1)
Topic: Loop sending Objects from array Topic is solved
Replies: 2
Views: 232

Loop sending Objects from array Topic is solved

Hi. I am trying to make a script that breaks a string up into separate characters and sending the characters one by one. This is what I have so far: Text := "Hello There!" Characters := StrSplit(Text) Loop,% ObjLength(Characters) { Send,% Characters[%A_index%] Sleep, 100 } return It seems like somet...
by marc873a
14 Nov 2022, 12:35
Forum: Ask for Help (v1)
Topic: Change taskbar icon of a GUI window Topic is solved
Replies: 6
Views: 1085

Re: Change taskbar icon of a GUI window Topic is solved

Okay found a solution within 2 minutes whoops 😅 https://www.autohotkey.com/boards/viewtopic.php?t=96310 You have to change the autohotkey installation to enable separate taskbar buttons . Downside: That prevents AutoHotkey.exe from being pinned to the taskbar. You don't have to uninstall AHK, there ...
by marc873a
14 Nov 2022, 12:28
Forum: Ask for Help (v1)
Topic: Change taskbar icon of a GUI window Topic is solved
Replies: 6
Views: 1085

Re: Change taskbar icon of a GUI window Topic is solved

Thanks for the reply. I tried your script, just with a different icon than the one you suggested (because it for some reason doesn't exist) It still produces the same result, only changing the WinTitleBar and the tray icon, but not the taskbar icon: image.png It works completely fine if I compile th...
by marc873a
14 Nov 2022, 01:00
Forum: Ask for Help (v1)
Topic: Change taskbar icon of a GUI window Topic is solved
Replies: 6
Views: 1085

Re: Change taskbar icon of a GUI window Topic is solved

Hmm I run the command at the very top of the script, so I'm not sure it's that. It could be the size that troubles me. Do you know what size an .ico file needs to be, to be compatible with the Taskbar
by marc873a
13 Nov 2022, 15:09
Forum: Ask for Help (v1)
Topic: Change taskbar icon of a GUI window Topic is solved
Replies: 6
Views: 1085

Change taskbar icon of a GUI window Topic is solved

Hi. If I run a GUI window, the icon on the taskbar is the green square with a white "H". Is it possible to change it? When using this line of code: Menu, Tray, Icon, MyIcon.ico It only changes the wintitlebar and the tray icon. I'm am looking for a way to change it without compiling. Thx in advance:)
by marc873a
17 Oct 2022, 15:31
Forum: Ask for Help (v1)
Topic: Can't edit script in Windows 11 22H2 Topic is solved
Replies: 4
Views: 785

Re: Can't edit script in Windows 11 22H2 Topic is solved

I would like to admit that I've made a mistake here. The second solution Mikeyww provided did indeed fix my problem. I thought based on the title of the links you gave me, that the original problem and my problem weren't similar. That is true, but the solution apparently fixed both mine and the orig...
by marc873a
16 Oct 2022, 07:48
Forum: Ask for Help (v1)
Topic: Can't edit script in Windows 11 22H2 Topic is solved
Replies: 4
Views: 785

Re: Can't edit script in Windows 11 22H2 Topic is solved

Hmm, not exactly my problem.
When I right-click a script and choose "edit script", my mouse cursor changes to the loading animation and stops after a few seconds.
Normally, notepad would open with my ahk code, but it doesn't. Nothing opens.
🤔
by marc873a
16 Oct 2022, 06:41
Forum: Ask for Help (v1)
Topic: Can't edit script in Windows 11 22H2 Topic is solved
Replies: 4
Views: 785

Can't edit script in Windows 11 22H2 Topic is solved

Hi.
Whenever I click "edit script", it loads for a few seconds, but never opens the text editor. I have tried reinstalling AHK.
This seems to have happened after I updated to win 22H2.
How can I solve this?

Thx in advance:)
by marc873a
20 Sep 2022, 10:46
Forum: Ask for Help (v1)
Topic: Random Hex color value Topic is solved
Replies: 9
Views: 746

Re: Random Hex color value Topic is solved

Damn didn't know colors were that complicated.
This is well written, and I understood it. The color of 69420 is a very nice color haha.

Thanks!
by marc873a
20 Sep 2022, 06:36
Forum: Ask for Help (v1)
Topic: Random Hex color value Topic is solved
Replies: 9
Views: 746

Re: Random Hex color value Topic is solved

Oh, so it's 16777215 because that's the total amount of color combinations (255*255*255). I'm still a bit confused about how a random number can translate to a color value. Like, how do I know what color 69420 would give me?

Anyways, thank you for the help with my script:)
by marc873a
20 Sep 2022, 02:54
Forum: Ask for Help (v1)
Topic: Random Hex color value Topic is solved
Replies: 9
Views: 746

Re: Random Hex color value Topic is solved

Yes, this seems to generate a random hex code. It looks like this somehow creates a new problem. The text I want to color, only gets colored black, and don't know why. Here's the code: Random, Rand, 0, 16777215 ;msgbox, % format("{:06X}", Rand) Gui, Font, s19, Candy Beans Gui, Font, % format("{:06X}...
by marc873a
19 Sep 2022, 13:53
Forum: Ask for Help (v1)
Topic: Random Hex color value Topic is solved
Replies: 9
Views: 746

Re: Random Hex color value Topic is solved

RussF wrote:
19 Sep 2022, 13:27
Try:

Code: Select all

Random, Rand
msgbox, % format("{:X}", Rand)
Russ
Thank you for the fast response
It seems like this generates 7 to 8 chararter values. Afaik Hex values needs to be exactly 6. How can I fix this?
by marc873a
19 Sep 2022, 13:12
Forum: Ask for Help (v1)
Topic: Random Hex color value Topic is solved
Replies: 9
Views: 746

Random Hex color value Topic is solved

Hi there.
I was wondering how you can generate a random Hex value.
I need it for some text in a GUI.
Thx in advance and have a nice day! :))
by marc873a
28 Jun 2022, 14:57
Forum: Ask for Help (v1)
Topic: GUI text overlays other elements Topic is solved
Replies: 12
Views: 911

Re: GUI text overlays other elements Topic is solved

Very nicely done.

How should I code it so it is aligned like this:
image.png
image.png (126.54 KiB) Viewed 634 times
Best regards,
Me
by marc873a
28 Jun 2022, 04:31
Forum: Ask for Help (v1)
Topic: GUI text overlays other elements Topic is solved
Replies: 12
Views: 911

Re: GUI text overlays other elements Topic is solved

Okay here is there code for the entire script: #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. SetWorkingD...
by marc873a
27 Jun 2022, 15:10
Forum: Ask for Help (v1)
Topic: GUI text overlays other elements Topic is solved
Replies: 12
Views: 911

Re: GUI text overlays other elements Topic is solved

I'm a little confused about this.
I want it to look like this:
image.png
image.png (96.31 KiB) Viewed 872 times
(Photoshop)
x, y, and a are just examples.

How should I do this?

Best Regards,
Marcus
by marc873a
27 Jun 2022, 14:19
Forum: Ask for Help (v1)
Topic: GUI text overlays other elements Topic is solved
Replies: 12
Views: 911

GUI text overlays other elements Topic is solved

Hi. I have a GUI window with multiple texts. The code is here: Gui, -DPIScale Gui, Font, s22, Arial Gui, Add, Text, x0 y10 w960 +Center, % var.1 Gui, Add, Text, x0 y10 w1920 +Center, % var.2 Gui, Add, Text, x960 y10 w960 +Center, % var.3 Gui, Submit Gui, Show, maximize return var.1, .2, and 3 are ju...
by marc873a
27 Jun 2022, 13:22
Forum: Ask for Help (v1)
Topic: GUI center text Topic is solved
Replies: 3
Views: 547

Re: GUI center text Topic is solved

Okay, so I just read about the option "-DPIScale" and that seems to do the job.
I feel like the Ahk documentation could need a little update, to make it a bit more easy to read.
Anyway, thanks for help!
by marc873a
27 Jun 2022, 13:03
Forum: Ask for Help (v1)
Topic: GUI center text Topic is solved
Replies: 3
Views: 547

Re: GUI center text Topic is solved

I have used windows for at least 12 years now, and this is the first time I hear about Windows scaling factor. Bruh. This is what causes the problem. I don't want to set it to 100% as everything seems so small, so is there any way to center the text without changing the wsf? My current scaling facto...

Go to advanced search