AutoHotkey Community

It is currently May 26th, 2012, 9:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: September 10th, 2009, 9:20 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2009, 9:43 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2009, 9:59 pm 
ok that didnt answer anything thanks for being a smarta** and if i understood the FAQ i wouldnt be on here.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2009, 10:17 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2009, 10:26 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2009, 11:34 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
This needs to be in some sort of FAQ soon :)

Games are tricky b*stards :)

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 :))

also, learn to use the code tags, please?

Code:
[code]Insert code here[/code]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 3:27 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject: Excuse Me!
PostPosted: September 23rd, 2009, 6:38 pm 
Offline

Joined: September 23rd, 2009, 6:30 pm
Posts: 1
[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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Excuse Me!
PostPosted: September 23rd, 2009, 7:02 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
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,


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2009, 7:03 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
This thread has completely veered off topic.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2009, 12:20 pm 
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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, dra, Exabot [Bot], JSLover, patgenn123, rbrtryn and 49 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