ppeterpp
Joined: 08 Jul 2009 Posts: 61
|
Posted: Wed Oct 21, 2009 10:11 pm Post subject: Gui help. |
|
|
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 |
|
|