Sign in to follow this  
Followers 0
Info

Send("{ShiftUp}") doesn't work?

7 posts in this topic




That's because your script is holding shift. You'll have to put a hotkey on shift+F2. Or use shift+F1 and it will become a toggle.

Share this post


Link to post
Share on other sites

Info,

You need a sleep in that While/Wend loop.

And I need a sleep too.....

HotKeySet("{F1}", "sdown")
HotKeySet("+{F1}", "sup")

Func sdown()
    Send("{shiftdown}")
EndFunc   ;==>sdown

Func sup()
    Send("{shiftup}")
EndFunc   ;==>sup

While 1
    Sleep(99)
WEnd
^^^what Richard Robertson said

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

He doesn't need a sleep, but it certainly would help the processor.

Share this post


Link to post
Share on other sites

:)

I really hate this... this help file simply says that {SHIFTDOWN} "Holds the SHIFT key down until {SHIFTUP} is sent" yet,

after I sent {SHIFTUP}, it seems to still be down...

Now I have no idea how to put this on my script T_T

Share this post


Link to post
Share on other sites

That's correct. It was actually your hotkey that wasn't being fired. Your hotkey was set up to turn off shift when F2 is pressed alone. Since shift was being held down, F2 was never being pressed alone. Plato's code will work for you.

Share this post


Link to post
Share on other sites

Thanks for explaining, now I got it to work :)

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