Jump to content
JustinZandee

Some questions about my script

Recommended Posts

JustinZandee

Hello everyone,

I want to ask some questions about my script which I have right now.

1. I have a question about this: 

$password = InputBox("Password","Enter your password.")
$confirmpassword = MsgBox(4,"Password","Are you sure that the desired password is " & $password)
If $confirmpassword = 7 Then
    $password = InputBox("Password","Enter the desired password.")
    $confirmpassword = MsgBox(4,"Password","Are you sure that the desired password is " & $password)

Else
    
EndIf

  How can I make it so when they click on 'no' again after "$confirmpassword = MsgBox(4,"Password","Are you sure that the desired password is " & $password)" that they get the "$password = InputBox("Password","Enter your password.")" again?

2. How can I make it so the program does something on a specific time stamp (with seconds)? I am Dutch, so when it is 13:00.00, it means 1 PM.

 

3. How can I stop SciTe from overwriting sentences? https://gyazo.com/6f885c086a0a2fcd5a07c3133745a943

 

This were my questions for now. I hope I will get help quickly.

Thanks.

 

Greetings, Justin

Share this post


Link to post
Share on other sites
BlackDistrib

1. Sorry can not help.

2. Maybe use @SEC?

3. Hit you 'INSERT' key.

Share this post


Link to post
Share on other sites
JustinZandee

Thanks for your help for now. But to other people what I mean't to say with 2. is the time in HOURS, MINUTES & SECONDS!

Share this post


Link to post
Share on other sites
Jos

1.Something like:

Do
    $password = InputBox("Password","Enter the desired password.")
Until MsgBox(4,"Password","Are you sure that the desired password is " & $password) <> 7

 

1 hour ago, JustinZandee said:

I am Dutch

2. Maakt dat uit? :)   Just use the @HOUR/@MIN/@SEC macro's. Look at the helpfile for them and also look at the _Date* functions.

3.  You probably hit the Ins button which toggles between overwrite and insert. Status at the Left bottom shows either OVR or INS.

Jos

 


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

Share this post


Link to post
Share on other sites
JustinZandee

@Jos 

1. Kan je uitleggen hoe ik dat moet doen. Dat hij bijvoorbeeld een msgbox met "hoi" doet om 12:00.00

2. En wat betekend <> 7 dan?

Heb je trouwens Skype zodat ik je een berichtje kan sturen als ik hulp nodig heb?

Share this post


Link to post
Share on other sites
Jos

Lets do this in English so everybody can benefit form this discussion. ;)

1. Have you even looked before asking me to type this code for you? I am a pretty lazy person when it comes having to do all the typing for somebody else but will help when some effort is shown and code is posted. 

2. Again something you can find in the helpfile, but it is pretty simple: that loop keeps looping until the retuncode of the MsgBox is equal to 7. So "<>" means "Not Equal".

Jos


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

Share this post


Link to post
Share on other sites
JustinZandee

@Jos was just wondering, how old are you? Because you joined 2003. :o

Share this post


Link to post
Share on other sites
Jos

...  leuk...  gewoon even een persoonlijke vraag in open forum. :)    
Ik ben 58, dus ga al een poosje mee in de IT wereld. ;)

Jos

 


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

Share this post


Link to post
Share on other sites
JustinZandee

@Jos Sooo... Dan ben je best goed in Engels.. :P De meeste 50+'ers kunnen geen reet Engels ;) Maar dat is al best oud dan.. 

Share this post


Link to post
Share on other sites
Jos

Ik heb het grootste deel van mijn leven voor Amerikaanse bedrijven gewerkt dus heb voornamelijk in "een soort van Engels" geschreven en gesproken in mijn werk. :)

3 minutes ago, JustinZandee said:

Maar dat is al best oud dan..

Dit zegt iets over jouw leeftijd, omdat het relatief is...  voor mij is mijn moeder erg oud... ik nog niet.

Jos

 

Edited by Jos

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

Share this post


Link to post
Share on other sites
JustinZandee
1 minute ago, Jos said:

Ik heb het grootste deel van mijn leven voor Amerikaanse bedrijven gewerkt dus heb voornamelijk in "een soort van Engels" geschreven en gesproken in mijn werk. :)

Jos

 

Wow... Bekende Amerikaanse bedrijven? :) 

Share this post


Link to post
Share on other sites
JustinZandee
2 minutes ago, Jos said:

Dit zegt iets over jouw leeftijd, omdat het relatief is...  voor mij is mij moeder erg oud... ik nog niet.

Haha.. Ik ben 12, word bijna 13.. (Best jong nu ik er over na denk :P )

Share this post


Link to post
Share on other sites
Jos

Let's continue in PM  and not bother all those none Dutch speaking people with our complicated crazy Dutch language. :)

Jos

Edited by Jos

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

Share this post


Link to post
Share on other sites
RTFC
On 6/23/2017 at 5:08 PM, JustinZandee said:

En wat betekend <> 7 dan?

Before you start making condescending remarks about other people's language skills, you might want to learn how to spell properly in your native language.:mad:

Share this post


Link to post
Share on other sites
JustinZandee

Lol 

2 minutes ago, RTFC said:

Before you start making condescending remarks about other people's language skills, you might want to learn how to spell properly in your native language.:mad:

I didn't say anything regarding to that.

Share this post


Link to post
Share on other sites
KickStarter15

Hallo, leuk om te hebben goolge vertalen ... Ik kan het duidelijk lezen en ik moet weten hoe dit werkt. Ik heb doorlopende codering met hetzelfde probleem maar later misschien wel.:lol:

Ik wacht dan maar ..:D

Edited by KickStarter15

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Share this post


Link to post
Share on other sites
KickStarter15

@Jos,

I've got it. ^_^ When they want to return back to Enter Password. "Dat is alles wat ik nodig heb om de code te voltooien.":D Thanks!

Global $apass
Do
   $pass = InputBox(@UserName, "Enter Password:", "", "*M", 200, 120, 550, 380)
If @error = 1 Then Exit
If $pass <> "abc@123" Then
   $apass = MsgBox(4, "Invalid!", "Password incorrect! Please try again.")
   If $apass = 7 Then Exit
Else
   Call("$Form1")
EndIf
Until $apass <> 6

 

Edited by KickStarter15

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

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

×