AutoHotkey Community

It is currently May 27th, 2012, 12:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: December 23rd, 2009, 12:43 am 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
What happens if you erase your files direct from a removable device, like a memory stick?

:?:

Most of the time its do not go to the recycle bin. And if you regret later, is a complex job to recover the files... The solution is a portable program which detect when the file is deleted to move it to a special container: iBin.

:idea:

Image

iBin

Download here:

http://www.autohotkey.net/~FirstToyLab/project_iBin_download.htm

_________________
Image

http://www.autohotkey.net/~FirstToyLab/


Last edited by First Toy Lab on December 30th, 2009, 5:11 pm, edited 5 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 2:14 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
How does it detect when file is about to be deleted ?

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 9:26 pm 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
majkinetor wrote:
How does it detect when file is about to be deleted ?


It detect the window used to confirm the file delete action. But the iBin can be used with hotkeys, which skip this process.

Today I discovered in my friends computer that the iBin 1.0a is not detecting the Windows Vista delete action. I need to enhance the routine.

I will smoke a spliff now and I will be back in few minutes to share part of the script here.

:P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 9:34 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Looks good;
Has potential;
Without Source should be in Utilities & Resources;
Smoke one for me, please.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 9:41 pm 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Nice script.

Soggydog, its fine where it is.
The Scripts & Functions does not say needs source.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 10:09 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Fry wrote:
...its fine where it is.
The Scripts & Functions does not say needs source.

I see no script;
I see no function;
I see an executable.

We've had this debate before;
I'm not going to pursue it.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 10:38 pm 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
"This section is for sharing your favorite scripts, functions, and AutoHotkey-specific software."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 10:41 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
SoggyDog wrote:
We've had this debate before;
I'm not going to pursue it.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 10:44 pm 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
If you'd like to act that way, fine.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 10:53 pm 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
SoggyDog wrote:
Looks good;
Has potential;
Without Source should be in Utilities & Resources;
Smoke one for me, please.


Did.

8)

This is the script used to detect the window delete action, which is the best way to know when the user is really erasing files/folders. Rely on wait the user press a Del key become a big and complex issue if this process is skip with a menu command, like Delete from the right-click menu. Because any delete action by the user always must come from a selection of file/folders, it is possible to use the Autohotkey commands to trick the system, send the selection to the clipboard, verify the content and trigger the right response.

This a trick used before by the creator of C.A.F.E. software, today eXpresso.

I used three ways to detect the window delete action to avoid the LOOP routine overuse the system processor.

The two features I wish improve:
- Capture the title of the windows delete action from a single selection and a multiple selection.
- Set a pre-defined size values of the windows delete action based on the operate system.


Last edited by First Toy Lab on December 28th, 2009, 6:06 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 11:00 pm 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
SoggyDog wrote:
Fry wrote:
...its fine where it is.
The Scripts & Functions does not say needs source.

I see no script;
I see no function;
I see an executable.

We've had this debate before;
I'm not going to pursue it.


:lol:

Guys, again? This is another post which someone become angry with the fact I did bring my toy to them play.

:lol:

I was writing the script post while you both were in this debate.

:lol:

I not post all the script because big part is GUI commands and LOOP parsing. It's 1405 lines now!

note: trust me, I post in the General Chat, by the forum administrator move to here.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 11:48 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
First Toy Lab wrote:
note: trust me, I post in the General Chat, by the forum administrator move to here.


I did notice this post was in General Chat last night, wonder why the mod didn't at least tag that they moved it...

At any rate, I'll give this a look over the holiday weekend.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 11:59 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
First Toy Lab wrote:
Did.

8)

:D Thanks.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2009, 3:27 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
It detect the window used to confirm the file delete action. But the iBin can be used with hotkeys, which skip this process.

So this can't be used with other file managers then default one - Explorer.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2009, 7:53 pm 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
majkinetor wrote:
Quote:
It detect the window used to confirm the file delete action. But the iBin can be used with hotkeys, which skip this process.

So this can't be used with other file managers then default one - Explorer.


Now the script works correctly in Windows Vista. I made drastic changes in the window capturing script. The best way to detect the right window is match different titles and sizes. Every version of the Windows operate system change the sizes the confirmation window, but follow a pattern. I used to capture three different situations of delete action: one file selection, multiple selection and one folder selection.

The routine to detect the window pop-up was adapted to work from any window where the user can use the operate system commands to delete a file/folder (right-click menu, DEL key, button command). What is matter is the window which pop-up to match the pre-defined parameters. That’s why is important allow the user capture the window delete action details.

This script works in any file manager with the classNN equivalent to SysListView321. That means more than 80% of the world wide users of Windows operate system.

I still do not know how works in Windows 7 or even Windows 2000.

Support iBin project in

:arrow: https://sourceforge.net/projects/ibin/


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cristi®, Stigg, Yahoo [Bot] and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group