Aiyaya Posted October 15, 2009 Share Posted October 15, 2009 (edited) 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 October 15, 2009 by Aiyaya Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 15, 2009 Moderators Share Posted October 15, 2009 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Aiyaya Posted October 15, 2009 Author Share Posted October 15, 2009 Dear Melba23Thanx for you reply.I run sample code in the help file(see below)The icon and process will disappear after script was executedI 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.Thanxsample 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 15, 2009 Share Posted October 15, 2009 (edited) Put this code at the top of your script<br>Opt("TrayIconHide", 1) ;0=show, 1=hide<br>Or<br>#NoTrayIcon<br> Edited October 15, 2009 by snowmaker - 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...
Moderators Melba23 Posted October 15, 2009 Moderators Share Posted October 15, 2009 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Aiyaya Posted October 16, 2009 Author Share Posted October 16, 2009 Dear Melba23Thanx 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 othersThanx#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) 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