AutoHotkey Community

It is currently May 27th, 2012, 9:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: November 14th, 2006, 5:17 am 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Quote:
isnt this the purpose of ahk anyway?

Yes, that is the purpose of AHK. Just seems to me me that a script for this is un-needed, but I see its not for you and thats OK... Anyways I found a few bugs and Im in the process of fixing this just for you, but should I even continue? You seem offended by my last post (I didnt want it to come across that way).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2006, 5:56 am 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
nah no offence


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2006, 6:30 am 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Ok I think this should do the trick! :D BTW I changed it to left clicking the Recycle Bin once cause the right click left the right click menu up when right clicking it. If that make sense :P Also if you want to get something out of the Recycle Bin you will need to right click on it and select 'Open' since any left click on it will empty it. Another thing is if you move the Recycle Bin, you will need to relaunch the script. And of course if you dont like it with the left click you can change 'LButton' to 'RButton' in the 5th to last line in the script. Hope this works for ya...

Code:
#SingleInstance Force
#Persistent
#NoEnv
SetBatchLines, -1
FileAppend, , Temp.Tmp
FileRecycle, Temp.Tmp
CoordMode, Pixel, Screen
Trans = 0
SysGet, SM_CXICON, 11
SysGet, SM_CYICON, 12
Sleep, 500
Loop
   {
      TrayTip, Detecting Recyle Bin Icon, Please Wait...
      ImageSearch, VarX, VarY, 0, 0, A_ScreenWidth, A_ScreenHeight, *%Trans% *W%SM_CXICON% *H%SM_CYICON% *Icon33 C:\WINDOWS\system32\SHELL32.dll
      If VarX =
         If VarY =
            {
               Trans := Trans + 20
               Continue
            }
      If VarX = 0
         {}
      Else If VarY = 0
            {
               Trans := Trans + 20
               Continue
            }
      If Trans > 255
            {
               MsgBox, 16, , Unable to find the Recycle Bin icon.
               ExitApp
            }
      Break
   }
TrayTip, Detection Done!, Script is ready for use!, 10
SM_CXICON := VarX + SM_CXICON
SM_CYICON := VarY + SM_CYICON
CoordMode, Mouse, Screen
ToolTip
SetTimer, GetMouseCursorPos, 0
Return
GetMouseCursorPos:
MouseGetPos, VarXX, VarYY
If VarXX between %VarX% and %SM_CXICON%
   If VarYY between %VarY% and %SM_CYICON%
      {
         GetKeyState, State, LButton
         If State = D
            FileRecycleEmpty
      }
Return


This is just an FYI in case you didnt know...
You can right click on the Recycle Bin and go into the properties and set it to auto delete anything that goes in the Recycle Bin, if thats any use to ya...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2006, 4:34 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
ok, maybe left click should be better, but atm I would like right click

why it looks so complicated to me?
why cant I do with in a few lines?


1)
rbutton only when I click on recycle bin icon > block context menu with return > run FileRecycleEmpty command > click yes in the confirmation dialog

2)
rbutton > open context menu > send "b" (it will empty the recycle bin) only when recycle bin context menu is active > click yes in the confirmation dialog

all seem so easy, but the problem is that I cant identify correctly recycle bin icon and recycle bin context menu


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2006, 4:43 pm 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Quote:
why cant I do with in a few lines?
:shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock:

Good luck with that....

BTW... I am done with this topic. Sorry User I cant change the world! I give you what you want and yet your still not satisfied!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2006, 5:09 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
its not what I wanted exactly

and I wanted to ask some questions


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2006, 5:26 pm 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Quote:
my intention was to actually empty recycle bin by right clicking on it...

Ok... I gave you exactly that!

then you say:

Quote:
its not what I wanted exactly


I dont think you even know what you want...

Quote:
why it looks so complicated to me?

Just run the script and when you right click on the Recycle Bin, it empties it! What is so complicated about that?! Well like I said before you would need to change the LButton to RButton in the script....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2006, 6:26 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
but you said that
aCkRiTe wrote:
BTW I changed it to left clicking the Recycle Bin


:s


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2006, 7:03 pm 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Geez.... :evil:

and this was in that same post!
Quote:
And of course if you dont like it with the left click you can change 'LButton' to 'RButton' in the 5th to last line in the script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2006, 7:35 am 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
man it does not work

either with RButton of LButton

how did it work for you?

why I cant identify the things I want, what is going one?

I want to identify recycle bin desktop icon, recycle bin context menu

can anyone tell me?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2006, 2:03 pm 
@user : no !
@aCkRiTe : at least you tried :) No luck :mrgreen:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2006, 2:19 pm 
a typo ?
Quote:
why I cant identify the things I want, what is going on (with m)e?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2006, 4:56 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
uh uh

get register coward

and better speak when you have an answer to the questions instead of polluting the forum with your nonsense


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Maestr0, XstatyK and 58 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