bobheart Posted May 26, 2004 Share Posted May 26, 2004 I have a bunch of stuff i would like to put in some kind of database and then just put in a input box the word to search and show . (ackground_color) = Background color for the room. So if you put in ackground_color it shows Background color for the room. I look at this one not sure who did it now ? But I don't know if it will work for what I want to do ? expandcollapse popup$AppDataCommonDir = @AppDataCommonDir $AppDataDir = @AppDataDir $AutoItVersion = @AutoItVersion $CommonFilesDir = @CommonFilesDir $Compiled = @Compiled $ComputerName = @ComputerName $ComSpec = @ComSpec $CR = @CR $CRLF = @CRLF $DesktopCommonDir = @DesktopCommonDir $DesktopDir = @DesktopDir $DesktopHeight = @DesktopHeight $DesktopWidth = @DesktopWidth $DocumentsCommonDir = @DocumentsCommonDir $error = @error $FavoritesCommonDir = @FavoritesCommonDir $FavoritesDir = @FavoritesDir $HomeDrive = @HomeDrive $HomePath = @HomePath $HomeShare = @HomeShare $HOUR = @HOUR $IPAddress1 = @IPAddress1 $IPAddress2 = @IPAddress2 $IPAddress3 = @IPAddress3 $IPAddress4 = @IPAddress4 $LF = @LF $LogonDNSDomain = @LogonDNSDomain $LogonDomain = @LogonDomain $LogonServer = @LogonServer $MDAY = @MDAY $MIN = @MIN $MON = @MON $MyDocumentsDir = @MyDocumentsDir $OSBuild = @OSBuild $OSLang = @OSLang $OSServicePack = @OSServicePack $OSTYPE = @OSTYPE $OSVersion = @OSVersion $ProgramFilesDir = @ProgramFilesDir $ProgramsCommonDir = @ProgramsCommonDir $ProgramsDir = @ProgramsDir $ScriptDir = @ScriptDir $ScriptFullPath = @ScriptFullPath $ScriptName = @ScriptName $SEC = @SEC $StartMenuCommonDir = @StartMenuCommonDir $StartMenuDir = @StartMenuDir $StartupCommonDir = @StartupCommonDir $StartupDir = @StartupDir $SW_HIDE = @SW_HIDE $SW_MAXIMIZE = @SW_MAXIMIZE $SW_MINIMIZE = @SW_MINIMIZE $SW_RESTORE = @SW_RESTORE $SW_SHOW = @SW_SHOW $SystemDir = @SystemDir $TAB = @TAB $TempDir = @TempDir $UserProfileDir = @UserProfileDir $UserName = @UserName $WDAY = @WDAY $WindowsDir = @WindowsDir $WorkingDir = @WorkingDir $YDAY = @YDAY $YEAR = @YEAR While 1 $input = InputBox("what's it do?", "type or paste the macro or variable you're wondering about","@CommonFilesDir") If @error = 1 Then Exit;user clicked Cancel or closed the window $result = Eval( StringReplace($input, '@', '') ) If @error Then MsgBox(4096,"Error","Macro " & $input & " was not found.") Else MsgBox(4096,"Macro", $input & " = " & $result) EndIf WEnd Will this work for what I want to do ? and what would go first from the $ ackground_color part or the Background color for the room ? Link to comment Share on other sites More sharing options...
brett Posted May 26, 2004 Share Posted May 26, 2004 SlimShady's Website Database has code that searches for a word, maybe u can look at his code for refrence? and i have no idea what ur trying to do with the background color. -Brett Link to comment Share on other sites More sharing options...
bobheart Posted May 26, 2004 Author Share Posted May 26, 2004 SlimShady's Website Database has code that searches for a word, maybe u can look at his code for refrence? and i have no idea what ur trying to do with the background color.No you didnt understand what I'm trying to do.You the search word would be background_color and the Answer would be Background color for the room see what I mean now ..Or question is = draw_arc(x1,y1,x2,y2,x3,y3,x4,y4) answer is = Draws an arc of an ellipse. . Link to comment Share on other sites More sharing options...
bobheart Posted May 26, 2004 Author Share Posted May 26, 2004 (edited) I tried the one I have listed but I get this error ? --------------------------- AutoIt Error --------------------------- Line 65 (File "E:\Programs\AutoIt3\Examples\English\5_24\gmcode.au3"): $Returns the absolute value of x = abs(x) $Returns ^ ERROR Error: Unknown function name.expandcollapse popup$AppDataCommonDir = @AppDataCommonDir $AppDataDir = @AppDataDir $AutoItVersion = @AutoItVersion $CommonFilesDir = @CommonFilesDir $Compiled = @Compiled $ComputerName = @ComputerName $ComSpec = @ComSpec $CR = @CR $CRLF = @CRLF $DesktopCommonDir = @DesktopCommonDir $DesktopDir = @DesktopDir $DesktopHeight = @DesktopHeight $DesktopWidth = @DesktopWidth $DocumentsCommonDir = @DocumentsCommonDir $error = @error $FavoritesCommonDir = @FavoritesCommonDir $FavoritesDir = @FavoritesDir $HomeDrive = @HomeDrive $HomePath = @HomePath $HomeShare = @HomeShare $HOUR = @HOUR $IPAddress1 = @IPAddress1 $IPAddress2 = @IPAddress2 $IPAddress3 = @IPAddress3 $IPAddress4 = @IPAddress4 $LF = @LF $LogonDNSDomain = @LogonDNSDomain $LogonDomain = @LogonDomain $LogonServer = @LogonServer $MDAY = @MDAY $MIN = @MIN $MON = @MON $MyDocumentsDir = @MyDocumentsDir $OSBuild = @OSBuild $OSLang = @OSLang $OSServicePack = @OSServicePack $OSTYPE = @OSTYPE $OSVersion = @OSVersion $ProgramFilesDir = @ProgramFilesDir $ProgramsCommonDir = @ProgramsCommonDir $ProgramsDir = @ProgramsDir $ScriptDir = @ScriptDir $ScriptFullPath = @ScriptFullPath $ScriptName = @ScriptName $SEC = @SEC $StartMenuCommonDir = @StartMenuCommonDir $StartMenuDir = @StartMenuDir $StartupCommonDir = @StartupCommonDir $StartupDir = @StartupDir $SW_HIDE = @SW_HIDE $SW_MAXIMIZE = @SW_MAXIMIZE $SW_MINIMIZE = @SW_MINIMIZE $SW_RESTORE = @SW_RESTORE $SW_SHOW = @SW_SHOW $SystemDir = @SystemDir $TAB = @TAB $TempDir = @TempDir $UserProfileDir = @UserProfileDir $UserName = @UserName $WDAY = @WDAY $WindowsDir = @WindowsDir $WorkingDir = @WorkingDir $YDAY = @YDAY $YEAR = @YEAR $Returns the absolute value of x = abs(x) While 1 $input = InputBox("what's it do?", "type or paste the macro or variable you're wondering about","@CommonFilesDir") If @error = 1 Then Exit;user clicked Cancel or closed the window $result = Eval( StringReplace($input, '@', '') ) If @error Then MsgBox(4096,"Error","Macro " & $input & " was not found.") Else MsgBox(4096,"Macro", $input & " = " & $result) EndIf WEnd Edited May 26, 2004 by bobheart Link to comment Share on other sites More sharing options...
pekster Posted May 26, 2004 Share Posted May 26, 2004 (edited) That referanced line of code is not valid. If your line begins with a variable, you should have an equals "=" symbol after, and then define the variable. Neither of which you did. Prehaps you ment for that line to be a comment? If not, you need fix the line to make it a valid command (like $var = 1 )Edited to make it sound better Edited May 26, 2004 by pekster [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
bobheart Posted May 26, 2004 Author Share Posted May 26, 2004 Umm ok i have no clue what I'm doing .. 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