Hey all,
Im just wondering with my code--
CODE#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Shortcut opener", 265, 447, 192, 124)
$Button1 = GUICtrlCreateButton("Hotmail", 8, 64, 89, 25, 0)
$Button2 = GUICtrlCreateButton("Music", 8, 104, 89, 25, 0)
$Button3 = GUICtrlCreateButton("Autoit site", 8, 144, 89, 25, 0)
$Button4 = GUICtrlCreateButton("Bebo logout", 8, 184, 89, 25, 0)
$Button5 = GUICtrlCreateButton("CMD", 8, 224, 89, 25, 0)
$Button6 = GUICtrlCreateButton("Button6", 8, 264, 89, 25, 0)
$Button7 = GUICtrlCreateButton("Button7", 8, 304, 89, 25, 0)
$Button8 = GUICtrlCreateButton("Button8", 8, 344, 89, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("http://www.hotmail.com")
Case $Button2
Run("C:\Documents and Settings\Owner\Desktop\corey's\virtualdj.exe")
WinWaitActive("VirtualDJ")
ShellExecute("C:\Documents and Settings\Owner\My Documents\My Music\corey's")
Case $Button3
ShellExecute("http://www.autoitscript.com/forum")
Case $Button4
ShellExecute("http://www.bebo.com/c/account/sign_out")
WinWaitActive("Signed Out - Windows Internet Explorer")
WinClose("Signed Out - Windows Internet Explorer")
Case $Button5
run("cmd.exe")
EndSwitch
WEnd
is there a way to open a seperate box that ask's for a password input - and if password = true it allow's the program to be used and if password = false program closes?
i was thinking
$Pass = "watever pass is"
$input = "watever user inputs"
If $Pass = $input
Then run("w/e is here")
else exit
is that the way to go?
But i dont want the password dialog box to be a seperate program becuase thats the flaw the other person can just come out of no where and open the other program bypassing the password and i wanted the password coded into the program
Cheers C.W