WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Sample code
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WBT Scrolls across a Screen and Grows a Window

Keywords: scrollable scrolls scrolling

This sample script which places a specific sized window on the screen and then scrolls it across the screen making the window larger.
; ZORKLE.WBT 
Run("sol.exe","")

x=WinMetrics(0)
y=WinMetrics(1)
w=x/5
h =y/5
sx=0
sy=0

for i=1 to 10
  WinPlace(sx,sy,sx+w,sx+h,"Solitaire")
  sx=((x/10)*i)-w;
  sy=((y/10)*i)-h
  w=w+x/20
  h=h+y/20
  delay(1)
next

WinZoom("Solitaire")


Article ID:   W13759
Filename:   WBT Scrolls across a Window and Makes it Larger.txt
File Created: 1999:04:15:16:56:10
Last Updated: 1999:04:15:16:56:10