DaRam Posted March 20, 2009 Share Posted March 20, 2009 I stand corrected, but you are not helping here Oh yes you can. It's not a good practice but it can be done. Link to comment Share on other sites More sharing options...
dallasgfx Posted March 20, 2009 Author Share Posted March 20, 2009 If I did not know different, I would swear you are trolling this forum ! 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 Link to comment Share on other sites More sharing options...
martin Posted March 20, 2009 Share Posted March 20, 2009 If I did not know different, I would swear you are trolling this forum ! In the code, Change FileWrite ($file , "hello") to FileWrite ($file , "a")Come and try it on my PC, it works fine 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. Link to comment Share on other sites More sharing options...
GEOSoft Posted March 20, 2009 Share Posted March 20, 2009 I stand corrected, but you are not helping here 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!" Link to comment Share on other sites More sharing options...
dallasgfx Posted March 20, 2009 Author Share Posted March 20, 2009 (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 March 20, 2009 by dallasgfx Link to comment Share on other sites More sharing options...
Developers Jos Posted March 20, 2009 Developers Share Posted March 20, 2009 (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 March 20, 2009 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. Link to comment Share on other sites More sharing options...
erik7426 Posted March 20, 2009 Share Posted March 20, 2009 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 Link to comment Share on other sites More sharing options...
dallasgfx Posted March 20, 2009 Author Share Posted March 20, 2009 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.Josyou "re right i am from morocco , i want just some one to need me oh!!! Link to comment Share on other sites More sharing options...
Developers Jos Posted March 20, 2009 Developers Share Posted March 20, 2009 .... i want just some one to need me oh!!!This doesn't make much sense in an AutoIt3 forum .... anyways, important is you understood what I tried to tell 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 20, 2009 Developers Share Posted March 20, 2009 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. Link to comment Share on other sites More sharing options...
dallasgfx Posted March 20, 2009 Author Share Posted March 20, 2009 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?Josno no no no like i tell you , i just want to lrean this language Link to comment Share on other sites More sharing options...
Developers Jos Posted March 20, 2009 Developers Share Posted March 20, 2009 (edited) no no no no like i tell you , i just want to lrean this languageYea ...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 March 20, 2009 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. 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