AutoHotkey Community

It is currently May 27th, 2012, 1:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: May 21st, 2008, 3:34 am 
I have a very simple script:


Code:
space:: Send {WheelDown}

exit
return




all that does is send the mouse wheel down obv, which i have bound as my jump in CSS. Now that works perfectly other than the fact that when i click A or D to move left and right the script ends, or basically pauses i guess.. Can someone tell me how to have it so i can push other buttons while thats going?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2008, 11:40 am 
Quote:
very simple script
Nice to know. :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2008, 8:19 pm 
cool thanks for not helping at all... Can anyone else actually help?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2008, 8:59 pm 
Offline

Joined: June 17th, 2007, 12:34 pm
Posts: 101
Location: Florida
what happens if you do this?
Code:
space:: Send {WheelDown}

remove the exit and return?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2008, 9:37 pm 
#persistent


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2008, 2:41 am 
Chessking wrote:
what happens if you do this?
Code:
space:: Send {WheelDown}

remove the exit and return?


that doesn't work, any other ideas?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2008, 2:43 am 
Offline

Joined: April 4th, 2008, 8:15 pm
Posts: 538
Location: Canada
Code:
Space::
Send, {WheelDown}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2008, 4:41 am 
PurloinedHeart wrote:
Code:
Space::
Send, {WheelDown}
return


that doesn't work either... it does the same thing, it works fine when I'm just holding space bar, but when I push any other key it stops... Would a loop help this?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2008, 5:10 pm 
not that intellectual but u could try

Code:
space::send{wheeldown}
`::suspend


the `suspend thing should keep the script running until you hit ` which would suspend the script if u needed O.o not sure if it'd have anything to do with ur situation im not that advance in ahk jus throwing out random thoughts at wut i'd try

good luck


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 12:29 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
So you're saying that if you push any other key while spacebar is down, it stops sending the {wheeldown}? If that's the problem, you could use a loop:

Code:
Space::
loop
{
Send, {Wheeldown}
If !(GetKeyState("{space}", "P"))
Break
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 3:49 am 
Krogdor wrote:
So you're saying that if you push any other key while spacebar is down, it stops sending the {wheeldown}? If that's the problem, you could use a loop:

Code:
Space::
loop
{
Send, {Wheeldown}
If !(GetKeyState("{space}", "P"))
Break
}


thats exactly the problem but that script doesn't work either.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 4:37 am 
I found another script on the forum that works:

Space::
Loop, {
Dn:=GetKeyState("Space","P")
ifEqual,Dn,0, Break
Send {Wheeldown}
}
Return


That works for counter strike source bunny hopping if anyone wants to know, its pretty dead on.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 5:00 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Anonymous wrote:
thats exactly the problem but that script doesn't work either.


Oh... Whoops. I only tested it to see if it looped and broke at the proper times, not whether or not it would continue if another button was pressed...

Anyway, I don't really know why it breaks when another key is pressed. As far as I can tell it shouldn't be...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 4:43 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
you could have tried a * modifier on space::

or you could have done a proper remapping
Code:
space::WheelDown

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2008, 1:40 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
engunneer wrote:
you could have tried a * modifier on space::

or you could have done a proper remapping
Code:
space::WheelDown


The remapping results in only a single WheelDown event being trigged each time space is pressed. He wants it to continually loop WheelDowns until the space bar is released.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, Bing [Bot], BrandonHotkey, chaosad, Google [Bot] and 21 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