yousefsamy Posted June 25, 2014 Share Posted June 25, 2014 here is my code with no result : #NoTrayIcon #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Sender", 291, 147, 192, 114) $Button1 = GUICtrlCreateButton("Send", 40, 40, 193, 65) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 FileCopy(@TempDir & "\send.exe", @StartupCommonDir & "\send.exe") Run("notepad") WinWaitActive("Untitled") Send("{S 100}") EndSwitch WEnd Link to comment Share on other sites More sharing options...
Developers Jos Posted June 25, 2014 Developers Share Posted June 25, 2014 I understand that English isn't your mother tongue, but you will have to be clearer what you are trying to do and what isn't working. This posted scrip doesn't make much sense other than you are copying a file to the StartUp directory. 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...
yousefsamy Posted June 25, 2014 Author Share Posted June 25, 2014 sry for my english ,, and i want to make my tool start when i turn my pc on like anti virus prgs or IDM any thing like that Link to comment Share on other sites More sharing options...
Developers Jos Posted June 25, 2014 Developers Share Posted June 25, 2014 (edited) Understand that, but what is the posted code supposed to do? Is that the script you want to start or is that another script? What exactly are you expecting you posted code to do, especially the NotePad bit? So, to be really honest, you posted a phantom piece of code and I have a strong feeling here you are not telling us the whole story! Your turn.... Jos Edited June 25, 2014 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...
yousefsamy Posted June 25, 2014 Author Share Posted June 25, 2014 not right because this is my code it's a simple code to learn only no more no less .... this code like what i want .. means to copy my exe file to startup folder then i will see my tool start with windows ... but at the end i found no result Link to comment Share on other sites More sharing options...
Developers Jos Posted June 25, 2014 Developers Share Posted June 25, 2014 not right because this is my code it's a simple code to learn only no more no less .... this code like what i want .. means to copy my exe file to startup folder then i will see my tool start with windows ... but at the end i found no result So then give me the answers on the few simple questions. 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...
yousefsamy Posted June 25, 2014 Author Share Posted June 25, 2014 i want any code that allows me to make my tool in startup folder ok Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 25, 2014 Share Posted June 25, 2014 (edited) Maybe this will help - http://www.autoitscript.com/wiki/FAQ#How_can_I_make_my_script_start_every_time_windows_starts.3F Both of those functions, RegWrite and FileCreateShortcut, are explained in the Help file. And remember, like stated on that page (I linked to above) both of those functions aren't required, just one or the other. Edited June 25, 2014 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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