Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Aspect Script to Create New Chat Window 1

Status
Not open for further replies.

MrKappaman

Programmer
Dec 5, 2003
5
US
What it the equivelant to using the pull-down DATA -> CHAT WINDOW... in Aspect script?
 
Unbelievable!! I searched and searched and was sure it couldn't be done. This was my last resort. I shoulda come here first. THANK YOU!
 
FYI for anyone who is interested, you can find the menu information in pw5menu.inc, located in the ASPECT directory. Some of the FTP entries aren't correct, but I have the right values on my site.


aspect@aspectscripting.com
 
Using Aspect Script, how do I write to the Chat Window? (I suppose DDE is required if i really want control of what's happening?) Thank you. -k

 
Your script would need to use winactivate $CHATWIN to ensure that the chat window had focus, then could use sendkeystr to send text to the chat window. Here is a quick example:

proc main
if $CHATWIN != 0
winactivate $CHATWIN
sendkeystr "test"
endif
endproc

aspect@aspectscripting.com
 
Thank you knob.

Is it possible (easy) to paste the contents of the clipboard to the chat window?

Regards, -k
 
Here is how you could paste text to the chat window (basically just sending a Ctrl-V):

proc main
if $CHATWIN != 0
winactivate $CHATWIN
sendkey CTRL 'V'
endif
endproc

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top