AutoHotKey scripting to set condition on variable? -


i new @ autohotkey scripting, need create conditions on variables before of hotstrings.

for example if machine's a_username = variable1=chris, if a_username=b variable1=mike, on.

i set before of hotstrings. here sample of code.

if (a_username==a) {  variable1=chris } else  { variable1=mike }    :#ct::   send, closing ticket, please review data , let know if have       questions.thanks %variable1% return 

the key set conditions before of hotkeys or hotstrings dont have use if else statements on hotstrings/hotketys.

any appreciated.

if (a_username==a) suggests a variable name.

in case, you'd want use

if (a_username=="a") 

or

if a_username = 

or

a := "a" ; or: = if (a_username==a) 

ps. on use of ==, note following part of documentation:

the operators != , <> identical in function. == operator behaves identically = except when either of inputs not number, in case == case sensitive , = case insensitive (the method of insensitivity depends on stringcasesense). contrast, <> , != obey stringcasesense. note: quoted literal string such "55" considered non-numeric in context.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -