qixx Posted August 2, 2009 Share Posted August 2, 2009 English:So, my question is, how I do it,that if I press the M button, thethe text only typing in the chat input boxif this is closed, so noif I write a text with an "M" in themiddle of my message stands "EXAMPLE TEXT" >_< Description for code:GTA:SA:MP = The program t = Open the input boxEXAMPLE TEXT = Text is typing{ENTER} = Send the message into chatSry for my english, but I'm german. ---------------------------------------------Deutsch:Also, meine Frage ist, wie ich es schaffe,dass ich, wenn ich die Taste M drücke, derText nur in die Chat-Input-Box gerschriebenwird, wenn dieses geschlossen ist, damit nicht,wenn ich einen Text mit einem M schreibe, mittendrin das "EXAMPLE TEXT" steht. Erklärung für den Code:GTA:SA:MP = Das Programmt = Öffnet die Chat-Input-BoxEXAMPLE TEXT = Der Text, der gesendet werden soll{ENTER} = Sendet den Text in den Chat---------------------------------------------The Code:HotKeySet(M, "_start1") Func _start1() If WinActive("GTA:SA:MP") Then Send("T") Send("EXAMPLE TEXT") Send("{ENTER}") Else EndIf EndFunc Link to comment Share on other sites More sharing options...
GEOSoft Posted August 2, 2009 Share Posted August 2, 2009 Use a different HotKey and make sure you enclose the key in quotes. You didn't do that in your code. HotKeySet("^m", "_Start1") George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
qixx Posted August 2, 2009 Author Share Posted August 2, 2009 (edited) Yes, i know that it would be better touse another key, but I'm want to use M. All auf the F1-F12 keys I used. Now I haveto use some other keys like "M". >_<Edit:I know, that it works. I used the Chaos A.D. Keybinder and this works.The problem with this program is, thatit have to few input boxes. Edited August 2, 2009 by qixx Link to comment Share on other sites More sharing options...
Info Posted August 2, 2009 Share Posted August 2, 2009 Also, 'Else' isn't a must in every If statement. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now