MostafaTaha 0 Posted January 1 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???? Share this post Link to post Share on other sites
Jos 2,164 Posted January 1 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. Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 1 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 Share this post Link to post Share on other sites
Jos 2,164 Posted January 1 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! 1 MostafaTaha reacted to this 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. Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 1 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 Share this post Link to post Share on other sites
Jos 2,164 Posted January 1 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. Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 1 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 Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 1 and i want to write in this txt file from my autoit form Share this post Link to post Share on other sites
Nine 921 Posted January 1 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. Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 1 what do you mean that the crystal ball being broken i dont understand Share this post Link to post Share on other sites
Nine 921 Posted January 1 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... Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 1 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 Share this post Link to post Share on other sites
Confuzzled 10 Posted January 1 JSON or HTTP? What database are you using? What code and software packages do you have running on your website? Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 2 (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 by Melba23 Added code tags Share this post Link to post Share on other sites
Melba23 3,396 Posted January 2 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 Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 2 i dont understand what he mean by see here Share this post Link to post Share on other sites
MostafaTaha 0 Posted January 2 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 Share this post Link to post Share on other sites