The Wiki for Tale 5 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "Takhetu/Code"

From ATITD5
Jump to navigationJump to search
(Created page with "<pre> IfWinExist eGenesis Client { WinGet, GameWinHandle, ID, eGenesis Client } else { Msgbox, eGenesis client not running, exiting... Exit } ;~ Info WinActivate, eGenesis Clie...")
 
Line 11: Line 11:
 
WinGetActiveStats, win_Title, Xmax, Ymax, win_Xpos, win_Ypos
 
WinGetActiveStats, win_Title, Xmax, Ymax, win_Xpos, win_Ypos
  
Imagesearch, PlantX, PlantY, 0,0,150,150,Flax.png
+
;Imagesearch, PlantX, PlantY, 0,0,150,150,Flax.png
 +
PlantX :=18
 +
PlantY :=43
 
mousemove, plantx, planty
 
mousemove, plantx, planty
 
sleep, 5000
 
sleep, 5000

Revision as of 02:21, 26 October 2010

IfWinExist eGenesis Client
{
	WinGet, GameWinHandle, ID, eGenesis Client
} else {
	Msgbox, eGenesis client not running, exiting...
Exit
}
;~ Info
WinActivate, eGenesis Client
WinGetActiveStats, win_Title, Xmax, Ymax, win_Xpos, win_Ypos

;Imagesearch, PlantX, PlantY, 0,0,150,150,Flax.png
PlantX :=18
PlantY :=43
mousemove, plantx, planty
sleep, 5000

loop,
{
		sleep, 5000
}

^Right::
mouseclick, Left, (Xmax/2)+390, (ymax/2)+37
sleep, 500
mouseclick, left, PlantX, PlantY
return
^Left::
mouseclick, Left, (Xmax/2)-450, (ymax/2)+37
sleep, 500
mouseclick, left, PlantX, PlantY
return
^Up::
mouseclick, Left, (Xmax/2), (ymax/2)-410
sleep, 500
mouseclick, left, PlantX, PlantY
return
^Down::
mouseclick, Left, (Xmax/2), (ymax/2)+450
sleep, 500
mouseclick, left, PlantX, PlantY
return

^x::ExitApp