Very nice script, would be worth looking into making this a community project to add the missing flasks as well as possibly a pickit function.
Very nice script, would be worth looking into making this a community project to add the missing flasks as well as possibly a pickit function.
Last edited by naut333; 07-29-2018 at 02:48 AM.
I took the liberty of cleaning up the code considerably.
I fixed granite and basalt flasks sharing the same logic, they will now both properly be used.
Added bismuth flask as it was missing previously.
Decreased multiple delays
Cleaned up the code - because no offence but my eyes were bleeding lol... now much cleaner to look at. This resulted in eliminating about 20,000 characters which equated to about 15% of the code, which will also help with performance. Hopefully this makes it easier for other users to view it and see what additions of their own they would like to try to tackle.
If you wish to do so, I recommend downloading notepad++ as it makes the code significantly nicer to look at. Set Language to C++.
Autopot Revised Edition:
AutoPot Revised.zip
All credit goes to original authors.
Last edited by naut333; 07-29-2018 at 12:02 AM.
AHK pickit code
------- PixelSearch, FoundX, FoundY, 700, 300, 1230, 730, 0xEFC1EF, 10, Fast ------- find this lineCode:#IfWinActive, Path of Exile ahk_class Direct3DWindowClass f2:: { Send,{Blind}{Lalt down} PixelSearch, FoundX, FoundY, 700, 300, 1230, 730, 0xEFC1EF, 10, Fast If ErrorLevel = 0 click %FoundX%, %FoundY% Send,{Lalt up} Sleep, 500 }
------------- 700, 300, 1230, 730 -------- these 4 numbers relate rectangle which you would like to search inside of.
(700, 300) = (x1, y1) = top left corner
(1230, 730) = (x2, y2) = bottom right corner
--------- 0xEFC1EF ------ this relates to the hex value for the colour you would like to click, it can be found using the WindowSpy tool included with autohotkey.
I will work on encorporating this into the script, however I will post this here incase anyone wants to beat me to it
Last edited by naut333; 07-29-2018 at 05:32 PM.
These threads seem to get littered quickly with requests to create a 64 bit version. To put it simply this cannot be done without a major amount of work, the entire basis of the script would need to be changed.
I will show some info below to explain so this does not just seem like a cop-out.
The code below is found within the autopot AutoHotKey script.
You will notice advapi32.dll appears frequently throughout this code.Code:FileMD5( sFile="", cSz=4 ) { ; by SKAN www.autohotkey.com/community/viewtopic.php?t=64211 cSz := (cSz<0||cSz>8) ? 2**22 : 2**(18+cSz), VarSetCapacity( Buffer,cSz,0 ) ; 18-Jun-2009 hFil := DllCall( "CreateFile", Str,sFile,UInt,0x80000000, Int,3,Int,0,Int,3,Int,0,Int,0 ) IfLess,hFil,1, Return,hFil hMod := DllCall( "LoadLibrary", Str,"advapi32.dll" ) DllCall( "GetFileSizeEx", UInt,hFil, UInt,&Buffer ), fSz := NumGet( Buffer,0,"Int64" ) VarSetCapacity( MD5_CTX,104,0 ), DllCall( "advapi32\MD5Init", UInt,&MD5_CTX ) Loop % ( fSz//cSz + !!Mod( fSz,cSz ) ) DllCall( "ReadFile", UInt,hFil, UInt,&Buffer, UInt,cSz, UIntP,bytesRead, UInt,0 ) , DllCall( "advapi32\MD5Update", UInt,&MD5_CTX, UInt,&Buffer, UInt,bytesRead ) DllCall( "advapi32\MD5Final", UInt,&MD5_CTX ) DllCall( "CloseHandle", UInt,hFil ) Loop % StrLen( Hex:="123456789ABCDEF0" ) N := NumGet( MD5_CTX,87+A_Index,"Char"), MD5 .= SubStr(Hex,N>>4,1) . SubStr(Hex,N&15,1) Return MD5, DllCall( "FreeLibrary", UInt,hMod ) }
This particular section of code is used in combination with the offsets to gather information from the game, this can be seen when you hit debug and can view your health etc.
advapi32 stands for Advanced Application Programming Interface 32-bit
In summary, one of the major dll files used to communicate with the game is coded in 32 bit, without completely changing the method of communication with the game, it will stay 32 bit.
is it safe atm? ;/ i mean did any one got ban for it ? :P
Doesn't seem to make any difference at all what I do. Loading up the autopot gives me an instant crash with the message "Failed to obtain moduleBase or moduleSize for PID5152, script will now terminate".
As per previous comments, I am using the 32bit POE & I am on the global servers.
Could anyone advise what this error means & what I might be doing wrong?
This would be the first time me using Auto Flask Auto Scrip, what are some good settings to set this up, Im constantly getting logged out because of my bad settings.
Works great! Uses all of my flasks. Love the rework Naut, thank you very much.
Not sure what is causing this error.
Try running the script itself and see if it gives any particular errors when starting to run.
If it does please report them here.
If that runs without problems, then try compiling the exe yourself (right click the script and hit compile)
well ty so much for getting this update and working its a great help works great even after updates
is it really hard to get this to work with steam by chance?? the account i have lots of work into this league is on steam but i just started using global till things get settled.. and fig out.
i was using hud with limited player set up and i was fine no ban but its not working atm i can live without hud but auto pot is such more fun for me so ty