Sign in to follow this  
Followers 0
mesale0077

auto it code

3 posts in this topic

this code

bad file code,but files in same folder

copy / b window.jpg + filefile.rar new.jpg

hide file pro

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

$Form1 = GUICreate("[#] File hide pro. [#]", 404, 300, 192, 124)

$Label1 = GUICtrlCreateLabel("file name 1", 24, 32, 58, 17)

$Label2 = GUICtrlCreateLabel("file name 2", 24, 80, 58, 17)

$Button1 = GUICtrlCreateButton("Browse", 296, 24, 89, 33, $WS_GROUP)

$Button2 = GUICtrlCreateButton("Browse", 292, 73, 89, 33, $WS_GROUP)

$Button3 = GUICtrlCreateButton("ok", 200, 240, 65, 33, $WS_GROUP)

$Button4 = GUICtrlCreateButton("exit", 304, 240, 73, 33, $WS_GROUP)

$Button5 = GUICtrlCreateButton("save as", 24, 128, 57, 25, $WS_GROUP)

$Input2 = GUICtrlCreateInput("", 104, 128, 153, 21)

$Input3 = GUICtrlCreateInput("", 104, 32, 153, 21)

$Input4 = GUICtrlCreateInput("", 104, 80, 153, 21)

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

case $Button1

$filename 1=FileOpenDialog(@DesktopDir & "\", "All (*.*)" , 1 + 4 )

$filename 1 = StringReplace($filename 1, "|", @CRLF)

case $Button2

$filename 2=FileOpenDialog(@DesktopDir & "\", "All (*.*)" , 1 + 4 )

$filename 2= StringReplace($filename 2, "|", @CRLF)

case $Button3

$var = FileSaveDialog( "a name.", $MyDocsFolder, "All (*.*)",2)

case $Button3

FileCopy($filename 1@CRLF $filename 2 , $var)

case $Button3

$var = FileSaveDialog( "a name.", $MyDocsFolder, "All (*.*)",2)

case $Button3

FileCopy($filename 1@CRLF $filename 2 , $var)

Case $GUI_EVENT_CLOSE,$Button4

Exit

EndSwitch

WEnd

why dont worked

what is problem code

good workes

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Must of your variable have a space in between them such as filename 1, filename 2.

@UserProfileDir should be used instead of $MyDocsFolder thats wasn't defined

should be FileCopy($filename_1 & @CRLF & $filename_2, $var)

you need to lookup FileOpenDialog and FileSaveDialog in the help file

Edited by TerarinK

0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

this code, but

$message_1 = "file1"

$message_2 = "file2.rar"

$var_1 = FileOpenDialog($message_1, @MyDocumentsDir & "\", "(*.jpg)|(*.bmp)|(*.gif)|(*.png)", 1 + 4 )

If @error Then

MsgBox(4096,"","file?")

Else

$var_1 = StringReplace($var_1, "|", @CRLF)

MsgBox(4096,"","You chose " & $var_1)

EndIf

$var_2= FileOpenDialog($message_2, @MyDocumentsDir & "\", "(*.rar)|(*.zip)", 1 + 4 )

If @error Then

MsgBox(4096,"",".rar file?")

Else

$var_2= StringReplace($var_2, "|", @CRLF)

MsgBox(4096,"","You chose " & $var_2)

EndIf

$var_3= FileSaveDialog("new file","","(*.jpg)|(*.bmp)|(*.gif)|(*.png)",0,"")

If @error Then

MsgBox(4096,"","new file?")

Exit

EndIf

$file2 = FileOpen ("console.bat", 2)

FileWrite ($file2, "copy / b "& $var_1 & "+" & $var_2 & " " & $var_3)

FileClose ($file2)

run("console.bat")

msgbox(0,""," ok ")

filedelete("console.bat")

exit

why dont worked

thanks u

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