![]() Tasker is an Android application originally developed by a developer known as "Pent", and later purchased by João Dias. "TP Version Not Supported|506=Variant Also Negotiates (RFC 2295)|507=Insu" "ented|502=Bad Gateway|503=Service Unavailable|504=Gateway Timeout|505=HT" "uired (RFC 2817)|449=Retry With|500=Internal Server Error|501=Not Implem" "Expectation Failed|418=I'm a teapot (RFC 2324)|422=Unprocessable Entity " "Long|415=Unsupported Media Type|416=Requested Range Not Satisfiable|417=" "12=Precondition Failed|413=Request Entity Too Large|414=Request-URI Too " "ound|405=Method Not Allowed|406=Not Acceptable|407=Proxy Authentication " "ad Request|401=Unauthorized|402=Payment Required|403=Forbidden|404=Not F" "Not Modified|305=Use Proxy|306=Switch Proxy|307=Temporary Redirect|400=B" " Content|205=Reset Content|206=Partial Content|207=Multi-Status (WebDAV)" HttpRetCodes := "100=Continue|101=Switching Protocols|102=Processing (WebDAV) (RFC 2518)|" RetValue := RegExReplace(RetValue,"HTTP/1\.\s+") Strip protocol version from return value No Connection established - drop exception If (*(&res-1+a_index)=0) Change binary zero to linefeed VarSetCapacity(res,headerLength:=NumGet(header_len),32)ĭllCall("RtlMoveMemory","uInt",&res,"uInt",&header,"uInt",headerLength) If ((headerRequest:=DllCall("WinINet\HttpQueryInfoA","uint",hRequest Check for returned server response-header (works only _after_ request been sent) VarSetCapacity(header, 2048, 0) max 2K header data for httpResponseHeader , "Str",POSTData,"uInt",Strlen(POSTData)) , "uInt",hRequest,"Str",Headers, "uInt",Strlen(Headers) SRequest := DllCall("WinINet\HttpSendRequestA" Send the specified request to the server ,"Str",ProVer := "HTTP/1.1", "Str",httpQueryReferer,"Str",httpQueryAcceptTypes ,"uInt",hConnect,"Str",HTTPVerb,"Str",lpszUrlPath. HRequest := DllCall("WinINet\HttpOpenRequestA" ![]() Form the request with proper HTTP protocol version and create the request handle else otherwise mode must be GET - no header defaults needed Gui, add, button, gsendit w200 h40 default, Send Paste that URL into the autoremoteurl variable below. On the right of the page some code appears saying "Use this url to directly send this message:"Ĭopy that code and remove the message you entered from the end. It should appear in a notification on your phone. Type something into the edit field and hit send. Paste this URL into the variable autoremoteurl at the top of the AHK code. Copy this URL and strip off the text you entered into the Message field.Go to that URL and type something in to the Message field. ![]() When you launch Autoremote it gives you an URL. ![]() (Ignore the part about filter the incoming messages to only show if the txt is "hi") You can find some instructions how to do that in this video. In my case I set them to just display the msg in a popup. First setup tasker to receive messages and do something with them.You must have Tasker ($2.99 Currently) and AutoRemote ($2.49 Currently) on your android phone. You can take this script and expand it to do much more complex things like have your AHK scripts send txt messages or emails, or launch things on your phone. I just started using this so this is just a basic script to send a message to your phone from a AHK script. I am going to give a few details about how this works. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |