Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/03/2013 in all areas

  1. 1 point
  2. Hi notime, try with this sintax: WinRar.exe x filename.rar -pYourPassword password goes after the filename no space between -p and password itself
    1 point
  3. Sure does. And to extract you will need Unrar.exe check the docs in the Winrar dir probably look soemthing like this unrar x -ppassword *.rar Bill
    1 point
  4. I'm sure WinRaR supports command line parameters.
    1 point
  5. #include <Constants.au3> $DOS = Run(@ComSpec, '', @SW_HIDE, $STDERR_MERGED + $STDIN_CHILD) While ProcessExists($DOS) If StringRight(StdoutRead($DOS, True), 1) = '>' Then MsgBox(0, 'Output is', StdoutRead($DOS)) StdinWrite($DOS, InputBox('Enter Command (exit to quit)', 'Please enter a command for the Console') & @CRLF) EndIf WEnd
    1 point
  6. Actually, you could do it by calling _IEFormGetCollection and then looping through the collection for forms with matching names.
    1 point
  7. Check out this link and see if you can apply it to your situation. I've seen this suggested for Windows 2000 and up, so it should work.
    1 point
  8. Jos

    how can disble(msconfig.exe)

    @Notime,I do not hope your chosen nickname says something about how you are going to post questions in these forums. You start seem to indicate I am wrong. Please take a couple of thing into account before continuing: Explain what it is you want and why.Show some initiative yourself first.. we are here to help not code it for youStop with the annoying bolding of all your text and use the standard font.Jos
    1 point
  9. Hi, notime, welcome to the forum. I have to ask, why in the world would you want to do that? You can always disable the Windows Installer service, but I would be curious why you would want to do so as it could make the system very unhealthy.
    1 point
  10. I have noticed that several posts regarding TWAIN devices are lef (partially) unanswered, so here is my contribution. The purpose is only to give an example, so there is much room for improvement. First of all get eztw32.dll (www.dosadi.com). Put it in the directory of the script. Run the script. The script will: check for the presence of the dllcheck for the availability of TWAINlets you select a devicelets you acquire an image to a fileThere are many other features in the dll not used (like raw data handling). See the information that comes with the dll. I ran the script on WIN2K with an HP ScanJet 3400C. This will probably also answer (part of) following topics: topic 48948 topic 23463 topic 27503 CODE;Include constants#include <GUIConstants.au3> #include <GuiEdit.au3> ;Initialize variables Global $GUIWidth Global $GUIHeight $GUIWidth = 290 $GUIHeight = 250 ;Create window $hwnd = GUICreate("TWAINtest", $GUIWidth, $GUIHeight) ;Create a form with buttons $button1 = GUICtrlCreateButton("check", 10, 20, 60, 25) $button2 = GUICtrlCreateButton("select", 10, 60, 60, 25) $button3 = GUICtrlCreateButton("acquire", 10, 100, 60, 25) ;...and with labels to display messages $edit1 = GUICtrlCreateLabel("", 80, 25, 200, 25) $edit2 = GUICtrlCreateLabel("", 80, 45, 200, 25) $edit3 = GUICtrlCreateLabel("", 80, 65, 200, 25) $edit4 = GUICtrlCreateLabel("", 80, 105, 200, 25) ;Disable buttons GUICtrlSetState($button2, $GUI_DISABLE) GUICtrlSetState($button3, $GUI_DISABLE) ;Show window/Make the window visible GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ;Destroy the GUI including the controls GUIDelete() ;Exit the script Exit Case $msg = $button1 ;Get the DLL version (211 means 2.11, so divide by 100) $rc = DllCall('EZTW32.DLL','long','TWAIN_EasyVersion') ;@error returns error from DllCall function if @error <> 0 then _GUICtrlEdit_SetText($edit1,'eztw32.dll load error') else _GUICtrlEdit_SetText($edit1,'eztw32.dll version: ' & $rc[0]/100) $rc = DllCall("eztw32.dll","long","TWAIN_IsAvailable") _GUICtrlEdit_SetText($edit2,'TWAIN available: RC = ' & $rc[0]) if $rc[0] <> 0 then GUICtrlSetState($button2, $GUI_ENABLE) endif endif Case $msg = $button2 ;Select image source ;A new window is openened and the select source manageris displayed ;All available TWAIN devices should be in the list $rc = DllCall("eztw32.dll","long","TWAIN_SelectImageSource",'hwnd',$hwnd) if $rc[0] <> 0 then GUICtrlSetState($button3, $GUI_ENABLE) _GUICtrlEdit_SetText($edit3,'TWAIN device selected') else _GUICtrlEdit_SetText($edit3,'no TWAIN device selected') endif Case $msg = $button3 ;Acquire image to a file $rc = DllCall("eztw32.dll","long","TWAIN_AcquireToFilename","hwnd",$hwnd,"str","") _GUICtrlEdit_SetText($edit4,'RC = ' & $rc[0]) EndSelect WEnd
    1 point
×
×
  • Create New...