Jump to content

Noob needs a little help please.


Rigan
 Share

Recommended Posts

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
Link to comment
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"

Link to comment
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 ;

?

Link to comment
Share on other sites

  • Developers

Looks like you went to the wrong forum.

Have you even opened the AutoIt3 helpfile?

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.

Link to comment
Share on other sites

  • Developers

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?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...