View Single Post
  #10  
Old 01-06-2007, 08:00 PM
Sciolist Sciolist is offline
Senior Member
 
Join Date: Jun 2005
Location: London
Posts: 4,135
Default Re: AHK Problem/Opening Tables

OK, now I am unable to get it to put focus back in the lobby for some reason. The first table opens fine, but then the second SendRaw doesn't do anything (it doesn't send, as far as I can see, or if it does, it sends somewhere else). Am I putting focus on the lobby in the wrong way?

table_name1 to 4 have the data in correctly.

<font class="small">Code:</font><hr /><pre>
array_count = 0
array_count++ ; Just doing it this way for test, will be loop

ControlFocus, SysListView321, ahk_id%lobby_id%
SendRaw, % table_name%array_count%

ControlGet, name, List, Focused Col1, SysListView321, ahk_id%lobby_id%

If (name = table_name%array_count%)
{
ControlSend, SysListView321, {Enter}, ahk_id%lobby_id%

Loop
{
IfWinExist, % table_name%array_count%
{
break
}
}
}



array_count++ ; Back to start of "loop"
ControlFocus, SysListView321, ahk_id%lobby_id%
SendRaw, % table_name%array_count% ; Nothing happens?
</pre><hr />
Reply With Quote