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 

FarCry - Hotkeys - HELP!
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
Anonymous Coward
Guest





PostPosted: Sun Jun 26, 2005 11:15 am    Post subject: Reply with quote

@Spike: Yes, I also tried shift-insert...

I tried all I know of:

This is an example with Notepad (FarCry doesn't do WM_COMMAND messages):

Code:
Run, notepad.exe
WinActivate, Untitled - Notepad
WinWaitActive, Untitled - Notepad

; control and v
clipboard = control and v
Send, ^v
Send, `n
Sleep, 100

; shift and insert
clipboard = shift and insert
Send, +{INS}
Send, `n
Sleep, 100

; send clipboard
clipboard = send clipboard
Send, %clipboard%
Send, `n
Sleep, 100

; sendraw clipboard
clipboard = sendraw clipboard
SendRaw %clipboard%
Send, `n
Sleep, 100

; postmessage
clipboard = postmessage
PostMessage, 0x111,770,,,A
Send, `n
Sleep, 100

; select menu
clipboard = select menu
WinMenuSelectItem, Untitled - Notepad, , Edit, Paste
Send, `n
Sleep, 100


None of these methods (adapted to FarCry) work satisfactory...

FarCry does however send a keyup command (?), which should look something like this:

Code:
PostMessage, 0x101,0x00000012,0x80380001,A


But I cannot get that to work either... Crying or Very sad

Seems the game is too 'weird' to control with AutoHotkey...
Back to top
daonlyfreez



Joined: 16 Mar 2005
Posts: 755
Location: Berlin

PostPosted: Sun Jun 26, 2005 11:29 am    Post subject: Reply with quote

There is an answer to your original question on the CryLand forum... Smile

Quote:
Hallo,Hello

erstelle eine Datei mit den Namen playercfg.lua
Folgende Beispiele kannst du rein schreiben:

Input:BindCommandToKey("\\sayteam -->Incoming on the Left<--","numpad7","");
Input:BindCommandToKey("\\sayteam -->Incoming on the Right<--","numpad9","");
Input:BindCommandToKey("\\sayteam -->Incoming on the Center<--","numpad8","");
Input:BindCommandToKey("\\sayteam Incoming Cover the FLAG!!","numpad6","");
Input:BindCommandToKey("\\sayteam $4Flag is in Imminent DANGER - GET ON IT!!","#","");
Input:BindCommandToKey("\\sayteam $4Join in everybody - come on!!!!!","[","");
Input:BindCommandToKey("\\sayteam Cover the FLAG!","]","");
Input:BindCommandToKey("\\\callvote restart","divide","");
Input:BindCommandToKey("\\\vote yes","add","");
Input:BindCommandToKey("\\\vote no","subtract","");


Seems you don't need AutoHotkey for this... Very Happy
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message
Anonymous Coward
Guest





PostPosted: Sun Jun 26, 2005 1:26 pm    Post subject: Reply with quote

Very Happy Ah, thank you! Great!
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