seiryklav Posted March 22, 2007 Share Posted March 22, 2007 So, I'm new to AutoIt, and have never really done ANY actual computer coding. (I don;t consider HTML computer coding as it is web-based) Anyway, I have a program that I wanted to automate, and I stumbled upon AutoIt. Well, apparently, I am a fast learner because I wrote a script that involves If's and functions and mouseclicks, and all sorts of things. I've Done the AutoIt 1-2-3 and understand the concepts there, what I need is something else I can learn from, or a mentor that can help me in learning this code. I understand the concept of input and output and such. (Logic skills!) But, to me, this code is new and complex. I saw that games, and various other applications can be made. I would like to learn how. Any help would be great. I'm new, and I know that if i was pointed in a right direction, or if someone lent their help, (and because I learn really fast), I could be an asset to the AutoIt community. Thanks in advance. Dave ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
_Kurt Posted March 22, 2007 Share Posted March 22, 2007 Welcome to the forums, What exactly are you aiming for? Be more specific and you will see better results Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
seiryklav Posted March 22, 2007 Author Share Posted March 22, 2007 I have a vision of a program that, at a click of a button, will logon me on to myspace, or hotmail. And, if I was already logged into one of those programs, it would let me know that I was. Also, the wife has an Ipod and i want a functioning application that will searching the comp for specific music files, and then load them into an external program to encode them to mp3. I have grand ideas, but i dont know autoit well enough to implement them.. ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
tAKTelapis Posted March 22, 2007 Share Posted March 22, 2007 Your Myspace login sounds like a great idea to start out on. The helpfile is a great source, you will need to create a GUI and a button control, and a loop to keep the gui from closing. have a look at: Loops GUICreate GUICtrlCreate read ther helpfile about each of those, then stab at the source code from them for a while.. and see what breaks when you attempt to manipulate things.. you may also need the Send function, and perhaps the INet management functions aswell. Link to comment Share on other sites More sharing options...
alex OF DEATH Posted March 22, 2007 Share Posted March 22, 2007 The helpfile is your bible. For the Logon program, If you're planning on saving the passwords, Definitely look into .INI's and If you plan on using a GUI, look up the Koda GUI generator. Link to comment Share on other sites More sharing options...
seiryklav Posted March 22, 2007 Author Share Posted March 22, 2007 SO far i can open a gui window, with a second window for username and pw.. but i cant get the child window to close by itself #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Myspace = GUICreate("Myspace", 197, 205, 193, 115) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "MyspaceClose") $Myspace = GUICtrlCreateButton("Myspace", 112, 152, 75, 25, $BS_DEFPUSHBUTTON) GUICtrlSetOnEvent(-1, "MyspaceClick") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func MyspaceClick() GUICreate("logon", 100, 200) GUISetState() GUISetOnEvent($GUI_EVENT_CLOSE, "childclose") EndFunc ;==>MyspaceClick Func MyspaceClose() Exit EndFunc ;==>MyspaceClose Func Childclose() WinClose("logon") EndFunc ;==>Childclose Any ideas? ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
kjmarket Posted March 22, 2007 Share Posted March 22, 2007 (edited) I don't have the time or energy to go through your code ad get it working, as I'm sick today, but I can look through it and give you some pointers. First of all, use a variable when you create the gui... $form1 = GUICreate("logon", 100, 200) When you try and close it, use GUIDelete. GUIDelete($form1) Edited March 22, 2007 by kjmarket Pink Floyd - The Wall Link to comment Share on other sites More sharing options...
seiryklav Posted March 23, 2007 Author Share Posted March 23, 2007 I've updated the code some... now i have a window that pops up with two inputs... what i want to do it store the username and password in an INI file, but the password will be encrypted when it writes to the INI file, and then decrypted every time its used to signin to myspace.. Another idea i have is to have the first "Myspace" button check to see if the ini file exists, than if it does it signs you in, if it doesn't it will have you register. eventually i'd like to add different users too. expandcollapse popup#include <GUIConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $parent1 = GUICreate("Myspace", 197, 205, 193, 115) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "MyspaceClose") $Myspace = GUICtrlCreateButton("Myspace", 112, 152, 75, 25, $BS_DEFPUSHBUTTON) GUICtrlSetOnEvent(-1, "MyspaceClick") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func MyspaceClick() ;Guicreated $child = GUICreate("logon", 200, 100,) GUISetState(@SW_SHOW, $child) GUISetOnEvent($GUI_EVENT_CLOSE, "childclose") ;Buttons $ok1 = GUICtrlCreateButton("OK", 140, 25, 50, 30) GUICtrlSetOnEvent(-1, "writeini") ;Inputs GUICtrlCreateInput("", 10, 20, 75, 20) GUICtrlCreateInput("", 10, 65, 75, 20) ;Labels $user = GUIctrlcreatelabel("Username", 10, 5, 75, 12) $pass = Guictrlcreatelabel("Password", 10, 50, 75, 12) EndFunc ;==>MyspaceClick Func MyspaceClose() Exit EndFunc ;==>MyspaceClose Func childclose() GUIDelete() EndFunc ;==>childclose Func writeini() EndFunc ;==>writeini ContactAim- bluehydrolic 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