Gui Error

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Gui Error

10 Oct 2013, 07:19

I was a old script and It worked fine.

Now, I get this error
Image

The error line contains the next

Code: Select all

Gui +AlwaysOnTop -Caption +LastFound +Center
I don't understand where is the problem.
If I coment +Center, I get an new error
Image

Any help, please?

Thanks in advance!
Everything is possible!
jpginc
Posts: 124
Joined: 29 Sep 2013, 22:35

Re: Gui Error

10 Oct 2013, 07:24

It looks like it's because you don't have any value after the "y" on line 733.
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: Gui Error

10 Oct 2013, 07:56

Thanks but It's incredible! Because, this script worked fine...

I heve deleted +Center in the line
Gui +AlwaysOnTop -Caption +LastFound +Center

And add a 0 to the line
Gui, Show, xCenter y0

And, now the script works fine. Do not understand why the program worked fine before. :oops:
Everything is possible!
User avatar
dangerdogL2121
Posts: 173
Joined: 01 Oct 2013, 23:11

Re: Gui Error

14 Oct 2013, 00:19

I looked at the Gui documentary page and from what I can tell, Gui, +Center is not an option. Gui, Show, Center is an option I think. Also having something like Gui, Show, x5 y will give you an error every time since no y coordinate is specified. But then again I'm no expert.
Gui page if you need it http://www.autohotkey.com/docs/commands/Gui.htm
lexikos
Posts: 9635
Joined: 30 Sep 2013, 04:07
Contact:

Re: Gui Error

14 Oct 2013, 02:57

Your script always had an error, but prior to v1.1.04 the invalid options were ignored. Fix the errors and the script will work.
1.1.04.00 - September 11, 2011
...
If an unrecognized option is used with Gui, Gui Show, Gui New or GuiControl, an error message is shown and the thread exits
Source: Changes & New Features
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: Gui Error

14 Oct 2013, 08:09

lexikos wrote:Your script always had an error, but prior to v1.1.04 the invalid options were ignored. Fix the errors and the script will work.
1.1.04.00 - September 11, 2011
...
If an unrecognized option is used with Gui, Gui Show, Gui New or GuiControl, an error message is shown and the thread exits
Source: Changes & New Features
Thanks very much for the info.
Greetings!
Everything is possible!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: busymind, peter_ahk and 96 guests