Hi, i try to set the position of the "Relax Tool" dialog right against the mouse cursor. Here is code from the help which alerts me when the dialog is opened. But how can i modifiy it's position? I didn't found anything in the help and also no examples using dotNet. :,(
DialogMonitorOPS.unRegisterNotification id:#eyeInTheSky
fn dmnotification =
(
WindowHandle = DialogMonitorOPS.GetWindowHandle()
dialogName = UIAccessor.GetWindowText WindowHandle;
if (dialogName == "Relax Tool") do messageBox("test");
true
)
DialogMonitorOPS.RegisterNotification dmnotification id:#eyeInTheSky
DialogMonitorOPS.Enabled = true
DialogMonitorOPS.ShowNotification()
Replies
It actually compiles dotNET code in memory to collect and move windows and dialogs. He has a post about it here, but the latest code is on scriptspot: http://lonerobot.net/?p=710
mostly referenced this code
You can setup a dialog name and the button which should be pressed automatically and when the script runs (after click on "activate") it will do the work for you as long as you not hit "deactivate". Works well for me and also saves the setup in a file for the next start.