awannaknow wrote:
Haha!
sinkfaze wrote:
Since you seem to be using some very small Sleep times I thought it'd be worthwhile to point this out:
Due to the granularity of the OS's time-keeping system, Delay is typically rounded up to the nearest multiple of 10 or 15.6 milliseconds (depending on the type of hardware and drivers installed). For example, a delay between 1 and 10 (inclusive) is equivalent to 10 or 15.6 on most Windows NT/2000/XP systems.
So in those spots where you're using a very small delay it's meaningless to a certain extent. Also you can avoid stacking a bunch of Sleep commands in your script and condense things down if you use
SetKeyDelay:
Code:
XButton1::
SetKeyDelay, 50, 25 ; delay between keystrokes of 50ms with a keypress duration of 25ms
Send yguns{ENTER}1393
Wow, thank you for the tidy script. That looks much nicer. Is there a way to set up multiple functions in the same script? For instance, can I also set up some bindings to the home, end and pause keys to control windows media player? Like for instance, if I wanted to go to the previous song using the 'home' key, whilst I am in-game, how would I go about doing this? I just tries what I thought would work, but it complained about the original script that I have already posted (am using the new one now). Then I want the 'end' key to act as trigger for next song. Then the same goes for 'pause', which will obviously be used to pause and unpause the music.
Thank you all so very much for your help.