[-]
Shout:
Click Refresh to load shouts.

Post Reply 
 
Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[AutoIt] Open Tibia > Open NG > load scipts
02-02-2009, 10:24 AM (This post was last modified: 02-02-2009 10:48 AM by mamut. Edit Reason: )
Post: #1
[AutoIt] Open Tibia > Open NG > load scipts
I want to automate "full load char", it is:
1. Load Tibia client and NG
3. Find TibiaNG Bot findow
4. Load script
5. Load settings

I tried:
PHP Code:
Run("D:\Games\Tibia\Tibia.exe"
and
PHP Code:
Run("Tibia.exe""D:\Games\Tibia\") 
but doesn't work and I don't know why. I only found run Tibia client as shortcut and it's looks like:
PHP Code:
Run ( @ComSpec ' /c "D:\Shortcuts\Tibia.lnk" engine 0' 

Ok this is not so important.
Mainly problem is to load script or settings. How to find properly TibiaBot NG window?
Why it is problem? well, look on this:
"AutoIt v3 Windows Info" says:

This is Tibia window with loaded NG:
PHP Code:
>>>> Window <<<<
Title:    TibiaBot NG
Class:    TibiaClient 
and this is NG window:
PHP Code:
>>>> Window <<<<
Title:    TibiaBot NG
Class:    TForm2 
and now when i try use function
PHP Code:
WinGetTitle("TibiaBot NG"
this is return me random windows (between Tibia Client and NG)

How to figure out?
I think to make a something like this:
PHP Code:
for x:=0 to 'last window' do
if ((
window[x].class = TibiaClient) and (window[x].Title "TibiaBot NG")) then return window.
in AutoIt

Could somebody help me?
Find all posts by this user
Quote this message in a reply
Post Reply 



Contact UsTProgrammingReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication