Start application always on required position on screen

Share your macros, knowledge, solutions, services, ...
Post Reply
Petr
Posts: 86
Joined: Tue Oct 18, 2016 1:12 pm

Start application always on required position on screen

Post by Petr » Mon Jul 10, 2017 3:44 pm

This example shows how to always start an application on required position. The example opens Notepad on position [100,100] and sizes its window to [600,400]:

Code: Select all

<execappex>("notepad.exe","","",0,0)<#>
<varset>("vWin=[* - Notepad|Notepad|#77|#99]","")<#>
<waitfor>("WIN","OPEN","%vWin%",15,0)<#>
<if_win>("%vWin%","OPEN",0)<#>
<winmove>("%vWin%",0,100,100)<#>
<winresize>("%vWin%",0,600,400)<#>
<endif>
The example can be also downloaded from here:http://www.pitrinec.com/downloads/sampl ... cation.4tw

Post Reply