Jump to content

Recommended Posts

Posted

If I did not know different, I would swear you are trolling this forum ! :P

In the code, Change FileWrite ($file , "hello") to FileWrite ($file , "a")

no my friend i am new in this language (autoit script) and i want to learn it well

Posted

If I did not know different, I would swear you are trolling this forum ! :unsure:

In the code, Change FileWrite ($file , "hello") to FileWrite ($file , "a")

Come and try it on my PC, it works fine :P

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Posted

:P I stand corrected, but you are not helping here :unsure:

I can't help until I know what the problem is. The clairvoyant() function is still buggy.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Posted (edited)

i want when i click button "a" the file creat and the word "a" put normale

HotKeySet ("{a}" , "a")



While 1
     Sleep(10)
WEnd

func a ()
    FileWrite ("c:\txt.txt" , "hello")
EndFunc
Edited by dallasgfx
  • Developers
Posted (edited)

i want when i click button "a" the file creat and the word "a" put normale

HotKeySet ("{a}" , "a")



While 1
     Sleep(10)
WEnd

func a ()
    FileWrite ("c:\txt.txt" , "hello")
EndFunc
Listen, I understand you are not living in a native English speaking country, but I do think you are not trying anything yourself.

Now stop re-posting the stuff others posted already and start learning and understanding it and then modify it to your needs.

so... now first start putting some effort in yourself and then come back with your questions.

Jos

Edited by 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.
  :)

Posted

I think maybe we are not understanding what you are trying to do...what does "put normale" mean?

This code works for me. Pressing "a" writes to a text file. Pressing "ESC" exits the script and opens the file.

Global Const $filename = "c:\txt.txt"

HotKeySet("{a}", "a")
HotKeySet("{ESC}", "onExit")

While 1
; Wait to Exit
WEnd

Func a()
    $file = FileOpen($filename, 1)
; Check if file opened for writing OK
    If $file = -1 Then
        MsgBox(0, "Error", "Unable to open file." & @CRLF & $filename)
        Exit
    EndIf
    FileWrite($file, "a")
    FileClose($file)

EndFunc  ;==>a

Func onExit()
    ShellExecute($filename)
    Exit
EndFunc  ;==>onExit

i want when i click button "a" the file creat and the word "a" put normale

HotKeySet ("{a}" , "a")



While 1
     Sleep(10)
WEnd

func a ()
    FileWrite ("c:\txt.txt" , "hello")
EndFunc
Posted

Listen, I understand you are not living in a native English speaking country, but I do think you are not trying anything yourself.

Now stop re-posting the stuff others posted already and start learning and understanding it and then modify it to your needs.

so... now first start putting some effort in yourself and then come back with your questions.

Jos

you "re right i am from morocco , i want just some one to need me oh!!!
  • Developers
Posted

oh ... something (or body) told me I had seen this stuff from you before and had something to do with keylogging.

Now you are not trying to do the same thing here again ...are you?

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

Posted

oh ... something (or body) told me I had seen this stuff from you before and had something to do with keylogging.

Now you are not trying to do the same thing here again ...are you?

Jos

no no no no like i tell you , i just want to lrean this language

  • Developers
Posted (edited)

no no no no like i tell you , i just want to lrean this language

Yea ...right : Press A and write that to a file, after that you move on to press B and write to a file?

Now just tell us what you exactly want or go play somewhere else...

Jos

Edited by 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.
  :)

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
×
×
  • Create New...