I'm having trouble with part of a script. Error at line 70 - ";" is an illegal expression. I've cut a couple of lines of the script so you won't need the files to run it. If anyone can tell me why it keeps exiting after giving me that error message and how I can fix it I would be very grateful.
Code:
Gui, Add, Button, x405 y580 w100 h20, Apply
Gui, Add, Button, x300 y580 w100 h20, Cancel
Gui, Add, Button, x195 y580 w100 h20, OK
Gui, Add, Tab, x5 y10 w490 h540 +Theme -Background, General|Command Prompt|Task Manager|Run Command
;--------------------GENERAL TAB--------------------;
Gui, Tab, General
Gui, Add, Picture, x25 y50 w40 h40 , C:\Program Files\R Taskbar V2\Configuration Settings\Image Files\Icon 48x48.JPG
Gui, Add, Text, x75 y60 w390 h30 +BackgroundTrans, Here you can change the settings or revert the taskbar back to its installation settings.
IniRead, Setpx, C:\Users\Public\Documents\R Taskbar V2\Configuration Settings\R Taskbar Configuration Settings.ini, General, Coords
Gui, Add, GroupBox, x25 y100 w440 h100, Co-ordinates
Gui, Add, Text, x30 y115 w430 BackgroundTrans, At default the taskbar is set to appear 60 pixels (px) above the bottom of your screen. You can change this
setting here:
Gui, Add, Text, x30 y150 BackgroundTrans, Place the taskbar
Gui, Add, Edit, x+3 y150 BackgroundTrans Limit2 vPxlevel, %Setpx%
Gui, Add, Text, x+3 y150 BackgroundTrans, px above the bottom of my screen.
IniRead, Setpass, C:\Users\Public\Documents\R Taskbar V2\Configuration Settings\R Taskbar Configuration Settings.ini, General, Passwordset
If Setpass = 0
{
Gui, Add, GroupBox, x30 y270 w210 h100, New Password
Gui, Add, Edit, x35 y290 w100 Password vOpenpass1,
Gui, Add, Text, x+3 y290 +BackgroundTrans vPasstext1, New Password
Gui, Add, Edit, x35 y315 w100 Password vOpenpass2,
Gui, Add, Text, x+3 y315 +BackgroundTrans vPasstext2, Confirm Password
Gui, Add, Groupbox, x250 y270 w210 h100, Change Current Password
Gui, Add, Edit, x255 y290 w100 Password Disabled vChangepass1,
Gui, Add, Text, x+3 y290 +BackgroundTrans Disabled vCpasstext1, New Password
Gui, Add, Edit, x255 y315 w100 Password Disabled vChangepass2,
Gui, Add, Text, x+3 y315 +BackgroundTrans Disabled vCpasstext2, Confirm Password
Gui, Add, Groupbox, x30 y375 w430 h45, Remove Current Password
Gui, Add, Edit, x35 y395 Password Disabled vRemovepass,
Gui, Add, Text, x+3 y395 +BackgroundTrans Disabled vRpasstext1, Enter your current password and select "Apply" to remove it.
}
If Setpass = 1
{
Gui, Add, GroupBox, x30 y270 w210 h100, New Password
Gui, Add, Edit, x35 y290 w100 Password vOpenpass1 Disabled,
Gui, Add, Text, x+3 y290 +BackgroundTrans vPasstext1 Disabled, New Password
Gui, Add, Edit, x35 y315 w100 Password vOpenpass2 Disabled,
Gui, Add, Text, x+3 y315 +BackgroundTrans vPasstext2 Disabled, Confirm Password
Gui, Add, Groupbox, x250 y270 w210 h100, Change Current Password
Gui, Add, Edit, x255 y290 w100 Password vChangepass1,
Gui, Add, Text, x+3 y290 +BackgroundTrans vCpasstext1, New Password
Gui, Add, Edit, x255 y315 w100 Password vChangepass2,
Gui, Add, Text, x+3 y315 +BackgroundTrans vCpasstext2, Confirm Password
Gui, Add, Groupbox, x30 y375 w430 h45, Remove Current Password
Gui, Add, Edit, x35 y395 Password vRemovepass,
Gui, Add, Text, x+3 y395 +BackgroundTrans vRpasstext1, Enter your current password and select "Apply" to remove it.
}
Gui, Add, GroupBox, x25 y435 w440 h100, Suggestions?
Gui, Add, Text, x30 y450 w430 BackgroundTrans, If you have found any bugs, glitches or etc; have an idea on how to improve aspects of the taskbar or have any
additions you would like to see, e-mail me here:
Gui, Add, Text, x30 y480 cBlue gRmail +BackgroundTrans, **********************
Gui, Add, Text, x30 y500 +BackgroundTrans, R Taskbar V2.0 - Created by *****
;--------------------COMMAND PROMPT TAB--------------------;
Gui, Tab, Command Prompt
Gui, Add, Picture, x25 y50 w40 h40 , C:\Program Files\R Taskbar V2\Configuration Settings\Image Files\Command Prompt W 20x20.jpg
Gui, Add, Text, x75 y60 w390 h30 +BackgroundTrans, Here you can change the settings for the Command Prompt such as where to locate the file or revert it back
to its installation settings.
;--------------------TASK MANAGER TAB--------------------;
Gui, Tab, Task Manager
Gui, Add, Picture, x25 y50 w40 h40 , C:\Program Files\R Taskbar V2\Configuration Settings\Image Files\Task Manager W 20x20.jpg
Gui, Add, Text, x75 y60 w390 h30 +BackgroundTrans, Here you can change the settings for the Task Manager such as where to locate the file or revert it back
to its installation settings.
;--------------------RUN COMMAND TAB--------------------;
Gui, Tab, Run Command
Gui, Add, Picture, x25 y50 w40 h40 , C:\Program Files\R Taskbar V2\Configuration Settings\Image Files\Run Prompt W 20x20.jpg
Gui, Add, Text, x75 y60 w390 h30 +BackgroundTrans, Here you can change the settings for the Run Command such as where to locate the file or revert it back to
its installation settings.
Gui, Show, w510 h610, R Taskbar - Configure
Return,
;--------------------CONFIGURE--------------------;
ButtonOk:
Clickok = 1
GoSub Setbuttonselect
Return,
ButtonApply:
Clickok = 0
GoSub Setbuttonselect
Return,
Setbuttonselect:
If Clickok = 1
{
If Setpass = 1
{
If Changepass1 !=
{
If Changepass1 = %Changepass2%
{
IniWrite, %Changepass1%, C:\Users\Public\Documents\R Taskbar V2\Configuration Settings\R Taskbar Configuration Settings.ini, General, Password
MsgBox, Your password has been changed.
}
}
If Removepass = %Curpass%
{
Curpass =
MsgBox, Your password has been removed.
}
IniWrite, %Setpx%, C:\Users\Public\Documents\R Taskbar V2\Configuration Settings\R Taskbar Configuration Settings.ini, General, Coords
ExitApp
}
Rmail:
Return,
Please note: I am in no way intrested in improving the general script other than fixing this problem. Thanks in advance.
This code has been tested and does not work