Jump to content

How can I hold SHIFT button ?


kuebk
 Share

Recommended Posts

Hey!

I want to write script which will be holding left SHIFT button for me...

I have tried to use this:

ControlSend($w, "", "", "{LSHIFT DOWN}")

But this doesn't work for SHIFT key, it works for other keys like A, B - but not for SHIFT. ;)

Anyone could help me how to make this works ?

Thanks in advance - kuebk. :lmao:

Link to comment
Share on other sites

Hey!

I want to write script which will be holding left SHIFT button for me...

I have tried to use this:

ControlSend($w, "", "", "{LSHIFT DOWN}")

But this doesn't work for SHIFT key, it works for other keys like A, B - but not for SHIFT. ;)

Anyone could help me how to make this works ?

Thanks in advance - kuebk. :lmao:

Did you try {SHIFTDOWN}?
Link to comment
Share on other sites

SHIFTDOWN works perfectly fine for me. Tested it with this:

#include <Misc.au3>

Send('{SHIFTDOWN}')

$x = 0
Do
    ToolTip('iteration ' & $x)
    Sleep(100)
    $x += 1
    If $x = 20 Then Send('{SHIFTUP}')
Until Not _IsPressed(10)

ToolTip('Done!')
Sleep(2000)
Exit
Thanks! ;)

But I want the SHIFT be only pressed in desired window, not everywhere - could you help me with this?

I tried with ControlSend but it didn't work. :lmao:

Link to comment
Share on other sites

Maybe if you explain what you are doing, someone can help you find a better way to do it.

I want to write a script which will be holding SHIFT and clicking or holding Left Mouse Button in desired game window. Game is Diablo II and I just want to cast spells there while I want to do other things on my PC. ;)

Edited by kuebk
Link to comment
Share on other sites

#include <Misc.au3>
Hotkeyset("a","quit")

doit()

Func doit()
Send('{SHIFTDOWN}')

While WinActive("Window here")
    Sleep(100)
Wend

Send('{SHIFTUP}')

WinWaitActive("Window here")
doit()
EndFunc

Func quit()
Exit
EndFunc
oÝ÷ ÚÚºÚ"µÍÚ[ÛYH  ÓZØË]LÉÝÂÝÙ^Ù]
    ][ÝØI][ÝË   ][ÝÜ]Z]   ][ÝÊBÚ[HBÙ[
    ÌÎNÞÔÒQÕÓIÌÎNÊBÚ[HÚ[XÝ]J   ][ÝÕÚ[ÝÈI][ÝÊBÛY
L
BÙ[Ù[
    ÌÎNÞÔÒQTIÌÎNÊBÚ[ØZ]XÝ]J  ][ÝÕÚ[ÝÈI][ÝÊBÙ[[È]Z]

B^][[Â

Edited by darkshadow791
Link to comment
Share on other sites

#include <Misc.au3>
Hotkeyset("a","quit")

doit()

Func doit()
Send('{SHIFTDOWN}')

While WinActive("Window here")
    Sleep(100)
Wend

Send('{SHIFTUP}')

WinWaitActive("Window here")
doit()
EndFunc

Func quit()
Exit
EndFunc
oÝ÷ ÚÚºÚ"µÍÚ[ÛYH  ÓZØË]LÉÝÂÝÙ^Ù]
    ][ÝØI][ÝË   ][ÝÜ]Z]   ][ÝÊBÚ[HBÙ[
    ÌÎNÞÔÒQÕÓIÌÎNÊBÚ[HÚ[XÝ]J   ][ÝÕÚ[ÝÈI][ÝÊBÛY
L
BÙ[Ù[
    ÌÎNÞÔÒQTIÌÎNÊBÚ[ØZ]XÝ]J  ][ÝÕÚ[ÝÈI][ÝÊBÙ[[È]Z]

B^][[Â
This will only works when window will be active - Spell have to be casted whole time...

I would like to use my PC with other things in same time as in game spell would be casted, like I wrote above ;)

Link to comment
Share on other sites

I thought that was what you wanted?

If your playing diablo 2, just use right clicks instead of left clicks via controlsend and you wont move thus not needing shift...

if all else fails go to game options > controls > change the key for not moving or w/e shift is set to to something you can send.

Link to comment
Share on other sites

I thought that was what you wanted?

If your playing diablo 2, just use right clicks instead of left clicks via controlsend and you wont move thus not needing shift...

if all else fails go to game options > controls > change the key for not moving or w/e shift is set to to something you can send.

To do what I want I need to use this kind of combo keys... The first solution suggested here would be good enought if the SHIFT would be pressed only in desired window. ;)

Link to comment
Share on other sites

Did you read my entire post?

What is this for? Botting? Continuous attacking? No matter what it is, you can change the hotkey for Shift and then controlsend should work...

I want to use this in few other instances of Diablo II and in last one I want to play... and I would like to use SHIFT, not other button. ;)

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...