Is there any way to set position of another program? This guy (on the link below) asked the same question but for C#, can Livecode do this?
http://stackoverflow.com/questions/1364 ... in-c-sharp
Set window position of another program
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Set window position of another program
Dobar dan croivo,
you cannot do this directly in Livecode!
Maybe you can do this with AppleScript on the Mac and VBScript on Windows, but I have no idea how.
Best
Klaus
you cannot do this directly in Livecode!
Maybe you can do this with AppleScript on the Mac and VBScript on Windows, but I have no idea how.
Best
Klaus
Re: Set window position of another program
Danke schon Klaus!
Re: Set window position of another program
Hallo Klaus,Klaus wrote:
Maybe you can do this with AppleScript on the Mac
and VBScript on Windows, but I have no idea how.
Here is how to do that within Livecode..
Put this in a field ( "moveWindow" in my case):
Code: Select all
tell application "System Events" to tell application process "Firefox"
set position of window 1 to {438, 22}
end tell
Code: Select all
do field "moveWindow" as AppleScript
Best,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!