Greetz, I'm writing a script for a game (Warcraft III). However, the function im expirienceing problems with must check 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 decide to 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 Msg 2. //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 ..?
EndFunc One more question - how can i check if mouse button is clicked? --- thx..