I'm new using WIndows API.
I trying with this but does not work.
I know that there are many better ways to do this but I want to learn with API.
I can't find some tutorial about API for autoit using.
Sorry for my bad english.
Posted 13 April 2012 - 05:36 PM
Posted 13 April 2012 - 05:44 PM
Posted 13 April 2012 - 05:54 PM
Edited by Danyfirex, 13 April 2012 - 05:57 PM.
Posted 13 April 2012 - 05:59 PM
Edited by rodent1, 13 April 2012 - 06:04 PM.
Posted 13 April 2012 - 08:28 PM
C:Program FilesAutoIt3IncludeWinAPI.au3
Edited by Zedna, 13 April 2012 - 08:30 PM.
Posted 13 April 2012 - 11:52 PM
OS: Windows 7 - 64bit - Ultimate, AutoIt Version: 3.3.8.1, AutoIt Editor: SciTE, Website: http://www.funk.eu, My unsolved Questions: Get default Window Size and Position, Rotate display by 270 degrees, Get Systray Icons, ...
AMT - Auto-Movie-Thumbnailer (2013-Mar-22)
COP - Color Picker (2009-May-21)
HMW - Hide my Windows (2012-Jan-02)
HRC - HotKey Resolution Changer (2012-May-16)
ICU - Icon Configuration Utility (2013-May-24)
SMF - Search my Files (2013-Apr-25) - THE file info and duplicates search tool
SSD - Set Sound Device (2011-Jan-15)
Posted 14 April 2012 - 02:33 PM
Posted 14 April 2012 - 03:23 PM
Thank you Zenda and KaFu. that helps me so much.
Posted 14 April 2012 - 04:50 PM
sorry Zedna.Zedna
Edited by Danyfirex, 14 April 2012 - 04:51 PM.
Posted 14 April 2012 - 04:57 PM
; Variables to pass as reference Local $SectorsPerCluster Local $BytesPerSector Local $NumberOfFreeClusters Local $TotalNumberOfClusters $calldata=DllCall("Kernel32.dll","int","GetDiskFreeSpaceW","wstr","C:","dword*",$SectorsPerCluster,"dword*",$BytesPerSector,"dword*",$NumberOfFreeClusters,"dword*",$TotalNumberOfClusters) ; The data is returned as an array, even the changed values of the variables $SectorsPerCluster=$calldata[2] $BytesPerSector=$calldata[3] $NumberOfFreeClusters=$calldata[4] $TotalNumberOfClusters=$calldata[5] MsgBox(0,"","Total number of clusters: "&$TotalNumberOfClusters)
Edited by Danyfirex, 14 April 2012 - 05:00 PM.
Posted 14 April 2012 - 06:36 PM
Edited by KaFu, 14 April 2012 - 06:37 PM.
OS: Windows 7 - 64bit - Ultimate, AutoIt Version: 3.3.8.1, AutoIt Editor: SciTE, Website: http://www.funk.eu, My unsolved Questions: Get default Window Size and Position, Rotate display by 270 degrees, Get Systray Icons, ...
AMT - Auto-Movie-Thumbnailer (2013-Mar-22)
COP - Color Picker (2009-May-21)
HMW - Hide my Windows (2012-Jan-02)
HRC - HotKey Resolution Changer (2012-May-16)
ICU - Icon Configuration Utility (2013-May-24)
SMF - Search my Files (2013-Apr-25) - THE file info and duplicates search tool
SSD - Set Sound Device (2011-Jan-15)
Posted 14 April 2012 - 07:32 PM
That is not always correct, please read the parameter type carefully:In the beginning the Windows API was pure ANSI, but in time the need for Unicode support grew overwhelming. The default documentation is in most cases still ANSI, but take a look at the bottom of the MSDN article where it says GetDiskFreeSpaceW (Unicode).
Posted 14 April 2012 - 07:59 PM
OS: Windows 7 - 64bit - Ultimate, AutoIt Version: 3.3.8.1, AutoIt Editor: SciTE, Website: http://www.funk.eu, My unsolved Questions: Get default Window Size and Position, Rotate display by 270 degrees, Get Systray Icons, ...
AMT - Auto-Movie-Thumbnailer (2013-Mar-22)
COP - Color Picker (2009-May-21)
HMW - Hide my Windows (2012-Jan-02)
HRC - HotKey Resolution Changer (2012-May-16)
ICU - Icon Configuration Utility (2013-May-24)
SMF - Search my Files (2013-Apr-25) - THE file info and duplicates search tool
SSD - Set Sound Device (2011-Jan-15)
Posted 14 April 2012 - 09:33 PM
0 members, 0 guests, 0 anonymous users