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 

Macro for game
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
autohotkey nub
Guest





PostPosted: Mon Jun 16, 2008 8:12 pm    Post subject: Macro for game Reply with quote

Code:
t::
Send r
return


When I run that thread in a notepad file or a instant message box, and I press the t, I get the r. But when I press the t while playing a game, I do not get a reload. If I set the Send command to "Send f" I get the f in a chatbox, but not a melee attack ingame. Whats the problem?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
PurloinedHeart



Joined: 04 Apr 2008
Posts: 209
Location: Canada

PostPosted: Mon Jun 16, 2008 8:23 pm    Post subject: Reply with quote

Try SendPlay?
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Jun 16, 2008 8:33 pm    Post subject: Reply with quote

PurloinedHeart wrote:
Try SendPlay?


Code:
shift::
Send f
SetKeyDelay 1000, Play
Send r
SetKeyDelay 1000, Play
Click
return


It still doesnt work
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Mon Jun 16, 2008 8:34 pm    Post subject: Reply with quote

He means:
Sendplay, f
Sendplay, r
etc
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Mon Jun 16, 2008 8:46 pm    Post subject: Reply with quote

Code:
shift::
Sendplay, f
Sleep 1000
Sendplay, r
Sleep 1000
Click
return


that doesnt work. the only thing that works in that is the click.
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Mon Jun 16, 2008 8:49 pm    Post subject: Reply with quote

try:
Code:
shift::
SetKeyDelay,,10,Play
Sendplay, f
Sleep 1000
Sendplay, r
Sleep 1000
Click
return
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Mon Jun 16, 2008 8:50 pm    Post subject: Reply with quote

Code:
t::
Sendplay, f
Sendplay, r
Click
return


this doesnt work either
Back to top
Guest






PostPosted: Mon Jun 16, 2008 8:53 pm    Post subject: Reply with quote

Krogdor wrote:
try:
Code:
shift::
SetKeyDelay,,10,Play
Sendplay, f
Sleep 1000
Sendplay, r
Sleep 1000
Click
return


this doesnt work
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Mon Jun 16, 2008 8:59 pm    Post subject: Reply with quote

Well then, sounds like your game won't accept simulated keystrokes... So, basically... I don't think there is a solution for you.
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Mon Jun 16, 2008 9:05 pm    Post subject: Reply with quote

Krogdor wrote:
Well then, sounds like your game won't accept simulated keystrokes... So, basically... I don't think there is a solution for you.


its halo 2 for pc. why wont it accept stimulated keystokes? the only thing that worked from that command was the mouse click.
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Mon Jun 16, 2008 9:12 pm    Post subject: Reply with quote

please read This FAQ page
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Mon Jun 16, 2008 10:17 pm    Post subject: Reply with quote

engunneer wrote:
please read This FAQ page


can you please make a script for me that you think will work.
Back to top
Guest






PostPosted: Mon Jun 16, 2008 10:57 pm    Post subject: Reply with quote

Code:
This_FAQ_page = http://www.autohotkey.com/docs/FAQ.htm#games
Run, %This_FAQ_page%


Question
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Tue Jun 17, 2008 2:43 pm    Post subject: Reply with quote

Quote:
can you please make a script for me that you think will work.


Laughing

Um.... no.

I don't have time for games, and I have no time for people who ask for non-trivial scripts when that person has shown no work based on the available advice.

Search the forum for your game, and you may find that someone has either tried and failed, or tried and succeeded.

To succeed, you must try.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
argneo



Joined: 14 Sep 2007
Posts: 136

PostPosted: Tue Jun 17, 2008 7:27 pm    Post subject: Reply with quote

Try to make something from the wow macros... you may have to learn a bit to change it, but they are overall simple
_________________
WoW
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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