Jump to content
Sign in to follow this  
Aiyaya

Autoit tray icon issue-<IE.au3>

Recommended Posts

Aiyaya

Dears

I made a short script to login gmail automatically.

It worked well.

But I am confused that a autoit icon shown on systray.

When I right clicked it, it showed two options "Script paused" and "Exit"

Is it possible to turn it off after script executed?

Following is my script

Thanx

#include <IE.au3>

$oIE = _IECreate ("http://mail.google.com/mail/?logout")

$oForm = _IEFormGetObjByName ($oIE, "gaia_loginform")

$oQuery = _IEFormElementGetObjByName ($oForm, "Email")

$oQuery2 = _IEFormElementGetObjByName ($oForm, "Passwd")

_IEFormElementSetValue ($oQuery, "abc@gmail.com")

_IEFormElementSetValue ($oQuery2, "12345")

_IEFormSubmit ($oForm)

Edited by Aiyaya

Share this post


Link to post
Share on other sites
Melba23

Aiyaya,

The AutoIt icon (or the one that you have selected to use with a compiled .exe) appears in the systray whenever an Autoit script is running, unless you use the #NoTrayIcon directive or the Opt("TrayIconHide", 1) function - look them up in the Help file.

The Autoit icon should vanish when the script exits.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Aiyaya

Dear Melba23

Thanx for you reply.

I run sample code in the help file(see below)

The icon and process will disappear after script was executed

I revised sample code as mine and run it, it did not work.

Would you tell me how to terminate process and icon after script was executed.

Thanx

sample code

--------------------------------------------

#include <IE.au3>

$oIE = _IECreate ("http://www.google.com")

$oForm = _IEFormGetObjByName ($oIE, "f")

$oQuery = _IEFormElementGetObjByName ($oForm, "q")

_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")

_IEFormSubmit ($oForm)

--------------------------------------------

Aiyaya,

The AutoIt icon (or the one that you have selected to use with a compiled .exe) appears in the systray whenever an Autoit script is running, unless you use the #NoTrayIcon directive or the Opt("TrayIconHide", 1) function - look them up in the Help file.

The Autoit icon should vanish when the script exits.

M23

Share this post


Link to post
Share on other sites
somdcomputerguy

Put this code at the top of your script<br>

Opt("TrayIconHide", 1)  ;0=show, 1=hide
<br>Or<br>
#NoTrayIcon
<br>

Edited by snowmaker

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

Aiyaya,

You script works fine for me - it runs correctly and then terminates. Although you will not log in without the CAPTCHA information - and before you ask, you will get no help here in trying to automate that. :)

I do not use IE.au3 so I cannot help you further. I suggest you rename your topic to include <IE.au3> and see if someone who knows more about that UDF can help. To rename the topic, use the "Edit" button on your opening post.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Aiyaya

Dear Melba23

Thanx for your reply again.

Finally, I found what the problem is.

I read help file again and found a option need to be set when I call _IEFormSubmit.

I've marked the option value as red.

Hope could do some favor to others

Thanx

#include <IE.au3>

$oIE = _IECreate ("http://mail.google.com/mail/?logout")

$oForm = _IEFormGetObjByName ($oIE, "gaia_loginform")

$oQuery = _IEFormElementGetObjByName ($oForm, "Email")

$oQuery2 = _IEFormElementGetObjByName ($oForm, "Passwd")

_IEFormElementSetValue ($oQuery, "abc@gmail.com")

_IEFormElementSetValue ($oQuery2, "12345")

_IEFormSubmit ($oForm, 0)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.