AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I cant get the hot key to work in game..

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
dONThATEmE
Guest





PostPosted: Thu Sep 10, 2009 8:20 pm    Post subject: I cant get the hot key to work in game.. Reply with quote

ok im trying to write script i can get it to to work on my desktop but as soon as i open the window for my game Amerca's Army the hot key doesn't work and goes to normal play what am i doing wrong?




Lbutton::


Loop,3


{


Send, Lbutton


Sleep 100


}


Return
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Thu Sep 10, 2009 8:43 pm    Post subject: Reply with quote

Here's what you're doing wrong:
1. Posting a same question in a new thread (aka 'spamming').

2. Posting the same question twice within 5 hours (it is common to receive help after about a day here).

3. Posting code without [code][/code] tags.

As for your code, take a look at the docs: Send. and the FAQ: Why don't Hotstrings, Send, and MouseClick work in certain games?
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Sep 10, 2009 8:59 pm    Post subject: Reply with quote

ok that didnt answer anything thanks for being a smarta** and if i understood the FAQ i wouldnt be on here.
Back to top
Zoud
Guest





PostPosted: Thu Sep 10, 2009 9:17 pm    Post subject: Reply with quote

Although you may think he's being a smart ass, he is correct, and you should listen to him.

Your code also doesn't have any escape triggers, so even if it were to work you would be stuck in-game with your mouse clicking non-stop (give the 100 miliseconds).

Once you get a clue as to how to respect others for trying to help you, try adding this into your script to stop the auto-clicking:

Code:
!U::  ;  Alt & U is the trigger
ExitApp
return
Back to top
Guest






PostPosted: Thu Sep 10, 2009 9:26 pm    Post subject: Reply with quote

im Sorry you are right im just really frustrated. what im trying to do is shoot and crouch and reload with a simple click i cant get it in game. it works on my desktop but i cant get it in game what do i need to edit here's ans update. ive also binded LCTRL as alt fire.

but its still not workin in game.


Send {LCtrl}


Send, {c}


Loop,31


{


Send {LCtrl}


Sleep 100


}


SEND {R}


Return
Back to top
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Thu Sep 10, 2009 10:34 pm    Post subject: Reply with quote

This needs to be in some sort of FAQ soon Smile

Games are tricky b*stards Smile

You need to experiment with SendMode and/or SetKeyDelay to see if that makes any difference. (just a pointer, it took me three days and countless tries to find the combination that worked with HAWX, but now it works perfectly Smile)

also, learn to use the code tags, please?

Code:
[code]Insert code here[/code]
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Guest






PostPosted: Fri Sep 11, 2009 2:27 pm    Post subject: Reply with quote

ok so now im just trying something simple like an autofire....very simple loop but when i run script now it just goes away it stop running whats going on?
Back to top
n55w131



Joined: 23 Sep 2009
Posts: 1

PostPosted: Wed Sep 23, 2009 5:38 pm    Post subject: Excuse Me! Reply with quote

[VxE] wrote:
Here's what you're doing wrong:
1. Posting a same question in a new thread (aka 'spamming').

2. Posting the same question twice within 5 hours (it is common to receive help after about a day here).

3. Posting code without [code][/code] tags.

As for your code, take a look at the docs: Send. and the FAQ: Why don't Hotstrings, Send, and MouseClick work in certain games?


To some extent I agree and dis-agree with your comments.

1) Just because there is already a post for a similar question. There is always more than one answer/solution and maybe he is looking for additional ones he could not find?

2) There is nothing wrong with how he posted. Just because it doesn't match your suggested syntax, why type things we already know? Maybe he doesn't know?

3) In any case if you can't respond with constructive help, then please refrain from posting. It hurts the profile of people asking for help if all you do is cut them down for asking.

Just my 2 cents...
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Wed Sep 23, 2009 6:02 pm    Post subject: Re: Excuse Me! Reply with quote

n55w131 wrote:
[VxE] wrote:
Here's what you're doing wrong:
1. Posting a same question in a new thread (aka 'spamming').

2. Posting the same question twice within 5 hours (it is common to receive help after about a day here).

3. Posting code without [code][/code] tags.

As for your code, take a look at the docs: Send. and the FAQ: Why don't Hotstrings, Send, and MouseClick work in certain games?


To some extent I agree and dis-agree with your comments.

1) Just because there is already a post for a similar question. There is always more than one answer/solution and maybe he is looking for additional ones he could not find?

2) There is nothing wrong with how he posted. Just because it doesn't match your suggested syntax, why type things we already know? Maybe he doesn't know?

3) In any case if you can't respond with constructive help, then please refrain from posting. It hurts the profile of people asking for help if all you do is cut them down for asking.

Just my 2 cents...


1) you did notice he really posted the same question twice? As in both posts the poster is the same person? That's what VxE meant.

2) I can't say there's nothing wrong with the post, as it is a common practice to use the CODE tags when posting code. but this is not what the second point was about. It was about not waiting enough to get answers and just posting the question again. This forum has helpers from all time zones, you can't expect them to be online at all hours. Not everyone is expert at everything.

3. Well, that's what moderator really DO, you know? If they'd let the forum run without correcting (even minor) "mistakes", where would we be? This seems to be extraordinarily nice forum, the mods don't really need to do much, but what if nobody said anything about those things and people started posting multiple threads about the same question in short time? We'd only have a forum full of posts posted three minutes apart that only ask the same question over and over again. I'd much prefer a little correction now and then to that,
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Thu Sep 24, 2009 6:03 am    Post subject: Reply with quote

This thread has completely veered off topic.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Thu Sep 24, 2009 11:20 am    Post subject: Reply with quote

didnt read all of this..but one time when i played a game on the computer, i wanted to play it with the mouse, not keyboard but then it didnt work right, so then i just put it a little slower
Code:
LButton::send,z ;it did not work :0

Code:
LButton::send {z down} ;first down
LButton Up::send {z up} ;it did work ^^

maybe that helps?..sorry didnt read into any farther
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group