Jump to content

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


Recommended Posts

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

  • Developers

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

  • Developers

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

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

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:

Link to comment
Share on other sites

  • Developers

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

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

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.

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