Fargo Posted August 7, 2006 Share Posted August 7, 2006 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? Link to comment Share on other sites More sharing options...
Briegel Posted August 8, 2006 Share Posted August 8, 2006 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 Link to comment Share on other sites More sharing options...
Fargo Posted August 11, 2006 Author Share Posted August 11, 2006 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 desktopwow, thank you very much This code works very well Do you know how can I know the size of blank cd? Link to comment Share on other sites More sharing options...
MHz Posted August 11, 2006 Share Posted August 11, 2006 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. Link to comment Share on other sites More sharing options...
Fargo Posted August 12, 2006 Author Share Posted August 12, 2006 Can DLL functions be used with SPTI from M$? (spti is installed under winXP by defualt) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now