AutoHotkey Community

It is currently May 27th, 2012, 12:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: October 3rd, 2009, 3:34 pm 
Okay, I need some help.

I have written a script which should allow me to cheat (single player only.)

The game is medieval 2 Total War. I just want the hotkey to send the cheat commands in the console window. Text input works, but when I hit the hotkey combo, the hotkey doesnt send my script into the console.

I have tried many combinations of keys to get the script to fire, but i have not been successful. Nothing gets typed into the console box.

here is a look at the script.

^+M::
Send give_trait this GoodCommander 5 {Enter}
Send give_trait this AcademyTrained 2 {Enter}
Send give_trait this AssassinMaster 3 {Enter}
Send give_trait this AssasinCatcher 3 {Enter}
Return

^+U::
Send give_trait this GoodConspirator 3 {Enter}
Send give_trait this GoodSpy 5 {Enter}
Send give_trait this NaturalSpySkill 3 {Enter}
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2009, 7:11 pm 
Offline

Joined: July 29th, 2009, 10:47 pm
Posts: 48
I think it's that plus that's throwing you off. Here's how I'd do it:

Code:
^M::
Send, give_trait this GoodCommander 5{Enter}
Send, give_trait this AcademyTrained 2{Enter}
Send, give_trait this AssassinMaster 3{Enter}
Send, give_trait this AssasinCatcher 3{Enter}
Return

^U::
Send, give_trait this GoodConspirator 3{Enter}
Send, give_trait this GoodSpy 5{Enter}
Send, give_trait this NaturalSpySkill 3{Enter}
return

_________________
Click here to get free games and computer supplies! It's easy and fun! CLICK ME!

EasyAHK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2009, 8:13 pm 
Does not work.
still I've tried all of this.
Ive tried very basic combinations like Just m or j and while it lets me type in the console, autohotkey doesn't activate in the console window.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2009, 8:47 pm 
Offline

Joined: October 2nd, 2009, 12:22 am
Posts: 55
Location: PA
apparently I'm not experienced enough to post here.


Last edited by Zeromod on October 10th, 2009, 11:20 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2009, 12:17 am 
I want to try to use the Tilde key

Like from the mapscreen, I want the flow of infor to go

Send Tilde
Send code
Return

is there a way to make a tilde? I havn't been able to locate it.
all is seems to do is put a space of some sort in there.

I tried your suggestions....

Still no go. :(

I really appreciate the help you are giving me you guys.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2009, 12:59 am 
Here is some additional Information

Alright in the game, you start on a map.
There are characters on the map which you select with the mouse
Once selected you push the Tilde key to open the game's console window.
from there you type give_trait Good commander 5 and it activates the code on the selected character.

The problem is, I cannot get autohotkey to even work in the game. Ill push my Shift+1 hot key in the console in the hopes that it will just automatically enter the code for me. Instead the game just inputs an !.

Ideally I would like to have it setup to enter several codes in one go, which was the original appeal of the program.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2009, 6:36 am 
Offline

Joined: May 12th, 2007, 8:29 am
Posts: 48
I know when i tired to make a AHK work in Everquest i could not because EQ was run in admin (vista) and the AHK program wasn't, unless i compiled it, which was a pain to do when i had to keep making alterations. Try throwing this in the start of the program.


Code:
if not A_IsAdmin
{
DllCall("shell32\ShellExecuteA", uint, 0, str, "RunAs", str, A_AhkPath
, str, """" . A_ScriptFullPath . """", str, A_WorkingDir, int, 1)
ExitApp
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2009, 2:57 pm 
So far, everything is a no go. I know the script works in notepad.

The game just isnt recieving any of the simulated keystrokes.

Ive tried send, send event, send play...

There must be something I can do. My friend used to use autohotkey to do exactly what Im trying to do... only he doesnt have the script, and he doesnt remember how to create it. (his hard drive died)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2009, 6:05 pm 
Offline

Joined: October 2nd, 2009, 12:22 am
Posts: 55
Location: PA
Apparently I'm not experienced enough to post here.


Last edited by Zeromod on October 10th, 2009, 11:19 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2009, 7:39 pm 
Online
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
Don't forget that the backtic "`" needs to be escaped, like "``" in order to show up.

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2009, 12:37 am 
Still a no go.
The game just doesnt recognize anby input whatsoever from Autohotkey.

Ill push a command and none of the keystrokes occur in the game. If I alt tab out the keystrokes are being simulated still, but the game just isnt recieving them
^M::
Send, {Bind} +`
Sleep, 50
Send, give_trait this GoodCommander 5
Send, {Enter}
return

didnt work.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2009, 3:47 am 
Online

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
Did you try any other send modes?
sendinput,
sendplay,
sendraw,
sendevent,

read: Frequently Asked Questions (FAQ)

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2009, 4:32 am 
None of those seem to work either.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2009, 3:48 pm 
Online

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
If you read the FAQ, you should then know why.

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 5th, 2009, 4:06 pm 
Offline

Joined: October 2nd, 2009, 12:22 am
Posts: 55
Location: PA
apparently I'm not experienced enough to post here.


Last edited by Zeromod on October 10th, 2009, 11:21 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Leef_me, Pulover, rbrtryn, XstatyK, Yahoo [Bot] and 14 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