caon 13 Report post Posted January 31, 2014 (edited) Update:: for changing the coordinate automatically do use IMMO'S SMEXY AUTO VENDOR COORDINATES MOUSEOVER vendors Y coordinates You might wanna edit the bot path if you don't have the ExiledBot.exe.lnk shortcut on the desktop, and delete the 1st line. (or just create the shortcut to the desktop) How it (should) works: 1)You manually open the vendor dialogue 2)Mouseover Sell Item option 3)use hotkeys to update coordinates.ini and reload EB (if pausing) FileGetShortcut, %A_Desktop%\ExiledBot.exe.lnk, OutTarget, OutDir ; Assuming your shortcut(ExiledBot.exe.lnk) is on the vm's desktop. (Because all my scripts and bots are on the host) BotPath = %OutDir% ; Your bot directory generated above (eg; C:\Users\Exiled Bot Beta v0.15g). CurrPCprofile = %computername% IniRead, profile_bot, %BotPath%\Configuration\profile.ini, general, %CurrPCprofile% If profile_bot = ERROR IniRead, profile_bot, %BotPath%\Configuration\profile.ini, general, default IniRead, menu_offset, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, menu_offset_y BotReload = F11 TrayTip, Vendor Y Coordinates, Current EB profile use = %profile_bot%`nCtrl+Alt+1 for Nessa `nCtrl+Alt+2 for Greust `nCtrl+Alt+3 for Clarissa, 9000 ^!1:: MouseGetPos, posx, posp Net := posp - menu_offset IniWrite, %net%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_nessa Send {%BotReload%} TrayTip, Nessa, Y coordinates=%net% saved. new coordinates.ini reloaded. Press Ctrl+Alt+X to close this script...., 2000 return ^!2:: MouseGetPos, posx, posp Net := posp - menu_offset IniWrite, %net%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_greust Send {%BotReload%} TrayTip, Greust, Y coordinates=%net% saved. new coordinates.ini reloaded. Press Ctrl+Alt+X to close this script...., 2000 return ^!3:: MouseGetPos, posx, posp Net := posp - menu_offset IniWrite, %net%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_clarissa Send {%BotReload%} TrayTip, Clarissa, Y coordinates=%net% saved. new coordinates.ini reloaded. Press Ctrl+Alt+X to close this script...., 2000 return ^!x:: ExitApp You can edit the hotkey to your liking, the default are: Ctrl+Alt+1 : To update Nessa Y coordinates Ctrl+Alt+2 : To update Greust Y coordinates Ctrl+Alt+3 : To update Clarissa Y coordinates Ctrl+Alt+X : To exit script. Auto Vendor Coordinates Searcher (OUTDATED obviously ) How it (should) works: The scripts should run alongside with ExiledBot 1) Upon running it will reset all of your coordinates to avoid clicking other line, 2) it will then automatically search the coordinates while you're on the vendors dialogue. (so it will need to wait few seconds only on the first time visiting vendor) 3) The script will reload your coordinates file the script created with my bot and AHKs on the host and to be run on VM. and with Default Attack skill on the middle mouse skill shortcut. FileGetShortcut, %A_Desktop%\ExiledBot.exe.lnk, OutTarget, OutDir ; Assuming your shortcut(ExiledBot.exe.lnk) is on the vm's desktop. (Because all my scripts and bots are on the host) BotPath = %OutDir% ; Your bot directory generated above (eg; C:\Users\Exiled Bot Beta v0.15b). CurrPCprofile = %computername% IniRead, profile_bot, %BotPath%\Configuration\profile.ini, general, %CurrPCprofile% ; Grabbing your last loaded profile. If profile_bot = ERROR IniRead, profile_bot, %BotPath%\Configuration\profile.ini, general, default IniRead, menu_offset, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, menu_offset_y Default := 46 - menu_offset ; Coordinate to avoid clicking anything on vendor dialogue BotReload = F11 PauseRun = F12 Offtown = 0x95F5F9 ; Assuming your "default attack" skill is on the middlemouse shortcut ;Resetting all coordinates to default IniWrite, %default%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_nessa IniWrite, %default%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_greust IniWrite, %default%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_clarissa WinActivate, Path of Exile Send {%BotReload%} Loop { IfWinActive Path of Exile PixelSearch, posx, posy, 614, 554, 642, 582, %Offtown% If Errorlevel = 0 Sleep 2000 Else { ImageSearch, posx, posy, 371, 26, 434, 49, *30 clarissa.bmp If Errorlevel = 0 { ImageSearch, posx, posp, 371, 57, 447, 282, *100 sell.bmp If Errorlevel = 0 { Net := posp - menu_offset IniWrite, %net%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_clarissa Send {%BotReload%} } Else sleep 200 } ImageSearch, posx, posy, 386, 26, 434, 49, *30 greust.bmp If Errorlevel = 0 { ImageSearch, posx, posp, 371, 57, 447, 282, *100 sell.bmp If Errorlevel = 0 { Net := posp - menu_offset IniWrite, %net%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_greust Send {%BotReload%} } Else sleep 200 } ImageSearch, posx, posy, 386, 26, 434, 49, *30 nessa.bmp If Errorlevel = 0 { ImageSearch, posx, posp, 371, 57, 447, 282, *100 sell.bmp If Errorlevel = 0 { Net := posp - menu_offset IniWrite, %net%, %BotPath%\Configuration\%profile_bot%\coordinates.ini, menu, npc_sell_button_y_nessa Send {%BotReload%} } Else sleep 200 } } } place the images in the same folder as the script or download it from here: https://dl.dropboxusercontent.com/u/18936687/Vendor.rar clarissa.bmp greust.bmp nessa.bmp sell.bmp Edited August 27, 2014 by caon 9 Share this post Link to post Share on other sites
alkpone 1000000 Report post Posted January 31, 2014 Wow I'm very impressed. Dunno if this works but it looks so epic !! Too bad I can't do the same easily in C++. Share this post Link to post Share on other sites
caon 13 Report post Posted January 31, 2014 lol demm noob script. still a loooong way to go. Share this post Link to post Share on other sites
caon 13 Report post Posted January 31, 2014 Works like a charm, good job! You should have mentioned how you're script works For someone without any understandings to autohotkey it may be hard to figure out that you have to visit a vendor and actually click it manually. Furthermore, it is good to know that you reset the coordinates for all vendors.. Even if you wanted to update only the coordinates for one vendor! But all in all, very sexy idea, and like i said before: its working like a charm lol yeah. the resetting was just to avoid the bot clicking anything else when running. if you run the script while the bot is running it will automatically triggered when it visits the vendors. and reload the bot .ini files. (might need to wait a few seconds) and im looking forward to someone re-scripting this. 1 Share this post Link to post Share on other sites
Vamp2613 0 Report post Posted January 31, 2014 Great work Caon. Saved me lots of time with new characters Share this post Link to post Share on other sites
Dstack 0 Report post Posted February 1, 2014 Sweeeet! No more re-editing the coordinates on every bots! Share this post Link to post Share on other sites
caon 13 Report post Posted February 16, 2014 UPDATED for profile per PC. Share this post Link to post Share on other sites
Dstack 0 Report post Posted February 16, 2014 I know i might be asking too much but can you make another version that doesnt need to always run? so thats mean the script doesnt have to reset all the coordinates upon running (because you stated its just to avoid the bot from clicking other things) What im trying to say is tat i want to 1) run the script 2) manually open vendors dialogue 3) auto get coordinates and update coordinates.ini 4) close the script 5) manually restart the bot. my vmware need all the resources it can get so i cant afford another ahk being open Share this post Link to post Share on other sites
caon 13 Report post Posted February 16, 2014 ADDED vendor coordinates update on manual mouseover 1 Share this post Link to post Share on other sites
Dstack 0 Report post Posted February 16, 2014 ADDED vendor coordinates update on manual mouseover even better! and its working well. for me atleast. thankss a bunchhh! Share this post Link to post Share on other sites
bjc300 0 Report post Posted February 17, 2014 I am a noob to all this and have not used autohotkey before. I run the scrip and when the bot goes to the vendor it sits there with the dialog open but does not click anything. What did I do wrong? Share this post Link to post Share on other sites
BrownL 0 Report post Posted February 17, 2014 nice one! both works well for me. I am a noob to all this and have not used autohotkey before. I run the scrip and when the bot goes to the vendor it sits there with the dialog open but does not click anything. What did I do wrong? the bot may need to wait few second upon entering vendor to detect the img, but if it didnt detect any you might need to replace the img files with a new print screen. but i would recommend you to use the mouseover script. its much more simpler and only took seconds to update the coordinates Share this post Link to post Share on other sites
caon 13 Report post Posted February 17, 2014 I am a noob to all this and have not used autohotkey before. I run the scrip and when the bot goes to the vendor it sits there with the dialog open but does not click anything. What did I do wrong? aah yes, the script written with my default attack skill on the mousewheel to detect if its intown or not. so the pixel color might be different from yours to begin with. (imma try to put something later on to generate pixelcolor upon running the script) so, its either the pixlcolr or you need to replace the image file with your new one. (although i already tested on both ultra crappy graphic and highest setting possible, yours might be different) and like BrownL said, you can use the mouseover script for the time being because it doesnt contain any loop or pxl/imgsearch and its more straightforward in retrieving the y-coordinates. Share this post Link to post Share on other sites
hamncheese 8 Report post Posted February 20, 2014 caon you are genius man !great job on the mouseover Coordinates Thumbs up ! Share this post Link to post Share on other sites
alkpone 1000000 Report post Posted March 14, 2014 No way to have the correct values to pop in a msgbox ? Share this post Link to post Share on other sites
alkpone 1000000 Report post Posted March 14, 2014 Thanks !! Share this post Link to post Share on other sites
Tweek 3 Report post Posted March 14, 2014 Alk, are you going to use this? Share this post Link to post Share on other sites
Mesosneaky 0 Report post Posted March 22, 2014 (edited) What am I doing wrong? I am getting an "Current EB profile use = ERROR". I had to edit and put in directory manually. Couldn't auto find my exilebot shortcut. Edited March 22, 2014 by Mesosneaky Share this post Link to post Share on other sites
bonebox 36 Report post Posted May 23, 2014 (edited) Excellent job as ever Immo Suggest a link across to this from a pinned post in the guides, this question gets asked SO often it's almost like a looping shoutbox script itself! And Alk, not that I wish to make this all for nothing for Immo, but it would make so much sense to have the same idea integrated into the bot Edited May 23, 2014 by bonebox Share this post Link to post Share on other sites
bbones 3 Report post Posted June 9, 2014 Just tested immo's work and WOW! So simple and effective, working great so far, really appreciated Share this post Link to post Share on other sites
CoderX 2 Report post Posted July 21, 2014 hmmm doesn't appear to work under Win8.1 64bits 800 x 600 windwed selected any ideas? Share this post Link to post Share on other sites
IeUz 0 Report post Posted July 24, 2014 (edited) I think the exe. broke with the patch. edit, just update the pointer in the config file to: baseMgrPtr=0x8002c4 Edited July 24, 2014 by IeUz Share this post Link to post Share on other sites
IeUz 0 Report post Posted August 21, 2014 Updated the offsets, but does not seem to be working . . . Share this post Link to post Share on other sites
IeUz 0 Report post Posted August 22, 2014 Thank you immo! Share this post Link to post Share on other sites
IeUz 0 Report post Posted August 24, 2014 (edited) Immo, the coordinates are not being auto update in Act2, in Act1 everything worked fine, not sure about Act3. edit, Act3 is working. updated, working with the latest version of PoE (1.1.5b) Auto.Coordinates.zip I've just adopted caons idea & made a new working coord script... You just need to extract the zip file and run the script (vendor.exe)When starting for the first time you are prompted to enter your bots directory! Do so... Now just bot like you normally would do, if any coordinates changes (due to queststate changing or whatever) the script detects the new coordinates and updates your bots (it chooses your last used profile) coordinates.ini! If you wanna update your coordinates manually, you just need to visit any of the three vendors (clarissa, greust or nessa) Also if your coords change you'll get a quick traytip notification! Enjoy! ...hopefully this tiresome topic now disappears at last! Edited August 24, 2014 by IeUz Share this post Link to post Share on other sites