AutoHotkey Community

It is currently May 26th, 2012, 10:13 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Gui help.
PostPosted: October 21st, 2009, 11:11 pm 
Offline

Joined: July 8th, 2009, 11:07 am
Posts: 61
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Gui help.
PostPosted: October 22nd, 2009, 3:21 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Gui help.
PostPosted: October 22nd, 2009, 2:15 pm 
Offline

Joined: July 8th, 2009, 11:07 am
Posts: 61
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], hyper_, JSLover, oldbrother, patgenn123 and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group