| View previous topic :: View next topic |
| Author |
Message |
Raikuga
Joined: 16 Feb 2007 Posts: 7
|
Posted: Fri Feb 16, 2007 4:35 am Post subject: Very basic script: help :X |
|
|
I am trying to make a program to macro my skill training in a game
The script works, but it doesnt register the keys to the game; none of the Send functions i've tried work.
Now, I'm trying to do ControlSend, but i dont really know how to use it. This is what I have so far for it:
| Code: | | ControlSend, <?>, 1, 9Dragons |
Here's the WindowSpy information for the application:
http://img178.imageshack.us/img178/4562/windowspyxp9.png
The full notepad:
| Code: | #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Play
^m::
Sleep, 5000
Send, 1
Sleep, 500
Send, 2
Loop, 100
{
Sleep, 420000
Send, P
Sleep, 35000
}
return
|
Last edited by Raikuga on Sat Feb 17, 2007 7:47 am; edited 6 times in total |
|
| Back to top |
|
 |
Akize
Joined: 16 Jan 2006 Posts: 34
|
Posted: Fri Feb 16, 2007 5:47 am Post subject: |
|
|
| The script itself works fine. If it's not working in game try looking into SendPlay. |
|
| Back to top |
|
 |
Raikuga
Joined: 16 Feb 2007 Posts: 7
|
Posted: Fri Feb 16, 2007 6:30 am Post subject: |
|
|
Okay; here's my whole notepad and it still doesnt work.
| Code: | #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Play
^m::
Sleep 5000
Send 1
Sleep 500
Send 2
Loop 100
{
Sleep 420000
Send P
Sleep 35000
}
return |
|
|
| Back to top |
|
 |
Akize
Joined: 16 Jan 2006 Posts: 34
|
Posted: Fri Feb 16, 2007 6:44 am Post subject: |
|
|
Without knowing / having the game you're working with, it's difficult to help you.
I usually simplify the script so I can tell which part of it is breaking:
| Code: | ^m::
send {space}
sendinput {space}
sendplay {space}
soundplay *64
return |
You'll know the hotkey ran if you hear the soundplay, and if the correct action is triggered it's just a matter of finding which of the sends work. If none of them work then you're probably SOL, although you could try controlsend. |
|
| Back to top |
|
 |
Raikuga
Joined: 16 Feb 2007 Posts: 7
|
Posted: Fri Feb 16, 2007 7:25 am Post subject: |
|
|
SoundPlay works, but none of t hose send functions do. I guess ill look into controlsend then.
EDIT: Getting a bit confused with ControlSend :X
The game I'm trying to do this on is called 9Dragons.
Here's the WindowSpy information for it:
http://img178.imageshack.us/img178/4562/windowspyxp9.png
This is what i have so far:
| Code: | | ControlSend, <?>, 1, TripleXKernel |
|
|
| Back to top |
|
 |
Jero3n
Joined: 19 Jan 2007 Posts: 151
|
Posted: Fri Feb 16, 2007 5:51 pm Post subject: |
|
|
i think it must be this:
| Code: |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Play
^m::
Sleep, 5000
Send, 1
Sleep, 500
Send, 2
Loop, 100
{
Sleep, 420000
Send, P
Sleep, 35000
}
return
|
now it works  |
|
| Back to top |
|
 |
Raikuga
Joined: 16 Feb 2007 Posts: 7
|
Posted: Fri Feb 16, 2007 6:14 pm Post subject: |
|
|
| Mine worked in the first place, it just didn't input to the game. That's why im trying to do controlsend :X |
|
| Back to top |
|
 |
Raikuga
Joined: 16 Feb 2007 Posts: 7
|
Posted: Sat Feb 17, 2007 4:28 am Post subject: |
|
|
| Bump |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Sat Feb 17, 2007 5:45 am Post subject: |
|
|
some games just don't take well to hotkeys. there are quite a few topics about this throughout the ask for help section. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Raikuga
Joined: 16 Feb 2007 Posts: 7
|
Posted: Sat Feb 17, 2007 7:44 am Post subject: |
|
|
I kind of noticed that, but better to try than not?
So, can you help me with my ControlSend? :X |
|
| Back to top |
|
 |
I want play Whit 2 screem Guest
|
Posted: Sat Jun 30, 2007 2:25 pm Post subject: Help here pls |
|
|
| Hello guy's ihave a question Any one have idea The way to open anotehr Windows screem? in same pc. ( same game) Co zCant for the game gaurd or triplexkerlnel pls if any one Have idea reply me soon and thansk so much.. or Some program.Anything Thanks you |
|
| Back to top |
|
 |
|