What's new

WizoScript OptionsDialog always on top

cadtec

Senior Member
Code:
Win = Windows()
PropertyInput = []
CircleDiameter = PropertyInput.append(["Zylinderdurchmesser", WindowsInputTypes.Real, 0])
ExtrusionLengthCircle = PropertyInput.append(["Zylinderlänge", WindowsInputTypes.Real, 0])
LengthCube = PropertyInput.append(["Seitenlänge Würfel", WindowsInputTypes.Real, 0])
ValuesProperties = Win.OptionsDialog("Figurenmasse (mm)", PropertyInput)

I tried to import win32gui etc. just like in python but i didn't work. So i just want the Window to stay on top whilest switching between the OptionsDialog and Alibre V2017.

Thanks to anybody who's posting ideas :)
 

ajayre

Alibre Super User
The window created by the script is running in the WizoScript application, so if you switch the focus to AD then AD will be on top. Best way is to resize the windows so they are side-by-side.

Andy
 

NateLiquidGravity

Alibre Super User
Here is an AutoHotkey script to keep WizoScript windows always on top.
Code:
;
; AutoHotkey Version: v1.1.22.09
; Language:       English
; Platform:       Windows 7
; Author:         LiquidGravity
;
; Script Function:
;    Keep WizoScript Window Always on Top (unless minimized)
;

#SingleInstance,Force
#Persistent
#NoEnv

GroupAdd, AOTGroup , ahk_exe WizoScript.exe
SetTimer, MoveOnTop, 1000
Return


MoveOnTop:
  WinGet, id, list, ahk_group AOTGroup
  Loop, %id%
  {
    this_id := id%A_Index%
    WinGet, ExStyle, ExStyle, ahk_id %this_id%
    If Not (ExStyle & 0x8)  ; 0x8 is WS_EX_TOPMOST.
    WinSet, AlwaysOnTop, toggle, ahk_id %this_id%
  }
Return
 
Top