Ok I think this should do the trick!

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

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...