Silvinho Posted February 25, 2008 Share Posted February 25, 2008 I only need another three items to conclude the project below. 1 - allow to the user choose the location where the structure is going to be created. 2 - allow to the user create the structure selected just both field Select Month and Select Week while the other field are in white. 3 - And in the field PS I have more other items to are selected for example PS / PE / MA / PQ / VIC. **************************************************************************************************** *** #include <GUIConstants.au3> Global $EnMonth = "January|Febuary|March|April|May|June|July|August|September|October|November|December" Global $BrMonth = "Janeiro|Fevereiro|Março|Abril|Maio|Junho|Julho|Agost|Setembro|Outubro|Novembro|Dezembro" Global $mDir, $wDir, $psDir = "PS", $aDir = "\Artefato Inspected\", $pcDir = "PCC" $Gui = GUICreate("Select Month & Week & MIG# & PS & PCC", 665, 30) $Drive = GUICtrlCreateLabel(@HomeDrive & "\", 5, 10, 20, 15) $Month = GUICtrlCreateCombo("Select Month", 30, 5, 100, 20, $CBS_DROPDOWNLIST) GUICtrlSetData(-1, $EnMonth, "Select Month") GUICtrlCreateLabel("\", 135, 10, 10, 15) $Week = GUICtrlCreateCombo("", 150, 5, 100, 20, BitOR($WS_VSCROLL, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, _Week(), "Select Week") GUICtrlCreateLabel("\MIG", 255, 10, 25, 15) $Mig = GUICtrlCreateInput(41328, 285, 5, 45, 20, $ES_NUMBER) GUICtrlCreateLabel("\", 335, 10, 15, 15) $Ps = GUICtrlCreateCombo($psDir, 350, 5, 45, 20, BitOR($WS_VSCROLL, $CBS_DROPDOWNLIST)) GUICtrlCreateLabel($aDir, 400, 10, 100, 15) $PCC = GUICtrlCreateCombo("", 505, 5, 50, 20, BitOR($WS_VSCROLL, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, "PCC|IPU|ECP|PST|PC|PSF|INV|EES", "PCC") $Create = GUICtrlCreateButton("Create Directory", 565, 5, 95, 20) GUISetState(@SW_SHOW, $Gui) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $Month If GUICtrlRead($Month) <> "Select Month" Then Local $EM = StringSplit($EnMonth, "|"), $MM = StringSplit($BrMonth, "|") For $i = 1 To $EM[0] If GUICtrlRead($Month) = $EM[$i] Then $mDir = $MM[$i] Next Else $mDir = "" EndIf Case $Week If GUICtrlRead($Week) <> "Select Week" Then $wDir = StringReplace(GUICtrlRead($Week), "Week", "Semana", 1) Else $wDir = "" EndIf Case $Ps If GUICtrlRead($Ps) <> $psDir Then $psDir = GUICtrlRead($Ps) Case $PCC If GUICtrlRead($PCC) <> $pcDir Then $pcDir = GUICtrlRead($PCC) Case $Create GUICtrlRead($Mig) If $mDir <> "" And $wDir <> "" And GUICtrlRead($Mig) <> "" And DirCreate(@HomeDrive & _ "\" & $mDir & "\" & _ $wDir & "\MIG " & _ GUICtrlRead($Mig) & _ "\" & $psDir & _ $aDir & $pcDir) Then ShellExecute("explorer.exe", "/e," & @HomeDrive & "\" & $mDir & "\" & $wDir & "\MIG " & _ GUICtrlRead($Mig) & "\" & $psDir & _ "\Artefato Inspected\" & $pcDir) EndIf EndSwitch WEnd Func _Week() Local $iWeek = "Select Week" & "|" For $i = 1 To 52 $iWeek &= "Week " & StringFormat("%02i", $i) & "|" Next Return StrinGTrimRight($iWeek, 1) EndFunc Link to comment Share on other sites More sharing options...
smashly Posted February 25, 2008 Share Posted February 25, 2008 Hi,What was wrong with the thread you started the other day? (Your Thead Here)Maybe instead of posting a new thread for the same thing you just bump your existing thread instead.No need to start a new thread for the exact same thread you've already started.The idea isn't for anyone else to completely write your code for you from scratch for you.A little help is fine, but so far it doesn't look you've put any effort into writing some code for yourself.When you can show you've actually put some effort in others may want to help a bit more.Another thing that may help ppl to help you is to actually put your example code in a code tag or autoit code tag.The way you've posted your example code makes it hard to read and follow.Cheers Link to comment Share on other sites More sharing options...
Developers Jos Posted February 25, 2008 Developers Share Posted February 25, 2008 (edited) Now why did you create another thread after somebody already told you not to keep on creating threads on the same subject. Next one will give you a free vacation away from these forums ... *threads merged* Edited February 25, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GEOSoft Posted February 25, 2008 Share Posted February 25, 2008 AGAIN, you have opened another thread. I hear it coming. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Developers Jos Posted February 25, 2008 Developers Share Posted February 25, 2008 (edited) sighhhhh: As promised: 3 days banned. *topics merged again* Edited February 25, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now