For some reason it wont work for me, the mousebutton hovers over every item ,but it does not click/equip it, help?
For some reason it wont work for me, the mousebutton hovers over every item ,but it does not click/equip it, help?
it's not resolution dependant, i tested if on some widescreen resolutions in case of 16:9 aspect ratio and it was working fine for me,
1) check letterbox option in options
2) look in script for and try to change part in italic font,
in first version (which worked when g12 pressed)
if IsLetterbox == "X" then
MinVal_X = {48400, 50600, 51800, 53500, 55200, 56700, 58500, 60200, 61800, 63500}
MaxVal_X = {49400, 51000, 52700, 54300, 56000, 57700, 59300, 61000, 62700, 64300}
MinVal_Y = {35700, 38500, 41000, 43800, 46400, 48800}
MaxVal_Y = {37700, 39800, 42500, 45000, 47700, 50200}
else
MinVal_X = {46600, 48400, 50300, 52100, 53900, 55800, 57500, 59500, 61300, 63100}
MaxVal_X = {47600, 49500, 51300, 53200, 55100, 56900, 58800, 60500, 62500, 64200}
MinVal_Y = {36200, 39000, 41800, 44800, 47800, 50500}
MaxVal_Y = {37300, 40500, 43500, 46500, 49450, 52100}
end
in my version
if IsLetterbox == "X" then
MinVal_X = {48400, 50600, 51800, 53500, 55200, 56700, 58500, 60200, 61800, 63500}
MaxVal_X = {49400, 51000, 52700, 54300, 56000, 57700, 59300, 61000, 62700, 64300}
MinVal_Y = {35700, 38500, 41000, 43800, 46400, 48800}
MaxVal_Y = {37700, 39800, 42500, 45000, 47700, 50200}
else
MinVal_X = {48933, 50610, 52351, 53951, 55630, 57301, 58975, 60580, 62253, 63930}
MaxVal_X = {48938, 50614, 52353, 53958, 55633, 57304, 58979, 60482, 62256, 63934}
MinVal_Y = {36200, 39000, 41800, 44800, 48461, 51561}
MaxVal_Y = {37700, 40500, 43500, 46500, 48468, 51566}
end
3) if nothing above will help then press g2 button and you'll see coordinates on keyboard display where mouse pointer is
and change italic part from the second case (coords are from the ~ center of the cell)
Do you use any other modifier for switching rings? by default it's ALT button. If it's not ALT you have to change "lalt" to another modifier in script
Possible modifiers:
Don't really know what could be the reason of it. What is your ping?Code:"lshift" "rshift" "lctrl" "lalt" "ralt" "rctrl" "lctrl"
maybe it'll help try to change 100 to a bigger value like 200-300 to test if it'll work at all for you,
--Mouse right click
PressAndReleaseMouseButton(3)
Sleep(100);
And what version of script do you use?
Last edited by sn4rk; 07-10-2012 at 09:45 AM.
Thanks this work for me !!
Someone please do a Razer Naga version =(
edit: figured it out.
Last edited by patula; 07-11-2012 at 01:39 AM.
Thanks, +rep!
Finally my g15 is not useless How do you add extra items because I got MF quiver
Last edited by Corliss381; 07-11-2012 at 01:54 AM.
There is a part in my 1st post - How to add, remove or change items
so basically you have to add a line EquipItemInventory(X, Y, Z, Letterbox, Random)
Let's the quiver be in the top left corner of your bag so you'll have to add a line in script - EquipItemInventory(1, 1, 2, Letterbox, Random)
Impossible. I have naga too but the soft of this mouse doesn't support lua language. So there is no opportunity to write a script fot it,
Hey I had a question about this, so I got it to work almost perfectly for me but I had a little quality of life issues that I tried to fix but didn't figure out any solutions. So basically if I am holding down my left click to run and I press the macro, it will switch everything but not the alt modifier items like off hand and ring. The same thing happens if I happen to be moving the mouse while the script is active (which I know you said not to do, but I sometimes do it on accident and it mixes all my gear up). I have seen other programs and scripts work fine while left clicking and moving the mouse so I am assuming it should be possible.
I am curious about these few lines and what exactly they do:
I figure they have something to do with the alt modifiers which is what I am having problems with so I tried lowering the delay and that didn't help, but I also noticed that 4 line section is repeated twice at the end of the code, so is that really necessary? Or can it just be in there once?if Modify then
ReleaseKey(Modify)
Sleep(50);
end
@noremac13
Show your equip part of the script so i can check it. maybe smth wrong is there (possibly with modifiers) And what modifier do you use in game?
About moving mouse while executing script - the script right clicks cells with the coordinates written in the script so if you move your mouse equip sequence will be messed up. So it's not possible to change something that will execute it perfectly while you move your mouse pointer. here you can only try to lower time between equiping items so maybe it will help you a bit by speeding up the process of equiping items
Modifiers are defined in equip part of the script as an exampleCode:MoveMouseTo(MouseX, MouseY) if Modify then PressKey(Modify) Sleep(50); end --Mouse right click PressAndReleaseMouseButton(3) Sleep(100); if Modify then ReleaseKey(Modify) Sleep(50); end end
EquipItemInventory(3, 2, 1, Letterbox, Random, "lalt")
so here i used left alt modifier to change ring in my example of script
In case of lowering sleep interval means you have low ping or if ping is high you have to increase sleep (script will work more slowly)
Last edited by sn4rk; 07-11-2012 at 07:30 AM.
Yeah I already turned the delay times way down to like 10-15 ms to make the swap almost instant, and it swaps all the gear fine except for the offhand (which requires the alt modifier). Since it only messes up on the item that uses alt I think it has something to do with the additional delay when a modifier is used, but should that part be repeated twice? Isn't it adding one 50ms delay with the first one and then another 50ms delay with the second one?
oh i get it. yeah maybe the 2nd isn't needed, but i dont whink it will solve the problem. the 2nd seems to do nothing as it is executed after hte script and do nothing except delay. (it's not written by me and i just add smth to feat it more for me)
i ask again show (or double check yourself) the equip quiever line of the script - maybe smth wrong is there? The mod is written like in my example? "lalt" - with quotes? or just post the whole script so i could test it by myself and say if it works for me
Last edited by sn4rk; 07-12-2012 at 02:22 AM.
It works fine if I don't touch anything else, but if I am holding my left click down if I am running or something it wont switch the shield but switches everything else. The same happens if I move my mouse at all, it will equip everything else properly but not the shield. Just by looking at it I am fairly sure it has to do with the delay between the alt being pressed and when it actually clicks the mouse, since I can move the mouse around like crazy and it still gets all the other items right but just not the shield.Code:--Open Inventory PressAndReleaseKey("c") Sleep(10); --Equip items by X and Y axis, Item Volume (1 or 2), IsLetterbox(VideoOption in game "X" if set), --IsRandom(set "X' if you need random mouse pointer), Modificator ("ralt", etc) EquipItemInventory(10, 5, 2, Letterbox, Random, "ralt") EquipItemInventory(9, 5, 1, Letterbox, Random) EquipItemInventory(9, 6, 1, Letterbox, Random) EquipItemInventory(8, 5, 2, Letterbox, Random) EquipItemInventory(7, 5, 2, Letterbox, Random) EquipItemInventory(6, 5, 2, Letterbox, Random) EquipItemInventory(5, 5, 2, Letterbox, Random) --Close Inventory PressAndReleaseKey("c") MoveMouseTo(x, y) end
Everything seems fine to me with equip part. Did you try without modifier key? Shield goes to slot where it should be without mod key if you do it manually.
as for mechanic it presses modkey and instantly right clicks
I commented theese delays and it worked fine so possibly they do nothing and can be removed or they were added to the script to make it more like a human being pressing buttons and not just clicking insanely fast ha ha.
You said it works fine if you dont touch anything - so it proves that script works fine. I play dh so i dont have problems with "dont touch anything" =))
And i couldnt reproduce with quiver your problem (didnt use any mod key for it) : tried to 1) hold down left mouse button 2) tried to click it fast while exxecuting script)
I need the alt for the shield because I play dual wield barb so when I equip the shield it puts it on normally without needing the alt modifier, but when I want to switch my weapon back on what happens is it puts the weapon in my main hand and swaps it out with my other weapon while leaving the shield still equipped.
As far as the left click thing goes, basically what happens is I am holding down left click (because I need to run away from the monster to put my gear on so I don't die since I am a melee character) and I press my G12 to activate the macro while holding the left click and it swaps all the gear fine except the shield which doesnt swap. I think if you try the same with your quiver but you add the alt mod to it you will encounter the same problem. My guess is that the delay between the pressed alt and the actual click is what is causing the problem, but I think the delay needs to be there or else the game wouldn't recognize the alt pressed and it wouldn't work.
There must be ways to do it though. I have seen other scrips and 3rd party programs similar to this script and they don't have this problem so it can be done I will just have to tinker around with the script for a bit to figure out the cause of the problem.
ok i reproduced it a few times with a dw barb. And i got message like - Not enough fury to use that skill. every time i got that message it's not switching. Do you get it too?
That will mean that you move mouse out of the invetory so right click isnt right clicking what it should
So try to add a line in bold
MoveMouseTo(MouseX, MouseY)
if Modify then
PressKey(Modify)
PressAndReleaseMouseButton(3)
with this thing i couldnt reproduce your problem - maybe leftclicking not so crazy as you? )
It will do a double right click while a modifier is used , but i think you may have a problem with the second ring when you add it to your equip script
Last edited by sn4rk; 07-12-2012 at 08:51 AM.