StringReplace, appdata2, A_AppData, Roaming, Local
folder := \Chrome\profr.ini
Folder:="%appdata2%\Google\%folder%"
The leftmost character above is illegal in an expression.
Thats just an example. The idea is that i have two variables with \ and how to make a one folder frome two ofther (%appdata2%; %folder%) and text part (\Google\).
Hope its real.
Variables
Re: Variables
yes its possible and quite easyfedek wrote:The leftmost character above is illegal in an expression.Code: Select all
StringReplace, appdata2, A_AppData, Roaming, Local folder := \Chrome\profr.ini Folder:="%appdata2%\Google\%folder%"
Thats just an example. The idea is that i have two variables with \ and how to make a one folder frome two ofther (%appdata2%; %folder%) and text part (\Google\).
Hope its real.
read here:
https://autohotkey.com/docs/Variables.htm
Re: Variables
Code: Select all
variable := variable1 "\Text\" variable2
; or
variable = %variable1%\Text\%variable2%
Re: Variables
StringReplace, appdata2, A_AppData, Roaming, Local
Folder:=%appdata2%\Google\Chrome\User Data\Default\Web Data
StringReplace, appdata2, A_AppData, Roaming, Local
Folder:=appdata2"\Google\Chrome\User Data\Default\Web Data"
Both errors, guys. The leftmost character above is illegal in an expression
Folder:=%appdata2%\Google\Chrome\User Data\Default\Web Data
StringReplace, appdata2, A_AppData, Roaming, Local
Folder:=appdata2"\Google\Chrome\User Data\Default\Web Data"
Both errors, guys. The leftmost character above is illegal in an expression
Re: Variables
I did, i think that i got it, but i dont know english well. So, whats the decision?
Re: Variables
Code: Select all
variable := variable1 "\Text\" variable2
Folder := appdata2 "\Google\Chrome\User Data\Default\Web Data"
; or
variable = %variable1%\Text\%variable2%
Folder = %appdata2%\Google\Chrome\User Data\Default\Web Data
Re: Variables
Notice the spaces in the 1st example and notice the = sign in the secondGicu wrote:Code: Select all
variable := variable1 "\Text\" variable2 ; or variable = %variable1%\Text\%variable2%
This is equivalent to the first example he gave you ... also notice the spaces on each sides of the dots
Code: Select all
variable := variable1 . "\Text\" . variable2
Re: Variables
Tahks. My bad with spaces.
Who is online
Users browsing this forum: chrisjordan, Chunjee, teadrinker and 147 guests