REfine enchants menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    REfine enchants

    Here is some automation for "Enchant Refinery".

    It uses simple "Imagesearch" + "array" and helps you get rid your Rank2 - Rank4 trash. Check stuff behind link.

    Source is Autoit so its very easy to check. Imagesearch itself contains one .dll, but its widely used and no virus found.

    You can easily add "options" to it, like using Radiants only for Radiant -enchants, but you must then edit script. Just arrange your inventory so there is n unwanted refine stones for waste.

    Not needed.

    ...and Source of course...

    Code:
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Icon=E:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\VCWizards\AppWiz\MFC\Control\templates\1046\root.ico
    #AutoIt3Wrapper_Outfile=mykeys.exe
    #AutoIt3Wrapper_Outfile_x64=refine_array.exe
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #cs
    	AutoIt Version: 3.0
    	Language:       English
    	Platform:       Win xx
    	Author:         Rotten
    	Ver. 	1.0
    
    	Need:
    
    	Included:
    	.exe and .Au3 -source
    
    	Tested:
    	Worked, refines.. LOOK images folder
    
    	Problems:
    
    
    	Script Function:
    
    	HOTKEYS,
    
    	Shift+P, PAUSE/Break, pause
    
    	Alt+LShift+T, Terminata script
    
    	Alt+LShift+D, shows just pop up.
    #ce
    
    ; Press Esc to terminate script, Pause/Break to "pause"
    #include-once
    #include <MsgBoxConstants.au3>
    #include <File.au3>
    #include <Array.au3>
    #include <ImageSearch.au3>
    #include <winApiProc.au3>
    Global $Paused, $aquaM, $perid, $resonance1, $resonance2, $white_pearl
    $aquaM = "aquamarine.png"
    $perid = "peridot.png"
    $resonance1 = "minor_resonance_stone.png"
    $resonance2 = "lesser_resonance_stone.png"
    $white_pearl = "white_pearl.png"
    $trash1 = "trash1.png"
    $trash2 = "trash2.png"
    $trash3 = "trash3.png"
    $trash4 = "trash4.png"
    $trash5 = "trash5.png"
    $trash6 = "trash6.png"
    $refine_win = "item_refinement.png"
    $refine_button = "refine_gray.png"
    $fill_all = "fill_all_empty_slots.png"
    $ward_cancel = "ward_upgrade.png"
    $done = "done.png"
    $buttons_warnings = "\buttons_warnings\"
    $refine_images = "\refine_images\"
    $warning_opal = "warning_opal.png"
    $warning_opal_OK = "warning_opal_OK_button.png"
    HotKeySet("+p", "TogglePause")
    HotKeySet("+!t", "Terminate") ; shift alt t, termina
    HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d vvv
    Opt("WinTitleMatchMode", "2") ; Helps With Getting The Window Information...
    ;;;; Body of program would go here ;;;;
    ;start_refinery()
    TogglePause()
    WinActivate("Neverwinter")
    Local $xfill = 0, $yfill = 0, $xrefine = 0, $yrefine = 0
    $var = _FileListToArray(@ScriptDir & $refine_images, "*.png") ;this makes list for active windows by name
    _ImageSearch(@ScriptDir & $buttons_warnings & $fill_all, 1, $xfill, $yfill, 10)
    _ImageSearch(@ScriptDir & $buttons_warnings & $refine_button, 1, $xrefine, $yrefine, 10)
    ;$xrefine = $xfill + 370
    ;$yrefine = $yfill - 50
    While 1 ; all parts are in "loop" so scriipt looks allways if new stuff drops in
    	While 1
    		If Not WinExists("Neverwinter") Then
    			TogglePause()
    		EndIf
    		;MsgBox(0, "ogma", $xrefine & "/" & $yrefine)
    		MouseMove($xfill, $yfill, 1)
    		Sleep(50)
    		MouseClick("LEFT")
    		Sleep(250)
    		For $i = 1 To $var[0] ; we run until list is end
    			$Refine = ($var[$i])
    			If _checkForImage1($Refine) = 1 Then
    				_checkForImage($Refine)
    				Local $x = 0, $y = 0
    				If _ImageSearch(@ScriptDir & $buttons_warnings & $warning_opal, 1, $x, $y, 10) = 1 Then
    					Local $x = 0, $y = 0
    					_ImageSearch(@ScriptDir & $buttons_warnings & $warning_opal_OK, 1, $x, $y, 10)
    					MouseMove($x, $y, 1)
    					Sleep(50)
    					MouseClick("LEFT", $x, $y, 2, 5)
    					Sleep(50)
    					ExitLoop ; is this needed
    				EndIf
    				ExitLoop
    			Else
    				ContinueLoop
    			EndIf
    		Next
    		Sleep(5)
    		MouseMove($xrefine, $yrefine, 1)
    		Sleep(30)
    		MouseClick("LEFT")
    		Sleep(Random(2200, 2300))
    		;Else
    		;TogglePause()
    		;EndIf
    	WEnd
    	Sleep(100)
    WEnd
    Func _checkForImage1($iRefine)
    	Local $y = 0, $x = 0
    	Local $search = _ImageSearchArea(@ScriptDir & $refine_images & $iRefine, 1, 12, 35, 533, 822, $x, $y, 10)
    	If $search = 1 Then
    		Return 1
    
    	Else
    		Return 0
    	EndIf
    
    EndFunc   ;==>_checkForImage1
    
    
    Func _checkForImage($iRefine)
    	Local $y = 0, $x = 0
    	Local $search = _ImageSearchArea(@ScriptDir & $refine_images & $iRefine, 1, 12, 35, 533, 822, $x, $y, 10)
    	If $search = 1 Then
    		MouseMove($x, $y, 1)
    		Sleep(50)
    		MouseClick("LEFT", $x, $y, 2, 5)
    		Sleep(50)
    	Else
    		Sleep(50)
    	EndIf
    EndFunc   ;==>_checkForImage
    Func actMouze()
    	$xrefine = $xfill + 324
    	$yrefine = $yfill - 63
    	MouseMove($xrefine, $yrefine)
    	Sleep(500)
    	MouseClick("LEFT")
    	Sleep(50)
    EndFunc   ;==>actMouze
    Func start_refinery()
    	Local $y = 0, $x = 0
    	Local $search = _ImageSearch(@ScriptDir & "\" & $refine_win, 1, $x, $y, 10)
    	TogglePause()
    	If $search = 1 Then
    		Sleep(5000)
    	Else
    		Exit
    	EndIf
    EndFunc   ;==>start_refinery
    Func IsVisible($handle)
    	If BitAND(WinGetState($handle), 2) Then
    		Return 1
    	Else
    		Return 0
    	EndIf
    EndFunc   ;==>IsVisible
    
    ;;;;;;;;
    Func TogglePause()
    	$Paused = Not $Paused
    	While $Paused
    		Sleep(100)
    		ToolTip('Script is "Paused"', 5, 5)
    	WEnd
    	ToolTip("")
    EndFunc   ;==>TogglePause
    Func Terminate()
    	#Region --- CodeWizard generated code Start ---
    	;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Critical, Timeout=5 ss, Miscellaneous=Top-most attribute
    	If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer
    	$iMsgBoxAnswer = MsgBox(262160, "Note", "Script is about to Terminate.", 5)
    	Select
    		Case $iMsgBoxAnswer = -1 ;Timeout
    		Case Else ;OK
    	EndSelect
    	#EndRegion --- CodeWizard generated code Start ---
    	Exit 0
    EndFunc   ;==>Terminate
    Func ShowMessage()
    	MsgBox(4096, "", "This is a message.")
    EndFunc   ;==>ShowMessage
    Last edited by RottenMind; 08-01-2015 at 01:58 PM.

    REfine enchants
  2. #2
    iuenu's Avatar Private
    Reputation
    1
    Join Date
    Feb 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your Neverwinter window must be at least ½ from 1920*1080 resolution.
    so does this need to run at 1920? I am on 1680 x 1050 I get script is "Paused" and shift P does not seem to un-Pause it while in game. If I jump to another window I get it to un-pause but the script never does anything.
    I have game in upper left corner of screen and refinement window is also up in upper left corner.
    Any Ideas what I have done wrong?

    Looks like a kick butt little script however. Thanks for all your scripts you have released.

  3. #3
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by iuenu View Post
    so does this need to run at 1920? I am on 1680 x 1050 I get script is "Paused" and shift P does not seem to un-Pause it while in game. If I jump to another window I get it to un-pause but the script never does anything.
    I have game in upper left corner of screen and refinement window is also up in upper left corner.
    Any Ideas what I have done wrong?

    Looks like a kick butt little script however. Thanks for all your scripts you have released.
    Make NW screen "half" of your desktop, open "REfine" window and move it top left, Script start "paused", Shift-P "unpause".

    If "image_search" cant find images on screen then script do nothing so make new images.

    Script logic is simple to understand and I refined with it hours, .

  4. #4
    iuenu's Avatar Private
    Reputation
    1
    Join Date
    Feb 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I rebuilt the picture library and then found out if I click on desktop and hit sift p it will un-pause the script and move between Fill all empty slots and refine while neverwinter is not active window.

    But it will not allow me to unpause and run while neverwinter is active.

    It looks to me like neverwinter is locking out many of the background operations while that window is active if that is clear. I will try to test on a second pc later tonight to see if it is something odd about this pc or some other problem is going on.

    Thanks again.

  5. #5
    electropica's Avatar Member
    Reputation
    3
    Join Date
    Sep 2013
    Posts
    117
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On what do you refine enchant with this script ?
    If it use image search how arrange our inventory will change something ?

  6. #6
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by electropica View Post
    On what do you refine enchant with this script ?
    If it use image search how arrange our inventory will change something ?
    Look link, check images.

    Script uses imagesearch to find given images and do actions what are written on it.

    First it looks images for buttons, "fill all" , "Refine" and save their locations, then it look refine_images and if find match then click matched image and click refine button and then again fill all,search refine images match... etc.

    Again look script, look images and figure out.

    Arrange your inventory that it NOT contain items what you dont want REFINE and put "refine window" top left corner on client screen.... then take beer or coffee look how trash are feeded away...

    ps. Added few pictures, look first post and LINK, "How To".
    Last edited by RottenMind; 09-30-2014 at 04:04 AM.

  7. #7
    iuenu's Avatar Private
    Reputation
    1
    Join Date
    Feb 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RottenMind View Post
    Look link, check images.

    Script uses imagesearch to find given images and do actions what are written on it.

    First it looks images for buttons, "fill all" , "Refine" and save their locations, then it look refine_images and if find match then click matched image and click refine button and then again fill all,search refine images match... etc.

    Again look script, look images and figure out.

    Arrange your inventory that it NOT contain items what you dont want REFINE and put "refine window" top left corner on client screen.... then take beer or coffee look how trash are feeded away...

    ps. Added few pictures, look first post and LINK, "How To".
    Got it working. my problem was I did not Right Click on Refine_Array and run as Administrator. after that I am able to pause and unpause script from inside Neverwinter and it clicks thru....

    now time to open 500 boxes and let it do some work. Thanks again for the script and the help.

  8. #8
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by iuenu View Post
    Got it working. my problem was I did not Right Click on Refine_Array and run as Administrator. after that I am able to pause and unpause script from inside Neverwinter and it clicks thru....

    now time to open 500 boxes and let it do some work. Thanks again for the script and the help.
    OMG, "Run as ADMIN", that´s it.

    I use this stuff on my VMware -machine, where "security" is lowest so it never ask permissions.

  9. #9
    luna2014's Avatar Private
    Reputation
    1
    Join Date
    Oct 2014
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello Rotten!
    first thank you for the script and other tips (in astral too )

    I can't seem to make this work for me, it always click in the upper left corner of the screen, I followed the instruction and tried to change the screen but to no avail.

    My screen size is 1366x768
    any ideas to enlighten me with the prob?

  10. #10
    Tashia's Avatar Member
    Reputation
    5
    Join Date
    Apr 2009
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by luna2014 View Post
    Hello Rotten!
    first thank you for the script and other tips (in astral too )

    I can't seem to make this work for me, it always click in the upper left corner of the screen, I followed the instruction and tried to change the screen but to no avail.

    My screen size is 1366x768
    any ideas to enlighten me with the prob?
    Same thing happening to me, I'm running 1920x1080.
    The cursor always moves to the top left corner and starts clicking there...
    Tried to change pictures also, run as admin...no success.

  11. #11
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tashia View Post
    Same thing happening to me, I'm running 1920x1080.
    The cursor always moves to the top left corner and starts clicking there...
    Tried to change pictures also, run as admin...no success.
    Interesting, my screen resolution in VmWare is 1560x870 and host PC has 1920x1080, game screen resolution for game window is done that way that refine windows inside game client windows will not change size so images in refine windows are same size, simple.

    Also game client windows is positioned Top left on desktop and refine windows is also Top left inside game client windows.

    ...and you must first open refine windows (look pictures) and then run script if "imagesearch" fails it act as you wrote up there.

    Move and stretch windows, restart script... if fails make new images or new script from scratch.

    (and "Run as Admin", what you do)

  12. #12
    Tashia's Avatar Member
    Reputation
    5
    Join Date
    Apr 2009
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I managed to make it work...but how can I change the time it waits before pressing the "Refine" button??

    I want to make it like this: move cursor to refine button wait -> XXX ms -> press button

  13. #13
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tashia View Post
    Thanks, I managed to make it work...but how can I change the time it waits before pressing the "Refine" button??

    I want to make it like this: move cursor to refine button wait -> XXX ms -> press button
    Yes, rewrite script and then it do things you like.

    Just get "Autoit" edit source and compile it.

  14. #14
    packetlossc's Avatar Member
    Reputation
    2
    Join Date
    Jul 2012
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone have this working with mod6 for some reason mine stopped working, it seems to have a problem finding fill all empty slots. I tried a new screenshot but it still doesn't click on that. It does find the refine button. Not sure what changed that would have messed this up.

  15. #15
    RottenMind's Avatar Knight-Lieutenant
    Reputation
    13
    Join Date
    Aug 2013
    Posts
    322
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by packetlossc View Post
    Anyone have this working with mod6 for some reason mine stopped working, it seems to have a problem finding fill all empty slots. I tried a new screenshot but it still doesn't click on that. It does find the refine button. Not sure what changed that would have messed this up.
    IDK, I need it again soon... so maybe I find problem, did you run it as "Admin"?

Page 1 of 2 12 LastLast

Similar Threads

  1. Enchanting guide
    By Cush in forum World of Warcraft Guides
    Replies: 4
    Last Post: 06-01-2007, 05:20 PM
  2. Enchanting Guide 1-300
    By Matt in forum World of Warcraft Guides
    Replies: 4
    Last Post: 09-09-2006, 02:42 AM
  3. Enchanting!
    By Amedis in forum World of Warcraft Guides
    Replies: 1
    Last Post: 07-26-2006, 02:56 PM
  4. Use more than one herb/enchant/etc bag
    By Matt in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 04-07-2006, 07:29 AM
All times are GMT -5. The time now is 09:27 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search