Sign in to follow this  
Followers 0
Rigan

Noob needs a little help please.

7 posts in this topic

#1 ·  Posted (edited)

Hi there everyone, I have a game I tried to make a script for so that when I switch to melee weopons, a certain hotbar will change with it, here is the scrip;

_________________________

f4:: ;

{

send {f7}

Send {f1}

sleep 10

return

}

f5:: ;

{

Send {f8}

Send {f2}

sleep 10

return

}

f6:: ;

{

Send {f9}

Send {f2}

sleep 10

return

}

_________________________________

The script works, the problem I am having is, it only works when I am not "sprinting" in game, the sprint key is the shift button. So is there some command where I can make this macro run even when I may have the shift key pressed also?

Thanks alot.

Edit : Keep in mind I have pretty much no clue what im doing lol, so please speak English so to speak =)

Edited by Rigan

Share this post


Link to post
Share on other sites



no one have any idea how I can get it to work?

Share this post


Link to post
Share on other sites

Bumping threads within 24 hours, much less an hour is frowned upon

If the program won't register Shift+f7 the same as F7, the only thing I can think of is some conditional logic that will check if shift is being pressed, and if it is, temporarily block keyboard input stopping the shift key press, press the desired keys, then return keyboard control. This will momentarily cause the program to stop "sprinting"

Share this post


Link to post
Share on other sites

sorry, just been tryin to get it to work for houes :)

The script wont execute at all if I have the shift key held down because im sprinting in-game.

So should the script be something like;

f4:: shift+f4 ;

?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Looks like you went to the wrong forum.

Have you even opened the AutoIt3 helpfile?

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

ofc, I looked through the help files for ages - but all I need is to know how to incorporate the script to run if I have the shift key held down also and the help file is by far from "noob friendly" and sends me in circles.

Share this post


Link to post
Share on other sites

ofc, I looked through the help files for ages - but all I need is to know how to incorporate the script to run if I have the shift key held down also and the help file is by far from "noob friendly" and sends me in circles.

Which Helpfile because none of the stuff you show is in it?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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