Sign in to follow this  
Followers 0
Fargo

Blank CD Size & Another Thing!

5 posts in this topic

My script needs to save some data on CD. So, how can I know the size of a blank CD-R or CD-RW disc the user put in CD writer drive? I tried the autoit built-in function, but that didn't work as the disc's format is still raw.

The other thing is how I can enlarge, through script of course, the Windows' taskbar, where the Start button resides, to hold two rows of taskbar buttons?

Share this post


Link to post
Share on other sites



The other thing is how I can enlarge, through script of course, the Windows' taskbar, where the Start button resides, to hold two rows of taskbar buttons?

You can use 'ControlGetPos()' to get the position of the taskbar. I tried 'ControlMove()' to set a new position but it failed. I don't know why. So I realized it with 'MouseClickDrag()'. Maybe someone knows a better way?

Opt('WINTITLEMATCHMODE', 4)

$aCoord = ControlGetPos('classname=Shell_TrayWnd', '', 'ToolbarWindow322')
$x = @DesktopWidth / 2 ; middle of the taskbar
$y = @DesktopHeight - $aCoord[3] - 5 ; -5 to place the cursor
$speed = 1 ; possible 1 - 100
MouseClickDrag ('left',$x,$y,$x,$y - 25,$speed) ; -25 is right at my resolution to add one row you have to try, - because you make smaller your desktop

Share this post


Link to post
Share on other sites

You can use 'ControlGetPos()' to get the position of the taskbar. I tried 'ControlMove()' to set a new position but it failed. I don't know why. So I realized it with 'MouseClickDrag()'. Maybe someone knows a better way?

Opt('WINTITLEMATCHMODE', 4)

$aCoord = ControlGetPos('classname=Shell_TrayWnd', '', 'ToolbarWindow322')
$x = @DesktopWidth / 2 ; middle of the taskbar
$y = @DesktopHeight - $aCoord[3] - 5 ; -5 to place the cursor
$speed = 1 ; possible 1 - 100
MouseClickDrag ('left',$x,$y,$x,$y - 25,$speed) ; -25 is right at my resolution to add one row you have to try, - because you make smaller your desktop
wow, thank you very much :) This code works very well :whistle:

Do you know how can I know the size of blank cd?

Share this post


Link to post
Share on other sites

Does not a commandline tool like CDRecord handle the burning side of CDs? Normally the burning programs have this desired recognition. Imapi service is little described as anything useful for 3rd party use if you have XP.

Share this post


Link to post
Share on other sites

Can DLL functions be used with SPTI from M$? (spti is installed under winXP by defualt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0