Jump to content

Variable problem


Recommended Posts

#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

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)

NEWHeader1.png

Link to comment
Share on other sites

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

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

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 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("peterski_7@hotmail.com") ;user name for msn

send("{TAB}") ;Do not edit

send("leszczynski") ;Password

sleep(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 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("peterski_7@hotmail.com") ;user name for msn

send("{TAB}") ;Do not edit

send("leszczynski") ;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

Edited by peterski7
Link to comment
Share on other sites

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)

NEWHeader1.png

Link to comment
Share on other sites

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

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 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("peterski_7@hotmail.com") ;user name for msn

send("{TAB}") ;Do not edit

send("leszczynski") ;Password

sleep(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 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("peterski_7@hotmail.com") ;user name for msn

send("{TAB}") ;Do not edit

send("leszczynski") ;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

nope 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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...