FullScreen

By BlueThen on Nov 23, 2008

FullScreen is a basic mIRC add-on that gives you the ability to take any picwin animation and expand it.

Syntax:/fullscreen -cmr @ [refresh rate in milliseconds]
The -c switch doesn't expand the picwin, but puts it in the center of a blank window.
The -m switch changes the stretch mode quality when the picture is resized.
The -r switch means you stated a refresh rate of the fullscreen window.

If window isn't stated, a popup will come up asking for the window.

http://www.stickam.com/member/viewMedia.do?mId=181760886

/*
FullScreen
Made by BlueThen on November 22, 2008.
To install, paste this script into your remotes (Alt + R)
Then use the syntax:
/fullscreen -cmr @ [refresh rate in milliseconds]
The -c switch doesn't expand the picwin, but puts it in the center of a blank window.
The -m switch changes the stretch mode quality when the picture is resized.
The -r switch means you stated a refresh rate of the fullscreen window. 
If window isn't stated, a popup will come up asking for the window.
*\
alias fullscreen {
  if ($left($1, 1) == -) {
    if (c isin $1) set %full.c y
    if (m isin $1) set %full.m y
    if ((r isin $1) && ($3 isnum)) set %full.r $3
    set %full.win $2
  }
  else {
    if (!$1) set %full.win $$?="Window? (@ included)"
    else set %full.win $1
  }
  if (($left(%full.win,1) != @) || (!$window(%full.win))) echo -a 4Invalid window.
  window -paozCdk0 +dn @FullScreen -1 -1 $window(-1).w $window(-1).h
  fullscreen.frame
}
alias -l fullscreen.frame {
  if ($window(@fullscreen)) {
    drawcopy $iif(%full.m == y, -m, $null) %full.win 0 0 $window(%full.win).w $window(%full.win).h @FullScreen $iif(%full.c == y, $calc(($window(-1).w / 2) - ($window(%full.win).w / 2)), 0) $iif(%full.c == y, $calc(($window(-1).h / 2) - ($window(%full.win).h / 2)), 0) $iif(%full.c == y, $window(%full.win).w, $window(-1).w) $iif(%full.c == y, $window(%full.win).h, $window(-1).h)
    .timer -m 1 $iif(%full.r, $v1, 0) fullscreen.frame
  }
}
on *:keydown:@fullscreen:27: {
  window -c @fullscreen
  unset %full.*
}

Comments

Sign in to comment.
Typo   -  Dec 03, 2008

I love the idea but it doesnt quite perform right.

In some cases the picture didn't fill the fullscreen window and the fullscreen window itself isnt actually fullscreen.

It doesnt maintain the aspect ratio either which makes some pictures look very odd when switched to fullscreen.

I also suggest you make any single key press close the fullscreen window since your not giving it a proper frame with an x like a nrmal window.

I know that this script is a toughie because I had to tackle the same thing when adding the ability to view pictures in fullscreen mode to my ViewPic script. The aspect ratio part alone took me some time to nail and figuring out the proper window paramaters to get the window right was a pain too.

Its a good start but honestly needs work. I love the concept tho.

Good luck.

p.s. If you would like to try out Typos ViewPic to test the fullscreen mode it's posted here on hawkee at http://www.hawkee.com/snippet/4955/ .

 Respond  
inti-garcia   -  Nov 29, 2008

I dont get it

 Respond  
Hawkee   -  Nov 24, 2008

Seems like a good concept. Maybe a before and after screenshot showing what it can do?

 Respond  
burford   -  Nov 24, 2008

No comments?? Hmmm, I am depressed

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.