Jump to content

some questions ;==>


Recommended Posts

i am learning autoit myself for 3 months. i have faced some problems please tell me how to do these tasks.

1- my exe name is "AutomatedI.exe" but i want to change its process name to "zFrank.exe"

2- how can i set time out for my gui

While 1 
        $MSG = GUIGetMsg()
        If $MSG = $OK Then
            GUIDelete($GUI)
            ExitLoop
        EndIf
    If $MSG = $About Then
        MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank")
        EndIf
    WEnd

i also used Sleep(5000) but it disables the button.

3- how can i send a command in run program of window without opening it and sending direct command to it.

4- how can i Right click on a tray icon and select a option from it?

please please help me

i have many other question but first want answer to these.

thanks

[font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php
$Life = "Happy"
If @Error Then
$Life = "Risk"
Link to comment
Share on other sites

i am learning autoit myself for 3 months. i have faced some problems please tell me how to do these tasks.

1- my exe name is "AutomatedI.exe" but i want to change its process name to "zFrank.exe"

Why?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Change the exe name to zFrank.exe

good joke

i know i can easily change the name of my exe to change its process name.

by the way this is not a problem.

can you help me in other situations i asked for?

[font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php
$Life = "Happy"
If @Error Then
$Life = "Risk"
Link to comment
Share on other sites

i am learning autoit myself for 3 months. i have faced some problems please tell me how to do these tasks.

1- my exe name is "AutomatedI.exe" but i want to change its process name to "zFrank.exe"

2- how can i set time out for my gui

While 1 
        $MSG = GUIGetMsg()
        If $MSG = $OK Then
            GUIDelete($GUI)
            ExitLoop
        EndIf
    If $MSG = $About Then
        MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank")
        EndIf
    WEnd

i also used Sleep(5000) but it disables the button.

3- how can i send a command in run program of window without opening it and sending direct command to it.

4- how can i Right click on a tray icon and select a option from it?

please please help me

i have many other question but first want answer to these.

thanks

1 - ...

2 - Sleep()

3 - Run() @SW_HIDE, ControlSend()

4 - Create a tray icon

Link to comment
Share on other sites

good joke

i know i can easily change the name of my exe to change its process name.

by the way this is not a problem.

can you help me in other situations i asked for?

2.

$Timer=TimerInit()

While 1
    $MSG = GUIGetMsg()
        If $MSG = $OK Then
            GUIDelete($GUI)
            ExitLoop
        EndIf
    If $MSG = $About Then
        MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank")
        EndIf

If TimerDiff($Timer) >= 20 * 1000 then Exit;after 20 seconds exit or you could exitloop and proceed to the next part of the script
Wend
Edited by ChrisL
Link to comment
Share on other sites

1 - ...

2 - Sleep()

3 - Run() @SW_HIDE, ControlSend()

4 - Create a tray icon

hey! thanks for the reply.

1- leave it

2- where should i add sleep because adding sleep disables all button in gui

3- any example

4- how can i create a tray icon? i want to Right click on a tray icon and select a option from it.

thanks

[font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php
$Life = "Happy"
If @Error Then
$Life = "Risk"
Link to comment
Share on other sites

2.

$Timer=TimerInit()

While 1
    $MSG = GUIGetMsg()
        If $MSG = $OK Then
            GUIDelete($GUI)
            ExitLoop
        EndIf
    If $MSG = $About Then
        MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank")
        EndIf

If TimerDiff($Timer) >= 20 * 1000 then Exit;after 20 seconds exit or you could exitloop and proceed to the next part of the script
Wend
thanks a lot but also tell me about other problems.

sorry for asking many questions in one thread :)

[font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php
$Life = "Happy"
If @Error Then
$Life = "Risk"
Link to comment
Share on other sites

I'm not sure I fully understand number 3.

a ) Do you need to launch a program and send some command line arguments to it?

or

b ) Do you need to interact with a window without setting it in focus. i.e. leave it minimized?

For a ) you use Run("PathToProgram.exe CommandLineArg1 CommandLineArg2" , "FolderOfProgram")

For b ) you need to look in the help file for ControlCommand() ControlSend() and other "Control" related functions

Not sure anout number 4!

Edit: Bloody smilies didn't like b ) with out a space it does this :)

Edited by ChrisL
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...