dazzyreil Posted May 7, 2004 Share Posted May 7, 2004 $name = inputbox(64, "Database", "input name here") If $name = daz then run("notepad.exe") exit else Run("explorer.exe") endif /me want to know why I am stupid and this doesnt work Link to comment Share on other sites More sharing options...
Valik Posted May 7, 2004 Share Posted May 7, 2004 Because daz is neither a literal string, a number or a variable. Link to comment Share on other sites More sharing options...
dazzyreil Posted May 7, 2004 Author Share Posted May 7, 2004 told ya i was stupid hmm how do i get to work. i want that if i type someting into the inputbox if that matches then it goes to a part off the scripts i think you know what i mean anyway Link to comment Share on other sites More sharing options...
Valik Posted May 7, 2004 Share Posted May 7, 2004 Oh, and the syntax for If...Then...Else is wrong as well. The help file should solve both these problems. Link to comment Share on other sites More sharing options...
dazzyreil Posted May 7, 2004 Author Share Posted May 7, 2004 sry but i dont understand a fuck of this: If $var > 0 Then MsgBox(4096,"", "Value is positive.") ElseIf $var < 0 Then MsgBox(4096,"", "Value is negative.") Else If StringIsXDigit ($var) Then MsgBox(4096,"", "Value might be hexadecimal!") Else MsgBox(4096,"", "Value is either a string or is zero.") EndIf EndIf i dont want all that shit like Elseif blablabla i just want to make the script do something if daz gets typed in the inputbox and if something else gets typed then it should do something else is that so hard to do ?? Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 Can't find that word in the helpfile so must be a wrong .... its not that difficult once you get the hang of it... $name = inputbox(64, "Database", "input name here") If $name = "daz" then run("notepad.exe") else Run("explorer.exe") endif 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...
dazzyreil Posted May 7, 2004 Author Share Posted May 7, 2004 omfg................ i typed that code that you just gave me a 10000 times and the didnt work :S:S weird shit but no it works thx really dunno what i did wrong Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 omfg................i typed that code that you just gave me a 10000 times and the didnt work :S:S weird shit but no it works thx really dunno what i did wrong can you supply a dictonairy with your posts ??? 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...
dazzyreil Posted May 7, 2004 Author Share Posted May 7, 2004 oh i'm sorry but im just a bit busy atm with problems in real life...so im trying to typ fast...in the future ill typ "normal" english sorry Link to comment Share on other sites More sharing options...
emmanuel Posted May 7, 2004 Share Posted May 7, 2004 you need qoutes around strings... If $name = "daz" then run("notepad.exe") slow down and rtfm, it helped me alot. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Helge Posted May 7, 2004 Share Posted May 7, 2004 can you supply a dictonairy with your posts ???No reason to get rude is it ? Link to comment Share on other sites More sharing options...
dazzyreil Posted May 7, 2004 Author Share Posted May 7, 2004 you need qoutes around strings...If $name = "daz" then run("notepad.exe")slow down and rtfm, it helped me alot.yeah thats what i forgot thx Link to comment Share on other sites More sharing options...
emmanuel Posted May 7, 2004 Share Posted May 7, 2004 yeah thats what i forgot thx yeah, as a favor, like in return for the help, you could read this thing in my sig about how to ask smart questions... and rtfm... "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 No reason to get rude is it ?@Helge, I don't understand this remark...I really don't know/understand most of the abbreviations or slang he's using......so thats why i made the remark.. 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...
dazzyreil Posted May 7, 2004 Author Share Posted May 7, 2004 (edited) @Helge, I don't understand this remark...I really don't know/understand most of the abbreviations or slang he's using......so thats why i made the remark..i wont talk slang and use weird abbreviations but i was in a hurry so thats why the spelling and the sentences arn't that great anyway lets not talk about this anymore edit: lol i looked at what I typed and now i understand why you need a dictonairy;)some sentences dont really make sence edit2: lol now its a hot topic!! Edited May 7, 2004 by dazzyreil Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 i wont talk slang and use weird abbreviations but i was in a hurry so thats why the spelling and the sentences arn't that great anyway lets not talk about this anymore edit: lol i looked at what I typed and now i understand why you need a dictonairy;)some sentences dont really make sence edit2: lol now its a hot topic!! hé ... i understood everything you wrote here!!! ....... tnx 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...
Administrators Jon Posted May 7, 2004 Administrators Share Posted May 7, 2004 (edited) Nice sigs, Daz. Edited May 7, 2004 by Jon Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
emmanuel Posted May 7, 2004 Share Posted May 7, 2004 hey, didn't mean to be hard on you, the original post's grammer did set me on my "script kiddy annoyance mode" but since then you've managed to get me outa that spot I will now avoid making Dutch jokes. have a good one. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
scriptkitty Posted May 7, 2004 Share Posted May 7, 2004 Hey I resemble that comment I type first, and think later many times. So my grammer/punctuation looks pretty bad at times. Hopefully I don't set off many "scriptkitty annoyance mode" AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 hey, didn't mean to be hard on you, the original post's grammer did set me on my "script kiddy annoyance mode" but since then you've managed to get me outa that spot I will now avoid making Dutch jokes.have a good one.Hé ... What is this bit about "Dutch jokes" 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...
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