Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ChangeProfile

Change current profile to profile with name ProfileName

Keep in mind then following:

  • The current character must be disconnected
  • Only one script should be running
  • Specified profile must exist. Important - profile name is case sensitive.

If the profile is successful, the function returns 0, otherwise returns an error code:

  • -1 Internal error
  • -2 Char connected or is in the process of connecting
  • -3 More than one script is running
  • -4 The specified profile does not exist

Pascal

function ChangeProfile(ProfileName : String) : Integer

Python

ChangeProfile(ProfileName)

Example

Disconnect;
ChangeProfile('Test1')
Connect;