AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gui help.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ppeterpp



Joined: 08 Jul 2009
Posts: 61

PostPosted: Wed Oct 21, 2009 10:11 pm    Post subject: Gui help. Reply with quote

Hi!
I tried +owner1 to the gui 6 but it says there is no owner1
My script starts with gui2 first!!
Please help!
When i open the change password i want to disable
Gui like in this script :
Code:
SetBatchLines -1

Gui, +Owner -SysMenu
Gui, Show, H400 W400, stuff
DirList =
Loop, c:\windows\$*$, 2, 0
   DirList = %DirList%%A_LoopFileLongPath%`n
Gui, Add, Button,xm,List junk
return

ButtonListjunk:
Gui,2:+owner1
Gui +Disabled
Gui, 2:Add, Edit, R10 W500 ReadOnly ShowLists
Loop, parse, DirList, `n
   GuiControl,, ShowList, %A_LoopField%
Gui, 2:Add,Button,Default cm,OK
Gui, 2:Show
return

2ButtonOK:
   2GuiClose:
   2GuiEscape:
   Gui, 1:-Disabled
   Gui, 2:Destroy
return


My script:

Code:
ChangePass:
Gui, +Disable
Changepass = CHANGE PASSWORD
Note = Note: Please do not forget write down your password!
Gui, 6: +Owner +AlwaysOnTop +ToolWindow
Gui, 6:Font,cFF0000,
Gui, 6:Color, 000000
Gui, 6:Add, Edit,-Vscroll cBlack x80 y12 w80 h20 vchangepassusr
Gui, 6:Add, Edit,-Vscroll cBlack x80 y42 w80 h20 voldpass Password
Gui, 6:Add, Edit,-Vscroll cBlack x80 y72 w80 h20 vnewpass Password
Gui, 6:Add, Edit,-Vscroll cBlack x80 y102 w80 h20 vnewpassconfirm Password
Gui, 6:Add, Text, x12 y12 w70 h20, Username
Gui, 6:Add, Text, x12 y42 w70 h20, Password
Gui, 6:Add, Text, x12 y72 w70 h20, New Pass
Gui, 6:Add, Text, x12 y102 w70 h20, Confirm
Gui, 6:Add, Button, x170 y12 w70 h20 , Change
Gui, 6:Add, Button, x170 y42 w70 h20 Default, Cancel
Gui, 6:Add, Text, x12 y132 w220 h40, %Note%
Gui, 6:Show, x299 y200 h180 w250, %Changepass%
Return

6ButtonCancel:
   6GuiClose:
   6GuiEscape:
   Gui, 6:Destroy
   Gui, -Disable
Return
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Thu Oct 22, 2009 2:21 am    Post subject: Re: Gui help. Reply with quote

Try this (UNTESTED):
Code:
Gui, 2:+owner1

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
ppeterpp



Joined: 08 Jul 2009
Posts: 61

PostPosted: Thu Oct 22, 2009 1:15 pm    Post subject: Re: Gui help. Reply with quote

MasterFocus wrote:
Try this (UNTESTED):
Code:
Gui, 2:+owner1


Gui,2 is the login for my script :S:S
Gui 2 destroys at start,

Normal Gui (1) is the main script and i want
Gui 1 owns the Gui6 what is the password change
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group