Skip to content

dongosho/Kantu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kantu

Example code for working with the Kantu API. The api is ideal for more complex automation tasks, when a "linear" macro is not sufficient. The API allows you to control all Kantu functions from your favorite programming or scripting language. Note that some "ready to run" VBS and Powershell sample scripts are automatically installed with Kantu. Youn find them in the folder "This PC"/documents/kantu/api

Documentation: https://a9t9.com/kantu/docs

API: https://a9t9.com/kantu/docs#api

FAQ: https://a9t9.com/kantu/docs#faq

Kantu separates the linear website flow logic (the screenshot scripts) and the programming/scripting logic with this Scripting API. So for tasks like condidtional statements, use the API Scripting Interface. The PLAY command always returns detailed status and error information, and use can use this to base your IF/THEN/ELSE decisions on:

IntegerReturnValue = objKantu.Play ("KantuMacro1.kmacro")

if IntegerReturnValue = 1 then
  'Do something
  MsgBox "OK!"
else
  'error, do something else, like running another Kantu macro.
  IntegerReturnValue = objKantu.Play ("KantuMacro2.kmacro")
end if

Technically, the API is implemented as a Windows COM interface. So while this example uses the VBS/Visual Basic syntax, you can use the Kantu COM object from any programming or scripting language on Windows.

About

Documentation and example scripts for Kantu Web Automation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Visual Basic .NET 26.9%
  • Batchfile 22.9%
  • Java 22.7%
  • PowerShell 14.7%
  • C# 12.8%