Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 01:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit Question

Discussion on Autoit Question within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
hok30's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 1,366
Received Thanks: 256
Autoit Question

Hey sorry this really doesn't have anything to do with CO but I know there are many good AutoIt programmers here and I am not one of them. I was making this application for fun and it keeps rejecting this part...
Code:
If  = "yay"
Then	
	Msgbox("Good Job, you unlocked Yay")
Else 
	MsgBox("WRONG! NO YAY")
EndIf
hok30 is offline  
Old 03/07/2008, 21:59   #2
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
If ????What????? = "yay"???

You havent stated what instance should = to "yay"

A variable should be in this place, either "$variable" or an error set if @error=1

Hiyoal
Hiyoal is offline  
Old 03/07/2008, 22:19   #3
 
chatri's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 86
Received Thanks: 75
i dont get it what you just said, yay?
chatri is offline  
Old 03/07/2008, 22:37   #4
 
hok30's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 1,366
Received Thanks: 256
Oops sorry I copied wrong -.-
Code:
   =inputbox("Type in the password to get to Yay")

If  = "yay"
Then	
	Msgbox("Good Job, you unlocked Yay")
Else 
	MsgBox("WRONG! NO YAY")
EndIf

EDIT OMG I TRIED 8 TIMES AND IT WONT WORK IN THE CODE TAGS -.-

Here it is...
$answer=inputbox("Type in the password to get to Yay")

If $answer = "yay"
Then
Msgbox("Good Job, you unlocked Yay")
Else
MsgBox("WRONG! NO YAY")
EndIf
hok30 is offline  
Old 03/07/2008, 23:37   #5
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
Your messageboxes do not have the right parameters.

Try this:
Here it is...
$answer=inputbox("[TITLE GOES HERE]","Type in the password to get to Yay") ;LOOK AT THIS..WRONG PARAMETERS IN INPUTBOX

If $answer = "yay" Then ;MOVE THIS "THEN" STATEMENT IN LINE WITH ITS IF STATEMENT
Msgbox(0,"[TITLE GOES HERE]","Good Job, you unlocked Yay")
Else
MsgBox(0,"[TITLE GOES HERE]","WRONG! NO YAY")
EndIf

Also, look at the autoit help file and search: Msgbox. It will tell you all the different parameters to use.

The "0" after the first brackets specify to give an "OK" button only, you get me??

Look at my Autoit Guides. They can teach you the most basic things for autoit.

Hiyoal

P.S...Also put this in before your first if:

If @error=1 Then
Exit
EndIf

This makes it that you can close the input box when you press the X button.
Hiyoal is offline  
Thanks
1 User
Old 03/08/2008, 01:02   #6
 
hok30's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 1,366
Received Thanks: 256
Great Stuff. Ty :-D
hok30 is offline  
Reply


Similar Threads Similar Threads
[Question]How to use AutoIt?
07/24/2013 - Silkroad Online - 3 Replies
Hey guys I wanna learn on how to work with AutoIt if somebody wanna reply here a tuturial i would really appereciate:)
autoit question
06/24/2010 - Mabinogi - 1 Replies
hey i am slowly trying to learn scripting (tougher than i thought) ...... anyways i'm making an auto login bot .... anyone got suggestions on how to write a code to make the mouse click start game on the mabinogi pre login window so far i can get the game to open with the start game screen >.> task one complete
AutoIt Question.
11/02/2009 - S4 League - 3 Replies
I asked this in someone else's thread when they inquired about a bot program, but it seems that thread was deleted, because I can't find it even with the search function. Well I wanted to know if AutoIt would work with Games that only accept direct input, without having to use a bypass. There are many games I'm sure you all know of that don't allow input from Auto macro programs to go through. Anyone know off of the top of their heads?
[Question] AutoIt
10/24/2009 - 12Sky2 - 3 Replies
I was thinking about it and i saw a post made by Tri that AutoIt is blocked because XTrap / GG detects certain signatures and debugging signatures, is it possible to modify AutoIt scripts so that it isn't detected by Xtrap or GG so the scripts will run?
[Question] need AutoIt help
06/10/2009 - CO2 Programming - 2 Replies
alright what i'm trying to do is basically this... when you open a program, it'll say "Working" or "Not Working" i want to somehow code it so that AutoIt checks... idk i guess a website (w/o actually opening a browser)? and that website will give it a value of "Working" or "Not Working" and it'll display that... i can't think of a way to approach this, if someone can lead me in the right direction . . . meanwhile, i'll keep searching on how to do this, thx guys :) Edit: i'm guessing...



All times are GMT +1. The time now is 01:13.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.