Jump to content

Pretend2Script

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Location
    IL - USA

Pretend2Script's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I just want to add a thanks here too. Just goes to show if you search long enough you'll some brilliant posts (as shown above). I had all the WMI component working just didn't have the association piece! Thanks PsaltyDs for the code and everyone else who added to it and the thread and to twbradio for the original question!
  2. 2008-06-19 00:05:33 : ********** New Registry ************ 2008-06-19 00:05:33 : AutoIt Screen Name> Pretend2Script 2008-06-19 00:05:33 : AutoIt Member Number> 5,565 2008-06-19 00:05:33 : User Location> IL/USA 2008-06-19 00:05:33 : ********** End Registry ************ 2008-06-19 00:05:33 : Ver 1.4.8 2008-06-19 00:05:33 : 2008-06-19 00:06:07 : ********** Exam Level One ************ 2008-06-19 00:06:07 : Number of Attempts> 1 2008-06-19 00:06:07 : Exam Scores> 100 ( 100 Points Max ) 2008-06-19 00:06:07 : Accumulated Errors> 0 2008-06-19 00:06:07 : Point Score> 332 ( 333 Points Max ) 2008-06-19 00:06:07 : ********** End Exam Report ************ 2008-06-19 00:06:07 :
  3. Duh! Thank you both! Both of these options worked perfectly and I feel like a total idiot for not seeing it myself... Apologies for the bad formatting, I do use (and love) SciTe. I think I just lost my formatting when I was trying some edits... Bravo to you both!
  4. Normally I'm able to dig through tons of post and my slow brain will eventually glean, from everyone's brilliance, the information I need, but I've spent all afternoon in the "Forum" trenches and the Help File and I'm still at a loss. I have an old Backup/Restore Script I created using AutoIt back in the day and I'm trying to re-write/improve it with all that I've learned from trudging in everyone's footsteps around here. I've got the actual functionality covered, but the GUI is killing me. I've created a checkbox and some radio buttons and I'm trying to disable and enable input options (dropdowns, input, file select, etc...) based on if they are selected or not. In my select case, only the top most listed choice will work. Should I be using onevent instead? What obvious mistake am I making here? (here's most of the GUI minus unnecessary extras) CODE#include <file.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <array.au3> $Main = GUICreate("Welcome to the Backup program!", 500, 500) $group_1 = GUICtrlCreateGroup("Set Backup Locations", 20, 10, 200, 100) GUIStartGroup() $location_1 = GUICtrlCreateCheckbox("Default selections", 30, 30, 182, 20) GUICtrlSetState($location_1, $GUI_CHECKED + $GUI_DISABLE) $location_2 = GUICtrlCreateCheckbox("Add Locations...", 30, 50, 160, 20) $AddFile = GUICtrlCreateButton("Add File", 30, 75, 45, 20) $AddFolder = GUICtrlCreateButton("Add Folder", 80, 75, 60, 20) GUICtrlSetState($AddFile, $GUI_DISABLE) GUICtrlSetState($AddFolder, $GUI_DISABLE) GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group $group_2 = GUICtrlCreateGroup("Set Backup Media", 20, 120, 200, 220) GUIStartGroup() $chkFixed = GUICtrlCreateRadio("Backup to Hard Drive", 30, 140, 180, 20) $fixed = GUICtrlCreateCombo("Hard Drive", 30, 160, 180, 20) GUICtrlSetState($fixed, $GUI_DISABLE) $chkCDRom = GUICtrlCreateRadio("Backup to CD Burner", 30, 185, 180, 20) $CDRom = GUICtrlCreateCombo("CD-Rom Drive", 30, 205, 180, 20) GUICtrlSetState($CDRom, $GUI_DISABLE) $chkRemovable = GUICtrlCreateRadio("Backup to Removable Drive", 30, 230, 180, 20) $Removeable = GUICtrlCreateCombo("Removeable Drive", 30, 250, 180, 20) GUICtrlSetState($Removeable, $GUI_DISABLE) $chkNetwork = GUICtrlCreateRadio("Backup to Network Location", 30, 275, 180, 20) $Network = GUICtrlCreateCombo("Network Drive", 30, 295, 180, 20) GUICtrlSetState($Network, $GUI_DISABLE) GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group $group_4 = GUICtrlCreateGroup("Backup List", 230, 10, 260, 470) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ;X in corner is clicked ;_FileWriteLog($LogFile, "Closed application - X in corner") ;FileClose($LogMe) Exit Case $msg = $AddFile $inputBrowse = FileOpenDialog("Select a file...", "", "All (*.*)", 3) $YNadd = MsgBox(36, "Verify File", "Are you sure you want to add:"&@CR&@CR&$inputBrowse) If $YNadd = 6 Then MsgBox(64, "File Added...", $inputBrowse&@CR&@CR&"...has been added to your backup.") ;_FileWriteLog($LogFile, "Added file =" & $inputBrowse) Else MsgBox(48, "No Addition", $inputBrowse&@CR&@CR&"...was NOT added to the backup.") EndIf Case $msg = $AddFolder $inputBrowse = FileSelectFolder("Select a folder...", "") $YNadd = MsgBox(36, "Verify Folder", "Are you sure you want to add:"&@CR&@CR&$inputBrowse) If $YNadd = 6 Then MsgBox(64, "Folder Added...", $inputBrowse&@CR&@CR&"...has been added to your backup.") ;_FileWriteLog($LogFile, "Added folder =" & $inputBrowse) Else MsgBox(48, "No Addition", $inputBrowse&@CR&@CR&"...was NOT added to the backup.") EndIf Case BitAND(GUICtrlRead($location_2), $GUI_CHECKED) If Not BitAND(GUICtrlGetState($AddFile), $GUI_ENABLE) Then GUICtrlSetState($AddFile, $GUI_ENABLE) If Not BitAND(GUICtrlGetState($AddFolder), $GUI_ENABLE) Then GUICtrlSetState($AddFolder, $GUI_ENABLE) Case BitAND(GUICtrlRead($location_2), $GUI_UNCHECKED) If Not BitAND(GUICtrlGetState($AddFile), $GUI_DISABLE) Then GUICtrlSetState($AddFile, $GUI_DISABLE) If Not BitAND(GUICtrlGetState($AddFolder), $GUI_DISABLE) Then GUICtrlSetState($AddFolder, $GUI_DISABLE) Case BitAND(GUICtrlRead($chkFixed), $GUI_CHECKED) If Not BitAND(GUICtrlGetState($fixed), $GUI_ENABLE) Then GUICtrlSetState($fixed, $GUI_ENABLE) Case BitAND(GUICtrlRead($chkFixed), $GUI_UNCHECKED) If Not BitAND(GUICtrlGetState($fixed), $GUI_DISABLE) Then GUICtrlSetState($fixed, $GUI_DISABLE) EndSelect WEnd ...preparing to bow to the forthcoming enlightenment! (any of which I am truly grateful for)
  5. Apologies, I didn't catch that. Hadn't heard that there was a crack out ther for the decompile. I'm all about safety! Bravo Jon on the update and thanks so much for the info Generator!
  6. Sadly, after I posted I finally found the history file entry... http://www.autoitscript.com/autoit3/scite/docs/history.htm "9/9/2007 *** Updated AutoIt3Wrapper_Gui/AutoIt3Wrapper v1.9.3 (JdeB) - Added: %autoitdir% support in Run_Before and Run_After directives - Added: Skip the Source Directives update when no changes are made in AutoIt3Wrapper_GUI. - Added: #AutoIt3Wrapper_Res_SaveSource which will add the ScriptSource to the Output program resource section AutoIt3:ScriptSource. - Added: #AutoIt3Wrapper_Res_File_Add which will add the specified file to the Output program resource. - Removed: support for #AutoIt3Wrapper_allow_decompile and #AutoIt3Wrapper_passphrase - Fixed: Possible issue with the Fileversion AutoIncrement replacing it on the wrong line. - Fixed: Bug running UPX in Win9x." Anyone know the reasoning behind it? Not questioning the decision, just curious I always used that feature; is there anything new that comparable?
  7. I usually never have to post (which is evident from the non-existent number of post I have made) as I normally find everything I need by searching through everyone's brilliantly clear responses in the forums. That being said, I will apologize up front if I have missed this information in my searches. After a lost HD (luckily all my scripts were backed up) I had to re-install all of my AutoIt installs (including SciTe, cvswrapper, and of course the latest version of AutoIt). After doing so, I noticed that the option in the GUI for Allow Decompile and Passphrase were gone. In addition the reference: #AutoIt3Wrapper_PassPhrase=?????? was no longer recognized by the SciTe Editor. I've searched for information on the GUI Wrapper, the editor, and on #AutoIt3Wrapper_PassPhrase, but found nothing that answered this question (or I did and must not have understood it). If anyone can point me toward an answer or another thread that I may have missed the answer in, it would be greatly appreciated... Sincere thanks - Chris
×
×
  • Create New...