According to researches by the adsmember team
आज मैं आपको दिखाऊंगा कि आप Google सहायक (या टेलीग्राम) से अपने पीसी (जो कुछ भी पावरशेल के साथ किया जा सकता है) को कैसे नियंत्रित कर सकते हैं ध्यान रखें कि यह इतना आसान नहीं है और शायद आसान तरीके हैं (मुझे टिप्पणियों में बताएं यदि आप चाहते हैं कि मैं उनकी जाँच करूँ)। इस पद्धति से हम एक टेलीग्राम बॉट बनाते हैं जिसे पॉवरशेल स्क्रिप्ट सुनती है, यह टेलीग्राम बॉट एक IFTTT बॉट वाले चैनल में होगा जो वहां एक पूर्वनिर्धारित कमांड को फॉरवर्ड करेगा और पावरशेल स्क्रिप्ट इसे चलाने के बजाय, IFTTT लिंक करेगा गूगल असिस्टेंट। आप यहां पूरी स्क्रिप्ट पा सकते हैं:
स्क्रिप्ट कैसे चलाएं: पॉवरशेल -एक्ज़ीक्यूशनपॉलिसी बायपास C:PATH-TO-SCRIPTTelegram-listener.ps1 लॉक पीसी कमांड: rundll32.exe user32.dll,LockWorkStation UPDATE: ध्यान दें कि सब कुछ सेट करने के बाद आप गोपनीयता को चालू कर सकते हैं , आपकी सुरक्षा को बेहतर बनाने के लिए चैनल और बॉट दोनों पर। नवीनतम वीडियो देखें:
=================================== व्यापार पूछताछ के लिए, ईमेल करें: business@dimustech.net हिब्रू यूट्यूब चैनल: फेसबुक:
मैं जिस गियर का उपयोग करता हूं:
हमारे वीडियो का अन्य भाषाओं में अनुवाद करने में मदद करना चाहते हैं? अस्वीकरण: इनमें से कुछ लिंक मेरी वेबसाइटों में से एक पर जाते हैं और कुछ सहबद्ध लिंक हैं जहां यदि आप बिना किसी अतिरिक्त लागत के खरीदारी करते हैं तो मैं एक छोटा कमीशन कमाऊंगा।
source
NOTE that after setting everything up you can switch the privacy on, on both the channel and the bot to improve your security.
Pretty neat! I feel like what we really need is IFTTT to make a win app & would be ez pz.
Hi, first thanks for this video it helped me a lot.
you might want to add this option
-UseBasicParsing
to the Invoke-WebRequest command. It generated an error for me :
The response content cannot be parsed because the Internet Explorer engine is not available, or
Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
And the option solved it.
Thanks again
Sir I have followed exactly the steps shown by you as we are getting the message in telegram as well as on the webpage even powershell script is running but pc is not getting locked can you please help us.
i keep telling my computer to lock myh pc but it says its locked on google but it still says its unlocked but on telegram it send the message.How to fix??
Hey I just tried to type the web address but it wont work. It says error code 404. So can you pls give the web address so I could copy it. Pls respond
You triggered my google assistant too ?
I saw you posted this in an earlier response, 2 things I want to ask,
[System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms") | Out-Null ; [System.Windows.Forms.SendKeys]::SendWait("W")
1. I couldn't get it to work when I put the entire thing as a message to the Telegram bot. Am I not supposed to put it there?
2. Assuming I get that to work, what if i want to type an entire sentence? Is there an easier way to type rather than copying the entire line for every character?
@DimusTech Hi Dimus. I want to be able to pause/unpause a video playing in the active window (could be a Youtube or just a VLC player video). How can I emulate s spacebar keyboard press? That would basically pause/unpause any video.
hi dimus! i got 2 questions
-does it have to use the iftt pro?
-and can you make the bot open a website on a chrome? (for example, can it open spotify website?)
Yeah 10$ for ifttt
The bot and channel is ok, I can see that on: https://api.telegram.org/bot…I get back: {"ok":true,"result":[]}
I make the applet and the google assistent does not understand the command. I think is obvious. There is no 'link' to my pc. I need to do make a script in powershell but i dont know what the chatid is.
i want to use this to play video games. cus its useless but cool. but, can i do it with my phone's google assistance?
Could this pair with my phones Google Assistant?
Cool video! I've made a script successfully, but is there any way to not have powershell open constantly with it flickering like that while the script is running?
Worked perfectly! Thank you so much for that awesome video.
Can I also do Turn on and Turn off with this method? if so do you have the scripts for this? Thanks in advance!
If you are having problems with infinite error loops that say something about internet explorer like I did, I made an edited version of the script here https://github.com/Warhammer817/Edited-Asistant-Powershell-Script
Where do I find these scripts. I want to make a command to restart my pc and shut it down.
How do i put my pc in power saving mode?
Where can I find a shutdown PC command?
I Will try this
i need help , as when i open the link of api.telegram…… i got the message {"ok":false,"error_code":404,"description":"Not Found"} .I tried to do the process again but still i get the same message , plz help
For any who is annoyed by the powershell window opening on every login, trying this command in the task scheduler:
-windowstyle hidden -file <path to your script>
You are welcome! 🙂
Your intro looks like Linus tech tips' remake
You are amazing
Damnit, don't say ok google on the video please!
i have cortana in my laptop
Can I somehow change something so that the PowerShell window opens minimized?
Can you give we more commands
i personally was curious about this and wow, it looks really interesting. Unfortunately i wont be using it but good to know
worked thanks alot
Hi i can only see (Send Message) icon and not the open in web option 5:26
If you want to run powershell in the background you can modify windows style as another argument (-windowstyle hidden) in the task schedule in 13:22 like this:
Argument:
-windowstyle hidden -executionpolicy bypass C:PATH-TO-SCRIPTTelegram-listener.ps1
hi, where do you find the my token
Cannot index into a null array.
At C:Telegram-listener.ps1:25 char:1
+ $InitialMessageDate = $jsonresult.update_id[-1]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:Telegram-listener.ps1:9 char:17
+ … otUpdates = Invoke-WebRequest -Uri "https://api.telegram.org/bot$($My …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
At C:Telegram-listener.ps1:11 char:39
+ $jsonresult = [array]($MyBotUpdates | ConvertFrom-Json).Result
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFrom
JsonCommand
Help me please.
sir web is not providing chat ID
I think you're THE MAN that everybody has seen on their dreams.
I've got a question. Let's say, I want to check if my pc is powered on or off via Google assistant. So I'd find the Powershell command to check the status, and it will respond with a 1 of a 0. How do return it to the Google home? and let it speak to tell me?
hi dimus, i cant find my id, and i dont get the screen at 10:39 on your video. Could you help me with that.When I reload the API page i only get this
ok true
result []
Problem fixed:
imboke-WebRequest and bla bla blaaaa
Only open INTERNET EXPLORER and complete the first-launch configuration
And that is
I found the solution googling and in this page: https://wahlnetwork.com/2015/11/17/solving-the-first-launch-configuration-error-with-powershells-invoke-webrequest-cmdlet/
how do I run the script with the google home mini?