Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help With Username and If statement

$
0
0
Hey everyone. I need some help getting and using the @username with an if statement.

So, the goal of my script is to run a program, find the username, then send certain keys depending on that the username is. So right now, here is my code:
[ autoit ]      
If @Username = testuser1 Then Send("testuser1 stuff") Elseif @username = testuser2 Send("testuser2 stuff") Else Send("testuser3 stuff") EndIf


Am i doing this correctly? When the script runs it i get the "Error parsing function call" pop up box.

Thanks for the help in advance.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>