AutoHotkey Community

It is currently May 27th, 2012, 1:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Send
PostPosted: May 1st, 2009, 12:24 am 
Offline

Joined: September 14th, 2007, 6:53 am
Posts: 133
Location: Wichita, Kansas
Tested on multiple systems, this macro works fine. But with XP (atleast the only XP system available for testing), the following commands will not go into game, fullscreen, or windowed...

Code:
1::
Send, 2
Sleep, 3000
Send, 3
Return


Code:
1::
SendPlay, 2
Sleep, 3000
SendPlay, 3
Return


And latest code...

Code:
1::
ControlSend,,2,Dark Age of Camelot`, Copyright © 2001-06 Mythic Entertainment`, Inc.
Sleep, 2000
ControlSend,,3,Dark Age of Camelot`, Copyright © 2001-06 Mythic Entertainment`, Inc.
Return

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Send
PostPosted: May 1st, 2009, 12:44 am 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
You might try this...

Code:
1::
SetKeyDelay, , 100
Send, 2
Sleep, 3000
Send, 3
Return


Code:
1::
SetKeyDelay, , 100
SendPlay, 2
Sleep, 3000
SendPlay, 3
Return


Code:
1::
SetKeyDelay, , 100
ControlSend,,2,Dark Age of Camelot`, Copyright © 2001-06 Mythic Entertainment`, Inc.
Sleep, 2000
ControlSend,,3,Dark Age of Camelot`, Copyright © 2001-06 Mythic Entertainment`, Inc.
Return

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 6:41 am 
Offline

Joined: September 14th, 2007, 6:53 am
Posts: 133
Location: Wichita, Kansas
That's a no go.

Figured after testing with 2 other XP systems, and a few other Vista machines, that it is XP's problem. Something with either Directx/ direct3d/ games and macros.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 11:07 am 
Offline

Joined: March 25th, 2009, 5:15 pm
Posts: 17
have you tried sendinput? just a thought


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 5:05 pm 
Offline

Joined: September 14th, 2007, 6:53 am
Posts: 133
Location: Wichita, Kansas
Would it be used as...

Code:
SendInput,,2,Dark Age of Camelot`, Copyright © 2001-06 Mythic Entertainment`, Inc.
??

Help file doesn't give an example.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 11:02 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
SendInput works just like Send and SendPlay:

Code:
SendInput, 2


But if you have SendMode Input declared at the top of your script you don't need to use SendInput as it is already the default action for Send.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2009, 7:03 pm 
Offline

Joined: September 14th, 2007, 6:53 am
Posts: 133
Location: Wichita, Kansas
Alrighty. Well, I'm glad to report we got it working.

We upgraded the end-users computer to Vista.

Everytime I wrote the macro, it'd ALWAYS work for Vista/W7. Never for any of the XP systems at my disposal. (His, or my 2 friends.) Peculiar thing, I would at the WinActive to force the macro to bring up his window, and if he were OUT of the game (it were alt-tabbed) it'd bring it up, and perform the macro perfectly, just never in-game.

I ended up resolving that AHK just straight up doesn't work with 3d applications on XP. Came to this by none of the support I got here doing the trick, and IRC wasn't exactly helpful.

_________________
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad and 15 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