Bert Posted December 6, 2005 Share Posted December 6, 2005 I tried to run the example script that is included in the Autoit Beta: expandcollapse popupinclude <Misc.au3> Local $color $color = _ChooseColor (0) If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","COLORREF rgbColors: " & $color) EndIf $color = _ChooseColor (1) If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex BGR Color: " & $color) EndIf $color = _ChooseColor (2, 255); default color selected using COLORREF rgbcolor If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf $color = _ChooseColor (2, 0x0000FF, 1); default color selected using BGR hex value If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf $color = _ChooseColor (2, 0xFF0000, 2); default color selected using RGB hex value If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf I get a error on line 5. It says _ChooseColor is a unknown function. The version of Autoit I run is 3.1.1.91 Any thoughts? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2005 Developers Share Posted December 6, 2005 Works fine for me when i change the first line to #include <Misc.au3> SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bert Posted December 6, 2005 Author Share Posted December 6, 2005 did that. still get the line 5 error The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Valuater Posted December 6, 2005 Share Posted December 6, 2005 works for me too! 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted December 6, 2005 Share Posted December 6, 2005 expandcollapse popup#include <Misc.au3> MsgBox(0,"Version",@AutoItVersion) Local $color $color = _ChooseColor (0) If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","COLORREF rgbColors: " & $color) EndIf $color = _ChooseColor (1) If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex BGR Color: " & $color) EndIf $color = _ChooseColor (2, 255); default color selected using COLORREF rgbcolor If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf $color = _ChooseColor (2, 0x0000FF, 1); default color selected using BGR hex value If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf $color = _ChooseColor (2, 0xFF0000, 2); default color selected using RGB hex value If (@error) Then MsgBox(0, "", "Error _ChooseColor: " & @error) Else MsgBox(0,"_ChooseColor","Hex RGB Color: " & $color) EndIf 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...
Bert Posted December 6, 2005 Author Share Posted December 6, 2005 Odd. Works on my desktop, not my laptop. Need to run some checks The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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