Sign in to follow this  
Followers 0
kuebk

How can I hold SHIFT button ?

15 posts in this topic

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:


Share this post


Link to post
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}?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Did you try {SHIFTDOWN}?

I did, but it doesn't work. ;)

I want the SHIFT key to be pressed whole time when the script works - so maybe I'm doing something bad. :lmao:

Edited by kuebk

Share this post


Link to post
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:


Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

#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

Share this post


Link to post
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 ;)


Share this post


Link to post
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.

Share this post


Link to post
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. ;)


Share this post


Link to post
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. ;)


Share this post


Link to post
Share on other sites

I think what he's saying is he wants to run this in a background window so that he can have multiple diablo 2 windows all pressing shift + Left click at the same time

Share this post


Link to post
Share on other sites

I know this is kinda old but it amuses me what was the purpose of having this?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0