Sign in to follow this  
Followers 0
HR78

WinRar question

2 posts in this topic

Ok guys,I have a problem with a script, please help me.

In this script I have 2 problems:

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiConstants.au3>

Opt("GUIOnEventMode", 1)

Local $fPIC = "" ; "Test.zip"

Local $hGUI = GUICreate("Drag&Drop", 300, 200, 10, 10, -1, $WS_EX_ACCEPTFILES)
Global $hPIC = GUICtrlCreatePic($fPIC, 5, 5, 290, 190);, "", $WS_EX_ACCEPTFILES)
GUICtrlSetState($hPIC, $GUI_DROPACCEPTED)
GUISetOnEvent($GUI_EVENT_CLOSE, "_SpecialEvent")
GUISetOnEvent($GUI_EVENT_DROPPED, "_SpecialEvent")
GUISetState(@SW_SHOW)

While 1
    Sleep(100)
WEnd

Func _SpecialEvent()
    Local $DFile
    Select
        Case @GUI_CtrlId = $GUI_EVENT_CLOSE
            Exit
        Case @GUI_CtrlId = $GUI_EVENT_DROPPED
            $DFile = @GUI_DragFile
            ConsoleWrite($DFile & @CRLF)
            If StringRight($DFile, 3) = "rar" Or StringRight($DFile, 3) = "zip" Then MyRun()
    EndSelect
EndFunc ;==>_SpecialEvent
 
Func MyRun ()
 Run(@ScriptDir & "\WinRAR.exe" )
             Sleep(500)
              Send("{CTRLDOWN}o{CTRLUP}")
              Sleep(20)
            Send("{CTRLDOWN}v{CTRLUP}")
            Send ("{ENTER}")
EndFunc

How to make a script to read directly from ConsoleWrite ($ DFile & @ CRLF), or a mod .ini or .txt file and sends it to the portable Winrar?

And second, is it possible portable Winrar to work in HIDE mode, as for utorent is - Run(@ScriptDir & "\uTp\uTorrent.exe /HIDE" ), for WinRar???

Thanks in advance and sorry for my bad English.


[URL=http://www.4shared.com/file/CMpeMOgr/KMSnano_100_Final_AIO_Activato.html]KMSnano 10.0 Final AIO Activator for Windows 7, 8 and Office 2010, 2013.exe[/URL] [URL=http://www.4shared.com/file/ODqqYSju/Windows_7_Loader_v208__x86-x64.html]Windows 7 Loader v2.0.8 (x86-x64) by Daz.exe[/URL] [URL=http://www.4shared.com/file/Jc8lQNic/Windows_7_Manager_v426__x32-x6.html]Windows 7 Manager v4.2.6 (x32-x64).exe[/URL] [URL=http://www.4shared.com/file/WMdwBjBE/Windows_8_Manager_v114.html]Windows 8 Manager v1.1.4.exe[/URL]

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0