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 

Very basic script: help :X

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Raikuga



Joined: 16 Feb 2007
Posts: 7

PostPosted: Fri Feb 16, 2007 4:35 am    Post subject: Very basic script: help :X Reply with quote

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
View user's profile Send private message
Akize



Joined: 16 Jan 2006
Posts: 34

PostPosted: Fri Feb 16, 2007 5:47 am    Post subject: Reply with quote

The script itself works fine. If it's not working in game try looking into SendPlay.
Back to top
View user's profile Send private message
Raikuga



Joined: 16 Feb 2007
Posts: 7

PostPosted: Fri Feb 16, 2007 6:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Akize



Joined: 16 Jan 2006
Posts: 34

PostPosted: Fri Feb 16, 2007 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Raikuga



Joined: 16 Feb 2007
Posts: 7

PostPosted: Fri Feb 16, 2007 7:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Jero3n



Joined: 19 Jan 2007
Posts: 151

PostPosted: Fri Feb 16, 2007 5:51 pm    Post subject: Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
Raikuga



Joined: 16 Feb 2007
Posts: 7

PostPosted: Fri Feb 16, 2007 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raikuga



Joined: 16 Feb 2007
Posts: 7

PostPosted: Sat Feb 17, 2007 4:28 am    Post subject: Reply with quote

Bump
Back to top
View user's profile Send private message
engunneer



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

PostPosted: Sat Feb 17, 2007 5:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Raikuga



Joined: 16 Feb 2007
Posts: 7

PostPosted: Sat Feb 17, 2007 7:44 am    Post subject: Reply with quote

I kind of noticed that, but better to try than not?

So, can you help me with my ControlSend? :X
Back to top
View user's profile Send private message
I want play Whit 2 screem
Guest





PostPosted: Sat Jun 30, 2007 2:25 pm    Post subject: Help here pls Reply with quote

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
Display posts from previous:   
Post new topic   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