Jump to content
Sign in to follow this  
gcue

_copywithprogress

Recommended Posts

gcue

here's a script by sumtingwong and modified by zedna (thanks fellas!)

http://www.autoitscript.com/forum/index.php?showtopic=11888&st=0&p=527284&#entry527284

works great - trying to detect if the user hits cancel

theres a section at the bottom that attempts to do just that but it doesnt work

; test if button Abort was pressed

If DllStructGetData($SHFILEOPSTRUCT, "fAnyOperationsAborted") Then $nError = -1

zedna says he was unable to get it working

can anyone help???

many thanks

Share this post


Link to post
Share on other sites
Zedna

zedna says he was unable to get it working

can anyone help???

many thanks

Try to search (by Google for example) for

SHFileOperation and SHFILEOPSTRUCT and fAnyOperationsAborted to see how it is used in another languages/examples shared on the internet and also look at MSDN for details about this SHFileOperation API.

Edited by Zedna

Share this post


Link to post
Share on other sites
KaFu
gcue

it was alot easier than we thought.

under this line:

If @error Or $aDllRet[0] <> 0 Then

you can report a cancel and which file was canceled:

Msgbox(0,"Canceled By User", $sFrom)

please let me know if this works for you as well..

=)

Edited by gcue

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.