AutoHotkey Community

It is currently May 27th, 2012, 12:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 5th, 2009, 2:09 am 
Offline

Joined: October 5th, 2009, 2:07 am
Posts: 3
HI - I am a total noob with this sort of thing - I can describe the script I am looking fro maybe someone else can help me out :S

I want to bind lshift so that when I let go of the button it presses the 1 key twice

this sounds fairly straight forward - anyone willing to help a noob out :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2009, 3:46 pm 
Offline

Joined: February 24th, 2005, 8:45 am
Posts: 278
Code:
LShift::
KeyWait, LShift
Send, 1
Send, 1
return

_________________
My small "thanks" to AHK in shape of these dedicated 3d images
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2009, 7:01 pm 
Offline

Joined: October 5th, 2009, 2:07 am
Posts: 3
hi thanks for trying to help - I had gotten a similar script from someone called temp01 on the ahk IRC

unfortunately both the script u gave me:

Code:
LShift::
KeyWait, LShift
Send, 1
Send, 1
return


and

the script they had made:
Code:
Lshift Up::
  KeyWait, Lshift
  Send, 1
  Send, 1
Return


Neither of these commands work fully - I am trying to make a script for Pro-E that spams hotkeys after I let go of shift (after selecting multiple parts/groups)- these scripts both spam the numbers however as soon as I Press shift its as if the button is released - in other words even tho I am holding down shift key does not act as if its in the "pressed down" state

The script works perfectly on notepad - like wise the shift key works fine when the script is not activated

No other scripts are active during this operation

- thanks for the help - does anyone have experience of this issue?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2009, 7:10 pm 
Try this:


Code:
Lshift::
{
KeyWait, LShift
GetKeyState, state, LShift
if state = U
{
Loop,
{
    ;spam stuff here
     Send a
}
}
}
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2009, 7:16 pm 
Offline

Joined: October 5th, 2009, 2:07 am
Posts: 3
Code:
Lshift::
{
KeyWait, LShift
GetKeyState, state, LShift
if state = U
{
Loop,
{
     Send, 1
     Send, 1
}
}
}
return


same problem with this unfortunately - also the 11 spams indefinitely which made a bit of noise.

The problem still exists the shift key is "let go" even though I am holding it down


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Leef_me, Pulover, XstatyK, Yahoo [Bot] and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group