View Single Post
  #9  
Old 11-30-2005, 06:12 AM
tigerite tigerite is offline
Senior Member
 
Join Date: Sep 2004
Posts: 360
Default Re: is there a mod for level info?

Here's a very basic idea:


;Get window under mouse
MouseGetPos, , , win_id

;Check it's a party table

WinGetClass, table_class, ahk_id %win_id%

if table_class <> #32770
return

WinGetTitle, table_title, ahk_id %win_id%

if table_title not contains Table,
return

if table_title not contains Good Luck,
return

; if it gets here it's safe to say it's a party table

SetControlDelay, 0
; Static4 is actually Static5 in the Beta, I think
ControlGetText, trny_text, Static4, ahk_id %win_id%

; do some processing with trny_text here
; then set it back

ControlSetText, Static4, %trny_text%, ahk_id %win_id%

; redraw the window
WinSet, ReDraw, , ahk_id %win_id%
Reply With Quote