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

Controlgettext specific text

$
0
0
Hey. Since it seems like making 1 computer to command multiple computers to execute a file is a fucking impossible task, I figured perhaps I rather use a chat that the machines can react on when specific text from admin is input.

when admin logs on it says "(name) logged on as admin"

I have tried to play with Controlgettext,

$admin = controlgettext ("chat", "", (chatcontrolidhere)
msgbox (0, "", $admin)


This outputs everything that has been said in the chat so far, but to have it perhaps only show what the admin that logged on said? How do you go by doing that?

$admin = "Admin says : Hello I want you to make a message box now"
if controlgettext (chatinfo,controlid etc) = $admin then msgbox (0, "", "made message box because admin told me to")


This is sort of what I try to write, but the program doesnt seem to react properly. How do you make it so the script can save whoever were the last to log on as admin, and output a messagebox when the admin makes an input?

I am also wondering how you can only run whatever the admin asks of one time, then exclude it, so the computer doesnt keep repeating the same msgbox every time.

Thats all, thanks!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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