AutoHotkey Community

It is currently May 26th, 2012, 9:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: August 9th, 2009, 9:41 pm 
Offline

Joined: March 7th, 2009, 5:37 pm
Posts: 90
Hi folks,

I would like to write a script that allows me to delete a file without confirming that I really want to delete this file. The file should then be moved to recycler as usual.
XP offers just possibilities to a) bypass the confirmation constantly, or b) delete files without moving to recycler.

My intention is to create a quicklaunch button that deletes marked files to recycler.
If I instead use my DEL on keyboard I wish to confirm. So I need a routine bypassing the confirmation. 'FileRecycle' would be good. But how do I detect which files have been selected to delete?
Could you help?

Thanks in adavance.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2009, 1:15 am 
Offline

Joined: February 17th, 2008, 8:52 pm
Posts: 314
On Windows XP you can press Shift+Del to delete a file without it going to the recycle bin. Hereis website that explains what happens. Of course you have to highlight or select the file first then press shift+del.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2009, 1:28 am 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
If I am not mistaken what membersound wants is to be able, when desired, to skip the delete confirmation message, which still appears even if you use Shift+Del (unless ofc if you disable it in the reycle bin options).


Here is a recent thread that dealt with a more or less similar issue (passing file paths to a script, by using the clipboard and parsing the file paths):
http://www.autohotkey.com/forum/viewtopic.php?t=45817

Hopefully that should provide you with a working example.
________
HOMEMADE VAPORIZERS


Last edited by lilalurl.T32 on March 13th, 2011, 7:44 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2009, 3:07 pm 
Offline

Joined: March 7th, 2009, 5:37 pm
Posts: 90
lilalurl is right. I am looking for to skip confirmation if desired. Thanks for the example, think I will go ahead with that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2009, 9:08 am 
Offline

Joined: March 23rd, 2005, 7:53 am
Posts: 321
Location: Germany
Wait for the confirmation window and then press "No"
Code:
WinWaitActive, confirm
send, n

_________________
Hasso

Programmers don't die, they GOSUB without RETURN


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google [Bot], JSLover, virpara and 64 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