Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Error: the leftmost character is illegal in an expression


  • Please log in to reply
6 replies to this topic
bigt4616
  • Guests
  • Last active:
  • Joined: --
error at line 35

line text: }
error: the leftmost charecter above is illegal in an expression

the script was not reloaded; the old version will remain in effect

;open, login, and autoplay winster


MouseMove, 0, 0
MouseMove, 500, 500
sleep 3000
run http://www.winster.com
WinWait Winster - Where Friends Help Friends - Mozilla Firefox
WinMaximize
Click, 146, 490 ;clicks on game
sleep 15000
Click, 417, 404 ;clicks on password
sleep 2000
Send 1bruno ;sends password
sleep 1000
Click, 497, 443 ;clicks on login(failsafe)
click, 292, 430	;clicks on login
sleep 3000
click, 313, 490
sleep 3000
click, 186, 481
Send {Volume_Mute}
	{click, 253, 246
	Loop ;initial loop to loop the whole process of spinning
	{
		ifwinexist Winster - Where Friends Help Friends - Mozilla Firefox
			{loop 21 ;to spin 21 times
				{
				click, 316, 495
				sleep 5000
				}
			click, 309, 385	;cash card
			sleep 5000
			click, 253, 246	;swich to high payout card
			sleep 2000}
		else winclose winniemacro.ahk
	}
		
		

^!p::Pause ;to be able to stop and start the process

please help! i tryed geting the program to just close by another ahk script but it wont close that way either this is like my 3rd script so im still a bit of a n00b

[Title edited. Please write descriptive titles for your topics. ~jaco0646]

Krogdor
  • Members
  • 1391 posts
  • Last active: Jun 08 2011 05:31 AM
  • Joined: 18 Apr 2008
Send {Volume_Mute}
   [color=red]{[/color]click, 253, 246
   Loop ;initial loop to loop the whole process of spinning
   {
      ifwinexist Winster - Where Friends Help Friends - Mozilla Firefox
         {loop 21 ;to spin 21 times
Take out the red brace... that shouldn't be there.

Edit:
click, 309, 385   ;cash card
         sleep 5000
         click, 253, 246   ;swich to high payout card
         sleep 2000[color=red]}[/color]
That one as well.

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
;open, login, and autoplay winster

MouseMove, 0, 0
MouseMove, 500, 500
sleep 3000
run http://www.winster.com
WinWait Winster - Where Friends Help Friends - Mozilla Firefox
WinMaximize
Click, 146, 490 ;clicks on game
sleep 15000
Click, 417, 404 ;clicks on password
sleep 2000
Send 1bruno ;sends password
sleep 1000
Click, 497, 443 ;clicks on login(failsafe)
click, 292, 430   ;clicks on login
sleep 3000
click, 313, 490
sleep 3000
click, 186, 481
Send {Volume_Mute}
click, 253, 246
Loop ;initial loop to loop the whole process of spinning
{
  ifwinexist Winster - Where Friends Help Friends - Mozilla Firefox
  {
    loop 21 ;to spin 21 times
    {
      click, 316, 495
      sleep 5000
    }
    click, 309, 385   ;cash card
    sleep 5000
    click, 253, 246   ;swich to high payout card
    sleep 2000
  }
  else 
  {
    winclose winniemacro.ahk
  }
}    
      

^!p::Pause ;to be able to stop and start the process
you had a lot of formatting problems

bigt4616
  • Guests
  • Last active:
  • Joined: --
thanx for the help. i cant believe it was such a simple error.
and a also found the exitapp code which helped alot too.
if anyone wants to use it, it is a bot for a website for winnie. you might have to change the click values a bit though. and i got one to end this and itself. i run it on sceguled tasks on like a computer thats always on so fell free to ask for the ending program too.

S0und
  • Members
  • 100 posts
  • Last active: Apr 08 2015 10:07 AM
  • Joined: 16 Feb 2007
mysql_real_connect(mysql_init(), "localhost", "root", "a", "Sound")
mysql_query(mySQL, "SELECT * FROM sound.valami WHERE data LIKE "GYR40554`%" OR Data LIKE "GYR40557`%" `[color=red];"[/color])
msgbox % mysql_result(mySQL)
mysql_close(mysql, hModule)


Error at line 15.

Line Text: ;"
Error: The leftmost character above is illegal in an expression.


Am i blind, or just tired?

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
You're not escaping your quotes :wink:
Literal quotes inside a quoted string should be doubled.
<!-- m -->https://ahknet.autoh... ... xpressions<!-- m -->

S0und
  • Members
  • 100 posts
  • Last active: Apr 08 2015 10:07 AM
  • Joined: 16 Feb 2007

You're not escaping your quotes :wink:
Literal quotes inside a quoted string should be doubled.
<!-- m -->https://ahknet.autoh... ... xpressions<!-- m -->


yey! thanks :)