Whats wrong with this code?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
QyouLimYT
Posts: 4
Joined: 08 Feb 2023, 03:40

Whats wrong with this code?

Post by QyouLimYT » 08 Feb 2023, 03:43

[Mod edit: Spoiler contains non-working AI code.]
Spoiler

QyouLimYT
Posts: 4
Joined: 08 Feb 2023, 03:40

Re: Whats wrong with this code?

Post by QyouLimYT » 08 Feb 2023, 04:17

it states that there are an error in lin e24, but idk how to fix it.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Whats wrong with this code?

Post by swagfag » 08 Feb 2023, 04:28

it was produced by an AI, whose purpose was not to produce correct code

User avatar
Smile_
Posts: 857
Joined: 03 May 2020, 00:51

Re: Whats wrong with this code?

Post by Smile_ » 08 Feb 2023, 05:42


QyouLimYT
Posts: 4
Joined: 08 Feb 2023, 03:40

Re: Whats wrong with this code?

Post by QyouLimYT » 09 Feb 2023, 01:54

swagfag wrote:
08 Feb 2023, 04:28
it was produced by an AI, whose purpose was not to produce correct code
it was made by an AI... i just wanted to see what's it capoble of e.t.c.

QyouLimYT
Posts: 4
Joined: 08 Feb 2023, 03:40

Re: Whats wrong with this code?

Post by QyouLimYT » 09 Feb 2023, 01:56

@swagfag It was created by an AI. I just wanted to see what's it capable of and see if it can make working codes e.t.c.

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: Whats wrong with this code?

Post by gregster » 09 Feb 2023, 02:53

QyouLimYT wrote:
09 Feb 2023, 01:54
it was made by an AI... i just wanted to see what's it capoble of e.t.c.
Please note that this is against forum rules, due to the current sorry state of AI code generation: https://www.autohotkey.com/forumrules/#inappropriate_content

If you want to ask about AI generated code, please ask the AI, but not here.
If you want to verify what it is capable of, please refer to the AHK docs and find it out yourself. Like mentioned, it's not hard to find out in the AHK v1 docs that GuiControlGet is not a function, but a comnmand. There are probably more problems - if you debug this yourself, you can perhaps learn something about AHK (although I wouldn't necessarily recommend that way of learning). But please don't post the AI-generated code here again. Thank you!

User avatar
Chunjee
Posts: 1402
Joined: 18 Apr 2014, 19:05
Contact:

Re: Whats wrong with this code?

Post by Chunjee » 09 Feb 2023, 03:36

QyouLimYT wrote:
08 Feb 2023, 03:43

Code: Select all

MsgBox, Welcome %GuiControlGet(Username)%!
don't use %% so much. I think it would be msgbox, % "Welcome " GuiControlGet(Username) "!"

see docs for expression syntax.

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: Whats wrong with this code?

Post by gregster » 09 Feb 2023, 03:40

GuiControlGet is still not a function.

I'll close this topic.

Locked

Return to “Ask for Help (v1)”