GaryFrost Posted September 14, 2006 Share Posted September 14, 2006 (edited) Decided to export the data file from my favorite tool for getting api constants and converted them so they could be used in autoit by simple clicks and paste.Over 50,000 constants (this is not all the constants available of course).Files have au3 extension for easy editing, keep the file under 4000 records each.Add your own files i.e. a file with all your most used constants.API Constants Version 1.0.0.1API Constants Version 1.0.0.2 (Skinnable)http://www.autoitscript.com/fileman/users/gafrost/APIConstants/Skins/Happy scriptingEnjoy!!!!GaryEdit: Constant(s) added to my copy of the file(s)Const $LVM_MAPIDTOINDEX = $LVM_FIRST + 181 Const $LVM_MAPINDEXTOID = $LVM_FIRST + 180 Edited December 12, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ConsultingJoe Posted September 14, 2006 Share Posted September 14, 2006 looks nice but how do I use these, for example the battery ones? Global Const $BATTERY_CHARGING = 0x4 Global Const $BATTERY_DISCHARGING = 0x2 Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 looks nice but how do I use these, for example the battery ones?Global Const $BATTERY_CHARGING = 0x4Global Const $BATTERY_DISCHARGING = 0x2This is just a little script for getting the constants in AutoIt format for use with things like GuiRegisterMsg, DllCalls etc....Suggest going to MSDN and searching for BATTERY_CHARGING SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 14, 2006 Moderators Share Posted September 14, 2006 Is this from APIViewer 2004 Gary? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 Is this from APIViewer 2004 Gary?Yep, it was some task converting the constants for use with AutoIt. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 14, 2006 Moderators Share Posted September 14, 2006 This is freaking AWESOME! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted September 14, 2006 Share Posted September 14, 2006 Very Nice Gary!!!! I recognize some... but not very many.... maybe someday...lol 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 Updated most of the skins, the ones that I could. The list view item selected was white, couldn't see it, changed them to Red. Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 14, 2006 Moderators Share Posted September 14, 2006 This is great! Now I can give google a rest. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 This is great! Now I can give google a rest. Might have to still google for some, but once you have them just add them to the appropriate file. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
piccaso Posted September 14, 2006 Share Posted September 14, 2006 very nice, dllcalling fun here i come thanks gary! CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
Valik Posted September 14, 2006 Share Posted September 14, 2006 Gary, the one change I'd like to see would be to remove the $ from the ListView. It makes typing a symbol into the ListView to jump straight to it slightly easier. To implement the change, replace line 79 with: GUICtrlCreateListViewItem(StringTrimLeft($Constant, 1), $lv_Constants)oÝ÷ Ø Ý)Þ×~ðØZºÚ"µÍÕRPÝÙ]]J ÌÍÛÔÙ[XÝY ][ÝÐÛÛÝ ÌÍÉ][ÝÈ [È You also have a handful of Au3Check warnings about unused variables or variables used without being declared (Most of the GUI controls are not declared with scope). Either way, this is definitely much easier than opening Visual Studio, typing in the symbol into a source file and using "Find Declaration" to jump to it. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 (edited) Gary, the one change I'd like to see would be to remove the $ from the ListView. It makes typing a symbol into the ListView to jump straight to it slightly easier. To implement the change, replace line 79 with: GUICtrlCreateListViewItem(StringTrimLeft($Constant, 1), $lv_Constants)oÝ÷ Ø Ý)Þ×~ðØZºÚ"µÍÕRPÝÙ]]J ÌÍÛÔÙ[XÝY ][ÝÐÛÛÝ ÌÍÉ][ÝÈ [È You also have a handful of Au3Check warnings about unused variables or variables used without being declared (Most of the GUI controls are not declared with scope). Either way, this is definitely much easier than opening Visual Studio, typing in the symbol into a source file and using "Find Declaration" to jump to it. Updated the Non-Skinnable one with above fixes, should be no warnings now either. Thanks for the input. Later I'll look into adding the ability to do searches. Edited September 14, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valik Posted September 14, 2006 Share Posted September 14, 2006 Updated the Non-Skinnable one with above fixes,Thanks.should be no warnings now either.I still get "Variable declared but not used" warnings for $hwndFrom and $code which are decleared on line 154. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 Thanks.I still get "Variable declared but not used" warnings for $hwndFrom and $code which are decleared on line 154.k, zapped those two, don't need them in this project as of yet, code copied from a scrap i had.Thanks SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Zedna Posted September 14, 2006 Share Posted September 14, 2006 Gary very nice! Thanks. I think this could be included in Scite4AutoIt3. Under Combo could be Edit for filtering listview - here you can type for example "lvm_" Little problem: Your skinned version is not working on WIN98 - when it loads nothing appears (whole app is invisible) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 14, 2006 Moderators Share Posted September 14, 2006 Gary very nice! Thanks.I think this could be included in Scite4AutoIt3.Under Combo could be Edit for filtering listview - here you can type for example "lvm_"Little problem: Your skinned version is not working on WIN98 - when it loads nothing appears (whole app is invisible)I thought that might be a problem for 9x/ME, does windows 98 have gdiplus.dll? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Zedna Posted September 14, 2006 Share Posted September 14, 2006 I thought that might be a problem for 9x/ME, does windows 98 have gdiplus.dll?No it hasn't. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 14, 2006 Moderators Share Posted September 14, 2006 (edited) These are the needed DLL's that need to be in the system folder.http://www.autoitscript.com/fileman/users/gafrost/APIConstants/Needed%20DLLs.zip@Gary, I'm going to run into the same problem with mine, guess I'll check for system and do a fileinstall. Edited September 14, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 14, 2006 Author Share Posted September 14, 2006 These are the needed DLL's that need to be in the system folder.http://www.autoitscript.com/fileman/users/SmOke_N/Needed%20DLLs.zip@Gary, I'm going to run into the same problem with mine, guess I'll check for system and do a fileinstall.My download is fat enough as it is.Put a link on the 1st post for Win9x/Me users to download the needed dlls. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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