I use Autohotkey to load all my chars with Xeno and rename his Tibia windows with only 1 hotkey
I use Autohotkey to load all my chars with Xeno and rename his Tibia windows with only 1 hotkey
Ok, since I'm a cool guy here goes my lil tutorial.
Adding the following code on AutoHotkey's scripts.
Here you put all your chars's acc and pass and the hotkeys that you will use to open em
OBS1:PHP Code:
^1::
Account = YOUR ACCCOUNT HERE
Pass = YOUR PASS HERE
Title = GUARDS - DWARF HELL
N = 0
Goto, OpenTibia
return
^2::
Account = YOUR ACCCOUNT2 HERE
Pass = YOUR PASS2 HERE
Title = TITLE OF TIBIA WINDOW HERE
N = 1
Goto, OpenTibia
return
^1 means you will click CTRL + 1 to start the script that will open the listed account
^2 means CTRL + 2
...
#1 means WinKey + 1
OBS2:
Variable N is the order where your script is in the xeno's settings folder as the following example:
And here is where the magic happens:
OBS3: Backslashes failed, where you see C:Program FilesXenoBotInjector.exe understand as C:\Program Files\XenoBot\Injector.exePHP Code:
OpenTibia:
Run, C:\\Program Files\\Tibia\\Tibia.exe, C:\\Program Files\\Tibia
WinWaitActive, Tibia
WinMaximize, Tibia
Goto, LoadXeno
return
LoadXeno:
Run, C:\\Program Files\\XenoBot\Injector.exe, C:\\Program Files\\XenoBot
Sleep 1000
WinActivate, XenoBot Injector
Sleep 2000
ControlClick, x150 y180, XenoBot Injector
Sleep 50
ControlClick, x150 y180, XenoBot Injector
Sleep 50
ControlClick, x150 y180, XenoBot Injector
Sleep 150
ControlClick, x205 y54, XenoBot Injector
Sleep 50
ControlClick, x205 y54, XenoBot Injector
Sleep 300
ControlClick, x323 y142, XenoBot Injector
Sleep 50
ControlClick, x323 y142, XenoBot Injector
Sleep 500
WinActivate, Tibia
Sleep 500
Click 75 84
Loop, %N%
{
Sleep 150
Click 918 410
}
Sleep 500
Click 950 483
Sleep 300
Click 763 565
Sleep 300
Click 958 565
Sleep 300
IfWinActive, Tibia
Goto, LoadChar
return
LoadChar:
Sleep 500
Click 110 728
Sleep 810
SendInput %Account%
Sleep 702
SendInput {Tab}
Sleep 800
SendInput %Pass%
Sleep 901
IfWinActive, Tibia
WinSetTitle, %A_ThisHotkey% - %Title%
return
This script will take you to your account, you will have to select your char manually and also open scripts manually but its still usefull if you hate to open 10000 accounts.
Result is:
![]()
Last edited by flpsan; 01-17-2013 at 09:46 PM.
This is mad
Thanks for sharing your script bro. I did try it out and it works great
It is really damn helpful to be honest since configuring everything manually takes time. I have looked at Autohotkey before but didn't come around making something like this myself. Props to you for sharing![]()
Thought I would share some autohotkey scripts I use.
This one will open that last flashing window. It pretty useful with multiple clients since you can quickly restore the client that needs attention. I use the paragraph key, you can change that on the last line.
Minimize window with Capslock and restore last minimized with Shift+CapslockCode:; ************************************** ; *** Switch to Last Flashing Window *** ; ************************************** ; set trigger for flashing window InitFlashingWinTrigger: flashWinID = Gui +LastFound hWnd := WinExist() , DllCall( "RegisterShellHookWindow", UInt,hWnd ) MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) OnMessage( MsgNum, "ShellMessage" ) Return ShellMessage( wParam,lParam ) { If ( wParam = 0x8006 ) ; 0x8006 is 32774 as shown in Spy! { global flashWinID flashWinID := lParam } } ; paragraph (§) - activate last flashing window §:: WinActivate, ahk_id %flashWinID%
Change window title. I use it to easier see which client is what and whereCode:; ************************************************** ; *** Minimize Window and restore last minimized *** ; ************************************************** Capslock::WinMinimize,A +Capslock:: LastMinimized := LastMinimizedWindow() WinGetTitle, WinTitle, ahk_id %LastMinimized% WinRestore, %WinTitle% WinActivate, %WinTitle% return LastMinimizedWindow() { WinGet, Windows, List Loop, %Windows% { WinGet, WinState, MinMax, % "ahk_id" Windows%A_Index% if (WinState = -1) return Windows%A_Index% } }
Code:; *************************** ; *** Change Window Title *** ; *************************** #t:: WinGetTitle, oldTitle, A InputBox, newTitle WinSetTitle, %oldTitle%,, %newTitle% return
Last edited by mrasdf; 01-22-2013 at 09:24 AM.
You know what would be really useful... A single heal / attack hotkey which auto-casts the best "available" spell.
A new hotkeys window, in which you link a script, the script contains something like
Would be quite nice, and the same logic could be applied to casting attack spells, so like if Self.CanCast('Exori San') and Target.Name == 'Dragon'~~~.PHP Code:
if Mana > 210 and Self.CanCast('Exura Gran San') and Health < 500 then
Self.Cast('Exura Gran San')
elseif Mana > 70 and Self.CanCast('Exura Gran') and Health < 800 then
Self.Cast('Exura Gran')
elseif Mana > 20 and Self.CanCast('Exura') and Health < 1000 then
Self.Cast('Exura')
Might pop it in suggestions, would be great to link Insert to heal, and Del to attack, as opposed to just F1-F6...
You cannot fail, so I'm lowering the standard.
http://webpages.charter.net/krumsick/
works on all windows as far as I know, I used it for xp and now on w7 64.