Jump to content

hello every one


Recommended Posts

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

  • Developers

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

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

  • Developers

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! ;) 

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

  • Developers
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

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

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. ;)

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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 by Melba23
Added code tags
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...