MostafaTaha Posted January 1, 2021 Share Posted January 1, 2021 i want to write script that make auto it application that can send and receive from code in web server example: i want ...... if the client click on html Button the web application send command to autoit application to moveMouse or any other action >>can you help me please? How can i do that???? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 1, 2021 Developers Share Posted January 1, 2021 Welcome, ... but why are you crossposting your question at multiple places? ...please don't! ( the other one is gone now) As to your question: This is all way to vague. Be specific and show us what you have tried that isn't working. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 i I haven't written a script yet To be specific I want to create an application that is linked to my website This application is similar to an HTML page in order to take advantage of the capabilities of autoit as well as the capabilities of the website Link to comment Share on other sites More sharing options...
Developers Jos Posted January 1, 2021 Developers Share Posted January 1, 2021 Great , and you feel this last post is less vague? Anyways... start writing that script and come back when you have a specific question with all the required details for us to be able to assist! MostafaTaha 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 Why do you block the doors in my face? I used to think that someone had asked a question similar to this before, and I wanted to know the answer Link to comment Share on other sites More sharing options...
Developers Jos Posted January 1, 2021 Developers Share Posted January 1, 2021 Just now, MostafaTaha said: Why do you block the doors in my face? I didn't when you read my posts properly. I just encourage you to be more specific about what it is you want and show us some effort of what you have done. When you perceive that as blocking then that is your problem, but blocking to me mean something totally different and you will understand what I mean when that happens. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 ok i will done Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 i make this project to recive data from txt file that i put it in webhost #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "WinHttp.au3" #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 438, 192, 124) $Edit1 = GUICtrlCreateEdit("", 40, 24, 297, 345) GUICtrlSetData(-1, "Edit1") $Button1 = GUICtrlCreateButton("Button1", 424, 328, 105, 57) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### main() func main() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Case $Button1 database() EndSwitch WEnd EndFunc func database() Local $url="http://mostafatahahmed.000webhostapp.com/database.txt" $http=ObjCreate("WinHttp.WinHttpRequest.5.1") $http.open("GET",$url) $http.send() $http.WaitForResponse() $source= $http.ResponseText() GUICtrlSetData($Edit1,$source) EndFunc and i want to add anew option i want link this form with web data base Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 and i want to write in this txt file from my autoit form Link to comment Share on other sites More sharing options...
Nine Posted January 1, 2021 Share Posted January 1, 2021 Please use this tool when you post code. 3 minutes ago, MostafaTaha said: i want link this form with web data base Could you be more explicit on what you are attempting to do ? You do know about the crystal ball being broken. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 what do you mean that the crystal ball being broken i dont understand Link to comment Share on other sites More sharing options...
Nine Posted January 1, 2021 Share Posted January 1, 2021 6 minutes ago, MostafaTaha said: what do you mean that the crystal ball being broken i dont understand Just an innocent joke to start you up on this new year. But I do mean it seriously when I asked you to be more explicit about your requirements... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 1, 2021 Author Share Posted January 1, 2021 i want alot of things 1- i want to make another button to access to database of my site and add data to table and call data from the table and set it in my autoitform Link to comment Share on other sites More sharing options...
Confuzzled Posted January 1, 2021 Share Posted January 1, 2021 JSON or HTTP? What database are you using? What code and software packages do you have running on your website? Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 2, 2021 Author Share Posted January 2, 2021 (edited) i tray this to Post in the txt file but it not work why????????????????????? Func vv($url, $postdata =" '') Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("POST", $url, False) If @error Then Return SetError(1, 0, 0) $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") $oHTTP.Send($postdata) If @error Then Return SetError(2, 0, 0) Local $sReceived = $oHTTP.ResponseText Local $iStatus = $oHTTP.Status If $iStatus = 200 Then Return $sReceived Return SetError(3, $iStatus, $sReceived) EndFunc ;==>_HTTP_Post Edited January 2, 2021 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 2, 2021 Moderators Share Posted January 2, 2021 MostafaTaha, When you post code in future please use Code tags - see here how to do it. Then you get a scrolling box and syntax colouring as you can see above now I have added the tags. Thanks in advance for your cooperation. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 2, 2021 Author Share Posted January 2, 2021 i dont understand what he mean by see here Link to comment Share on other sites More sharing options...
MostafaTaha Posted January 2, 2021 Author Share Posted January 2, 2021 i tray this to Post in the txt file but it not work why????????????????????? Func vv($url, $postdata =" '') Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("POST", $url, False) If @error Then Return SetError(1, 0, 0) $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") $oHTTP.Send($postdata) If @error Then Return SetError(2, 0, 0) Local $sReceived = $oHTTP.ResponseText Local $iStatus = $oHTTP.Status If $iStatus = 200 Then Return $sReceived Return SetError(3, $iStatus, $sReceived) EndFunc ;==>_HTTP_Post Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now