Page 1 of 1
AFK junk looting macro with set up
Posted: August 9th, 2008, 5:58 am
by iceband183
I wrote this one out to simplify setting up your afk junk looting delete. Simply open this, alt+tab to swg, move your mouse where you want to start deleting from, and left click. This version is Vista ready, and has a pause function. Enjoy.
; Script Start - Add your code below here
#RequireAdmin
#include <misc> ;Don't forget to add .au3 after misc
#include <GuiConstants> ;Don't forget to add .au3 after GuiConstants
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
Opt("MouseClickDragDelay", 100)
Sleep (500)
SplashTextOn("SETUP", "Please click where you want to delete from. ", 400, 100, -1, -1, 0, "Ariel", 17)
While 1
Sleep ( 100 )
If _IsPressed("01") Then
$pos = MouseGetPos()
ExitLoop
EndIf
WEnd
SplashOff()
$mainx = $pos[0]
$mainy = $pos[1]
Sleep ( 1000 )
While 1
MouseClick ( "right" , $mainx, $mainy )
Sleep(2000)
Send ( "{4}" )
Sleep(2000)
MouseClick ( "right" , $mainx, $mainy )
Sleep(500)
Send ( "{3}" )
Sleep(2000)
MouseClick ( "right" , $mainx, $mainy )
Sleep(500)
Send ( "{2}" )
Sleep(2000)
MouseClick ( "right" , $mainx, $mainy )
Sleep(500)
Send ( "{4}" )
Sleep(2000)
MouseClick ( "right" , $mainx, $mainy )
Sleep(500)
Send ( "{3}" )
Sleep(2000)
MouseClick ( "right" , $mainx, $mainy )
Sleep(500)
Send ( "{2}" )
Sleep (500)
WEnd
Func TogglePause() ;Following script makes the "pause" option work correctly
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
Posted: September 11th, 2008, 11:23 am
by hillas
yay this works is the currently im using atm
Posted: September 11th, 2008, 10:41 pm
by ipire
Nothingt new under the carpet there....
no much need to make a junc loot code easier
as copy & paste is still the same.
But OK....U isolated the deletion macro
afk looting macro
Posted: September 22nd, 2008, 2:27 am
by swgmaximaos
i try to use it but i keep getting erroers is there someone nice enought to write one like RE one u just download and i works?
Posted: October 17th, 2008, 9:59 pm
by yoda1234
Be nice how Auto It works and what to do to make the script work step by step. Or just make a EXE version of it so for those of us who know nothing about scripting or the language would be easier .
Posted: February 5th, 2009, 2:05 pm
by jetli007
First off.. this is a great script! I love how you only have to click on the spot you want to start deleting from.. fantastic job!!
Now.. my dilema.. has anyone run into occurrences where a piece of armor/clothing has been equipped as an appearance piece?
I have tweaked and tweaked the script on the sleep time to see if that would cure my prob.. but the only thing I have come up with so far is to equip something in every slot for the appearance part (which I do not want to have to do).
Any thoughts/suggestions?
Thanks in advance
Posted: February 5th, 2009, 10:56 pm
by this_is_my_name
I don't understand what's so hard about writing a simple script that right clicks, presses a number, right clicks, presses another number, etc. until its gone through the options.
$a = 1
while $a = 1
Sleep(5000)
MouseClick( "right" )
Send ( "{4}" )
Send ( "{3}" )
Send ( "{2}" )
Sleep(200)
WEnd
Add in another one to compensate for the new Appearance tab options, wait for your inventory to be filled with all of the possible stacking junk items and then run the script (with your mouse hovered the first item that doesn't stack.)
So simply put:
(1) Junk loot until you've gotten all the stuff that stacks.
(2) Re-arrange your inventory so the stuff that stacks is bunched up all together and the very next thing you loot WILL NOT STACK.
(3) Alt+Tab over, run the script.
(4) Hover your mouse over the spot that the non-stacking item will appear.
(5) done.
Coords? Pixel recognition? Why would you even need that for something as simple as deleting junk loot.
Posted: February 6th, 2009, 12:20 am
by jetli007
I'll try your script this_is_my_name, but that still does not answer my question if anyone has run into this issue with the items being equipped in the appearance tab
Posted: February 9th, 2009, 4:14 am
by cuervogold
this_is_my_name wrote:I don't understand what's so hard about writing a simple script that right clicks, presses a number, right clicks, presses another number, etc. until its gone through the options.
$a = 1
while $a = 1
Sleep(5000)
MouseClick( "right" )
Send ( "{4}" )
Send ( "{3}" )
Send ( "{2}" )
Sleep(200)
WEnd
Add in another one to compensate for the new Appearance tab options, wait for your inventory to be filled with all of the possible stacking junk items and then run the script (with your mouse hovered the first item that doesn't stack.)
So simply put:
(1) Junk loot until you've gotten all the stuff that stacks.
(2) Re-arrange your inventory so the stuff that stacks is bunched up all together and the very next thing you loot WILL NOT STACK.
(3) Alt+Tab over, run the script.
(4) Hover your mouse over the spot that the non-stacking item will appear.
(5) done.
Coords? Pixel recognition? Why would you even need that for something as simple as deleting junk loot.
The simple part is your script will fail on several items and you need to add a 5 to an outside script and even a 6 to a delete macro that is running inside of a building.
Posted: February 9th, 2009, 8:41 am
by indianaguy19
jetli007 wrote:I'll try your script this_is_my_name, but that still does not answer my question if anyone has run into this issue with the items being equipped in the appearance tab
You either need to have items equipped in all spots or get another person or trial account to hold agro on you so you arent able to equip appearance items, and yes im doing this right now.
Posted: February 9th, 2009, 10:49 am
by jetli007
indianaguy19 wrote:jetli007 wrote:I'll try your script this_is_my_name, but that still does not answer my question if anyone has run into this issue with the items being equipped in the appearance tab
You either need to have items equipped in all spots or get another person or trial account to hold agro on you so you arent able to equip appearance items, and yes im doing this right now.
Ya, I finally just took a bunch of jewelry, armor, etc and equipped it all in the appearance tab. So far, it's working ok. Although, I woke up this morning after a full nite of afk junk loot farming and my backpack was unequipped.. gahh! lol
Thanks for the response Indianaguy!