help with gui Topic is solved

Get help with using AutoHotkey and its commands and hotkeys

help with gui

24 Sep 2017, 14:44

I have a gui (Gui 1:) that has a button when clicked opens another gui (gui 2:)
Gui 2: has two edit boxes, variables vSubj and vMsg.
Gui 2: has a button that runs an INIWrite script.
Once this is done, I no longer need Gui 2:
I need help with destroying Gui 2:, returning to Gui 1:, and proceeding with Process
User avatar
Posts: 339
Joined: 08 Jul 2015, 00:12

Re: help with gui

24 Sep 2017, 15:01

To destroy gui 2, Gui 2:Destroy
Call that in your button press label.

If you still need help please post your code, it makes it much easier for us.
User avatar
Posts: 663
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: help with gui  Topic is solved

24 Sep 2017, 15:08

Try orin combine with and similar commands.
As Spawnova said, without seeing your code, real sensible support is difficult.

[Starklichtbirne IQ >> 250!!] Dank deutscher Lehrerempfehlung, nur Süperdepp und Hartz4-Bezieher, statt Abitürient und Einkommensbezieher.
[Strong light bulb IQ >> 250!!] Thanks to german teacher's recommendation, willful and welfare recipient, instead of high school graduate and moneymaker.

Entering high school for foreign children is not prohibited in GERMANY, it's only made nearly impossible by government.
Virtually the only way - visiting high school abroad.

Re: help with gui

24 Sep 2017, 16:33

When I run this, after the Write: label runs, when I try to input into the edit boxes on Gui 1, Gui 2 pops up again.

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

User avatar
Posts: 339
Joined: 08 Jul 2015, 00:12

Re: help with gui

24 Sep 2017, 20:11

The reason that happens is because you have no returns on your labels, so the code keeps going down until it reaches a return, once it leaves label3 it goes right into label4, which creates gui 2
adding a return after those labels will fix that issue, however there are several other small issues as well. I've edited your script that should fix the problems.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Re: help with gui

24 Sep 2017, 20:24

Thanks, Spawnova

I had just noticed the missing returns and had come back to my post to tell you I had found the problem.
Thanks again Spawnova for helping with cleaning up my script.
My education in
AutoHotKey continues to grow.

Return to “Ask For Help”

Who is online

Users browsing this forum: Archandrion, Qysh and 8 guests