peterski7 Posted March 28, 2009 Share Posted March 28, 2009 #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directory sleep(5000) ;time in millseconds untill the username is typed. send("xxxxxxx@hotmail.com") ;user name for msn send("{TAB}") ;Do not edit send("lxxxxxx") ;Password sleep(1000) ;Time in milliseconds untill Enter is hit. ;Do not edit anything under this line unless you know auttoit ---------------------------------------------------------------------- HotKeySet("{ENTER}") , "click" ) While 1 sleep (100) wend Func click(1) EndFunc i get a error at: func click(1) it says the variable needs to be in function call. i just started autoit today and tryign to make a simple auto login thing for msn. Link to comment Share on other sites More sharing options...
Valuater Posted March 28, 2009 Share Posted March 28, 2009 Welcome to the forums... Nice first post! #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directory Sleep(5000) ;time in millseconds untill the username is typed. Send("xxxxxxx@hotmail.com") ;user name for msn Send("{TAB}") ;Do not edit Send("lxxxxxx") ;Password Sleep(1000) ;Time in milliseconds untill Enter is hit. ;Do not edit anything under this line unless you know auttoit ---------------------------------------------------------------------- HotKeySet("{ENTER}", "click") While 1 Sleep(100) WEnd Func click($clicks = 1) ; do something EndFunc ;==>click 8) Link to comment Share on other sites More sharing options...
peterski7 Posted March 28, 2009 Author Share Posted March 28, 2009 (edited) #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hererun("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directorysleep(5000) ;time in millseconds untill the username is typed.send("xxxxxxx@hotmail.com") ;user name for msnsend("{TAB}") ;Do not editsend("lxxxxxx") ;Passwordsleep(1000) ;Time in milliseconds untill Enter is hit.;Do not edit anything under this line unless you know auttoit ----------------------------------------------------------------------HotKeySet("{ENTER}") , "click" )While 1 sleep (100)wendFunc click(1) EndFunc i get a error at:func click(1) it says the variable needs to be in function call.i just started autoit today and tryign to make a simple auto login thing for msn.Thanks, when i run my script this is what happens:Msn launches ( good)types my username ( good)types pw ( good)then hits enter but nothing happens ( )thats when i use this script#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hererun("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directorysleep(5000) ;time in millseconds untill the username is typed.send("peterski_7@hotmail.com") ;user name for msnsend("{TAB}") ;Do not editsend("leszczynski") ;Passwordsleep(1000)send("{ENTER}") ;Time in milliseconds untill Enter is hit.so mabey i thougth enter was being hit twice so im trying to make my variable one with this. but then i just get my error in first post:#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hererun("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directorysleep(5000) ;time in millseconds untill the username is typed.send("peterski_7@hotmail.com") ;user name for msnsend("{TAB}") ;Do not editsend("leszczynski") ;Passwordsleep(1000) ;Time in milliseconds untill Enter is hit.;Do not edit anything under this line unless you know auttoit ----------------------------------------------------------------------HotKeySet("{ENTER}") , "click" )While 1 sleep (100)wendFunc click(1) EndFunc Edited March 28, 2009 by peterski7 Link to comment Share on other sites More sharing options...
Valuater Posted March 28, 2009 Share Posted March 28, 2009 Maybe.. you have to move over to the enter button? I don't use MSN Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directory Sleep(5000) ;time in millseconds untill the username is typed. Send("peterski_7@hotmail.com") ;user name for msn Send("{TAB}") ;Do not edit Send("leszczynski") ;Password Sleep(1000) Send("{TAB}") Send("{ENTER}") 8) Link to comment Share on other sites More sharing options...
peterski7 Posted March 28, 2009 Author Share Posted March 28, 2009 Thanks, when i run my script this is what happens:Msn launches ( good)types my username ( good)types pw ( good)then hits enter but nothing happens ( )thats when i use this script#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hererun("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directorysleep(5000) ;time in millseconds untill the username is typed.send("peterski_7@hotmail.com") ;user name for msnsend("{TAB}") ;Do not editsend("leszczynski") ;Passwordsleep(1000)send("{ENTER}") ;Time in milliseconds untill Enter is hit.so mabey i thougth enter was being hit twice so im trying to make my variable one with this. but then i just get my error in first post:#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Peterski7 Script Function: Autosign in for Msn Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hererun("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") ;Set to your msn / aim directorysleep(5000) ;time in millseconds untill the username is typed.send("peterski_7@hotmail.com") ;user name for msnsend("{TAB}") ;Do not editsend("leszczynski") ;Passwordsleep(1000) ;Time in milliseconds untill Enter is hit.;Do not edit anything under this line unless you know auttoit ----------------------------------------------------------------------HotKeySet("{ENTER}") , "click" )While 1 sleep (100)wendFunc click(1) EndFuncnope your mouse can be anyware, if i could get a program to find my cordinents i woul;d try to make it so my mouse clicks it there , but that seems compilcated and iv been doing this for one hour woulc it be:MouseClick("left", cordients? ) Link to comment Share on other sites More sharing options...
Valuater Posted March 28, 2009 Share Posted March 28, 2009 Learn to use the search button... and you wan't have to write much at all!!http://www.autoitscript.com/forum/index.ph...highlite=%2BMSN8) Link to comment Share on other sites More sharing options...
TerarinK Posted March 28, 2009 Share Posted March 28, 2009 To get away with this you will need to learn OCR in AutoIt else setting it to predetermine functions a way to get it into MSN would be like this If WinExists("Windows Live Messenger") Then $hMSN = WinGetHandle("Windows Live Messenger") WinActivate($hMSN) Else $hMSN = RunWait("C:\Program Files\Windows Live\Messenger\msnmsgr.exe") EndIf Send("xxxxxxx@hotmail.com{TAB}lxxxxxx{TAB 6}{ENTER}")oÝ÷ Ù.q©ÚÊ)ºÛajÔا¶¥êÚµçîËb¢xÊ°j{m¡»é·«y§!¶)Ø(zËaz·²¢êì¥éÝx2¢ê鮲Ëb殶se6VæBgV÷C·÷FÖÂæ6öÒgV÷C²¥6VæBgV÷C·µD'ÒgV÷C²¥6VæBgV÷C¶ÇgV÷C²¥6VæBgV÷C·µD"gÒgV÷C²¥6VæBgV÷C·´TåDU'ÒgV÷C² Should also work 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
Valuater Posted March 28, 2009 Share Posted March 28, 2009 what porgram u guys use to find the coordinates of everything on your screen?It's not quite that simple..You need to see Mouse Coordinates option in help... and color Coordinates if you are using that too8) 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