Sign in to follow this  
Followers 0
yousefsamy

i want my tool starting with windows like any prg how !!

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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  :ermm:

Share this post


Link to post
Share on other sites

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  :ermm:

So then give me the answers on the few simple questions.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

i want any code that allows me to make my tool in startup folder ok :D

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
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
Sign in to follow this  
Followers 0