 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Anonymous Coward Guest
|
Posted: Sun Jun 26, 2005 11:15 am Post subject: |
|
|
@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...
Seems the game is too 'weird' to control with AutoHotkey... |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 755 Location: Berlin
|
Posted: Sun Jun 26, 2005 11:29 am Post subject: |
|
|
There is an answer to your original question on the CryLand forum...
| 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...  _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
Anonymous Coward Guest
|
Posted: Sun Jun 26, 2005 1:26 pm Post subject: |
|
|
Ah, thank you! Great! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|