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

If @computername =

$
0
0
I need some help with creating a piece of code that will allow me to check the name of the workstation, that my new script is going to run on, against the list of computer in a txt file, then if the name of the workstation matches one of the workstation names in the txt file then do the following, but if the workstation does not match then do nothing.

I think I need to use @computername to determine the current name of the workstation.

Edited**

[ autoit ]      
If @computername = ; (one of the workstations in my txt file) Then <<<<<<<< this is where i need the help $list = WinList("Polaris Shortcut Bar - ") If $list [0][0] > 1 Then ;~ msgbox(0, "", "You have one instance open") WinClose("Polaris Shortcut Bar - ") ;~ Sleep (1000) msgbox(0, '', 'You have one instance open') EndIf Sleep(10) Else Endif

Thanks,

Grimm

Viewing all articles
Browse latest Browse all 12506

Trending Articles