winIDEA SDK
test_window_manipulation.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8winidea_id = ''
9
10
11def test_windowManipulation():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 ideCtrl = ic.CIDEController(connMgr)
16
17 print("Bringing winIDEA on top of all opened windows...")
18 ideCtrl.bringWinIDEAToTop()
19
20 print(f"Moving and resizing winIDEA GUI...")
21 # NOTE: reference point is a top left corner
22 ideCtrl.move(10, 20, 600, 400)
23
24 print(f"Maximizing window...")
25 ideCtrl.maximize()
26
27 print(f"Minimizing window...")
28 ideCtrl.minimize()
29
30 print(f"Restoring window size and position...")
31 ideCtrl.restore()
32
33
34if __name__ == "__main__":
35 test_windowManipulation()