Table of Contents
Tool Gia hạn thời gian dùng thử phần mềm Balsamiq
Tool
Chạy python script
sau
import json
import os
import time
APP_DATA = os.getenv('APPDATA')
LOCAL_SETTINGS = rf"{APP_DATA}\Balsamiq\Balsamiq Wireframes\LocalSettings.json"
print("Lưu ý: Script này không kích hoạt phần mềm Balsamiq Wireframes")
print("nhưng sẽ kéo dài thời gian dùng thử cho bạn.")
print("")
years = int(input("Nhập số năm bạn muốn gia hạn dùng thử rồi ấn enter:"))
years2seconds = years * 365 * 24 * 60 * 60
print(f"Reading from {LOCAL_SETTINGS}")
jsonFile = open(LOCAL_SETTINGS)
jsonData = json.load(jsonFile)
jsonData['DefaultSelectionColorRGBA'] = int(time.time()) + years2seconds
print(f"Writing to {LOCAL_SETTINGS}")
with open(LOCAL_SETTINGS, 'w') as outfile:
json.dump(jsonData, outfile)