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 Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ben75
Guest





PostPosted: Sat Oct 31, 2009 1:00 am    Post subject: Reply with quote

Anonymous wrote:
what do u mean by "stop working"
did the Mbutton doesnt work?
is the AHK script still running?
is the AHK script not detecting Mbutton even u press Mbutton? (u can check by double clicking the icon shows the current running lines)
we need more information other than its not working
or how about make a settimer that makes the script reload every 5mins?
is that the whole script u are using?


mbutton is working
ahk script is still running
ahk script not detecting mbutton even i press mbutton but ONLY in the game i mean if i'm on windows it s working..

here is all script i'm currently using :

Numpad1::a
Numpad2::z
Numpad3::w
AppsKey::,
Numpad4::;
Numpad5:::
Numpad6::i
Numpad7::p
Numpad8:Surprised
Numpad9::u
RShift::y
RControl::r
Insert::l
Del::j
Rwin::e
NumpadSub::F7
NumpadEnter::q
MButton::
Send {F2}
Send {F3}
Send {F4}
Send {F6}
Send {F8}
return
Back to top
sinkfaze



Joined: 19 Mar 2008
Posts: 2694
Location: the tunnel(?=light)

PostPosted: Sat Oct 31, 2009 2:13 am    Post subject: Reply with quote

Here are the two pieces of information that seem to be the most important (to me):

ben75 wrote:
i press mbutton but ONLY in the game i mean if i'm on windows it's working..

..if i'm using delay then i got another problem , my mouse bug and doesn't move fluently


That tells me that your game may be having a problem processing keystrokes that SetKeyDelay is now making the game recognize (when before it just skipped them without buffering).

You could try adjusting the priority of the game's process, other than that I don't know.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
ben75
Guest





PostPosted: Sat Oct 31, 2009 3:00 am    Post subject: Reply with quote

sinkfaze wrote:
Here are the two pieces of information that seem to be the most important (to me):

ben75 wrote:
i press mbutton but ONLY in the game i mean if i'm on windows it's working..

..if i'm using delay then i got another problem , my mouse bug and doesn't move fluently


That tells me that your game may be having a problem processing keystrokes that SetKeyDelay is now making the game recognize (when before it just skipped them without buffering).

You could try adjusting the priority of the game's process, other than that I don't know.


i don't have a clue how to do it even after reading it lol...
Back to top
ben75
Guest





PostPosted: Sat Oct 31, 2009 1:10 pm    Post subject: Reply with quote

Also i have another question , i would like to introduce in my script the following idea :

i would like to launch 8 spells (so 8 keys) with a delay of 1 second between each of them and when i get to the end it's restarting over and over again. And if i could integrate a special button which will stop eventually only this part of the script , it would be perfect Smile
Back to top
ben75
Guest





PostPosted: Sat Oct 31, 2009 2:37 pm    Post subject: Reply with quote

here is an example coming from actools , i need something like this for autohotkey if it's possible withing the script i'm currently using and with the possibility to choose the keys i will use :

SetActiveWindow Dark Age of Camelot, Copyright © 2001-05 Mythic Entertainment, Inc.

Constants
switch = false
End
Procedure End When {GlobalKeys} contains 114
ClearGlobalKeys
SetConst $switch = false
end

Procedure start When {GlobalKeys} contains 113
ClearGlobalKeys
SetConst $switch = true
end

While 1=1
if $switch = true
ProcessMessages // Checks for end
Keys 5
Delay 2000
ProcessMessages // Checks for end
Keys 6
Delay 2000
ProcessMessages // Checks for end
Keys 7
Delay 2000
ProcessMessages // Checks for end
Keys 8
Delay 2000
ProcessMessages // Checks for end
end

delay 500
ProcessMessages //checks for start
end



Once again , thanks for providing help guys =)
Back to top
ben75
Guest





PostPosted: Sat Oct 31, 2009 3:54 pm    Post subject: Reply with quote

up, help needed guys pls on the second prob Smile
Back to top
Guest






PostPosted: Sat Oct 31, 2009 7:50 pm    Post subject: Reply with quote

up
Back to top
ben75
Guest





PostPosted: Sat Oct 31, 2009 7:50 pm    Post subject: Reply with quote

up pls
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2
Page 2 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