Sign in to follow this  
Followers 0
dazzyreil

Am I Stupid ?

35 posts in this topic

$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 :D


Share this post


Link to post
Share on other sites



Because daz is neither a literal string, a number or a variable.

Share this post


Link to post
Share on other sites

told ya i was stupid :D

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 :huh2: i think you know what i mean anyway :)


Share this post


Link to post
Share on other sites

Oh, and the syntax for If...Then...Else is wrong as well. The help file should solve both these problems.

Share this post


Link to post
Share on other sites

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 :huh2:

is that so hard to do ?? :D


Share this post


Link to post
Share on other sites

Can't find that word in the helpfile so must be a wrong .... :D

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 :huh2:

:D

really dunno what i did wrong :)


Share this post


Link to post
Share on other sites

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 :huh2:

:D

really dunno what i did wrong :)

can you supply a dictonairy with your posts ???

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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


Share this post


Link to post
Share on other sites

#10 ·  Posted

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)

Share this post


Link to post
Share on other sites

#11 ·  Posted

can you supply a dictonairy with your posts ???

No reason to get rude is it ?

Share this post


Link to post
Share on other sites

#12 ·  Posted

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 :D

Share this post


Link to post
Share on other sites

#13 ·  Posted

yeah thats what i forgot thx :D

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)

Share this post


Link to post
Share on other sites

#14 ·  Posted

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..


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#15 ·  Posted (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 :D

but i was in a hurry so thats why the spelling and the sentences arn't that great :huh2:

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 :lol:

edit2: lol now its a hot topic!!

Edited by dazzyreil

Share this post


Link to post
Share on other sites

#16 ·  Posted

i wont talk slang and use weird abbreviations :huh2:

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 :lol:

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!!

:D hé ... i understood everything you wrote here!!! :( ....... tnx

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#18 ·  Posted

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 :D I will now avoid making Dutch jokes.

have a good one.


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

#19 ·  Posted

Hey I resemble that comment :huh2:

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" :D


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#20 ·  Posted

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 :lol: I will now avoid making Dutch jokes.

have a good one.

Hé ... What is this bit about "Dutch jokes" :D

:huh2::)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0