darkdoolb Posted July 27, 2006 Posted July 27, 2006 Greetz,I'm writing a script for a game (Warcraft III). However, the function im expirienceing problems with mustcheck if im sending msg to a certain player (the command must look like this: /w PlayerName Msg),than it should copy this part of the command /w PlayerName in the clipboard. So when i decideto send msg again to the same player -ill be able to type '//r' for example and the scrypt must replace '//r'with his name (from clipboard). This way typing player's name again and again wont be neccessary.1. /w PlayerName Msg2. //r {ENTER} --> /w PlayerName---HotKeySet("{F5}", "slow") Func slow() do MouseClick("right") ;if {F5} pressed again -> break ;how could this be done :ermm: until 1=2; until keypressed={F5} or something ..? EndFuncOne more question - how can i check if mouse button is clicked?--- thx..
B3TA_SCR1PT3R Posted July 27, 2006 Posted July 27, 2006 HotKeySet("{F6}","sendchat") Func sendchat() Send("/w PlayerName") ;;^assumes the chat box is already open EndFunc no need to involve the clipboard [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
darkdoolb Posted July 27, 2006 Author Posted July 27, 2006 (edited) HotKeySet("{F6}","sendchat") Func sendchat() Send("/w PlayerName") ;;^assumes the chat box is already open EndFunc no need to involve the clipboard no i mean - the command uses this form : "/w playername msg" where "/w"==whisper, "playername" is replaced with current player's name and "msg" with the message i want to send. So this wont work. Need some kind of read function. It must read my input text. If i type "/w gosu_14 hi dude" for example, the func must read it and if string start with "/w" and ends with ascii {ENTER} than i should copy "/w gosu_14 ". So when "//r" string is found i replayce it with /w gosu_14 It should be something like aototyping the name of the player im whispering to. (Remembers the name of last recipient) Edited July 27, 2006 by darkdoolb
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