rasim Posted November 30, 2008 Author Share Posted November 30, 2008 Well what happens is the bluetooth icon moves from "some" position in the tray to the far left. it also produces a "ballon tip" but I have ballon tips removed. when you single left click on the bluetooth icon it will produce the window needing attention.Restore the balloon tips showing and try again. Link to comment Share on other sites More sharing options...
goldenix Posted November 30, 2008 Share Posted November 30, 2008 Win XP SP3, & it works thnx for the code. My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
NDog Posted December 10, 2008 Share Posted December 10, 2008 Hi there, this is a useful code. An interesting thing I noticed is with some certain applications like Spyware Terminator for example, is it does not work unless you have already moused over the system tray icon and had a baloon tip show up. If you try this with Spyware Terminator it will work, however log off and on again, and first of all run this script and it wont work. My next question is how could autoit mouse over the selected system tray before running the click section #Include <GuiToolBar.au3> ;Disable Real-Time Shield _SysTray_ClickItem("Spyware Terminator", "right", 1) WinWait("[CLASS:#32768]", "", 3) SendKeepActive("[LAST]") ControlSend("[LAST]", "", "", "{DOWN}{DOWN}{RIGHT}{UP}{ENTER}") Sleep(1000) WinWaitClose("[CLASS:#32768]", "", 3) Func _SysTray_ClickItem($iTitle, $iButton = "left", $iClick = 1, $sMove = False, $iSpeed = 1) Local $hToolbar, $iButCount, $aRect, $hButton, $cID, $i $hToolbar = ControlGetHandle("[Class:Shell_TrayWnd]", "", "[Class:ToolbarWindow32;Instance:1]") If @error Then Return SetError(1, 0, 0) EndIf $iButCount = _GUICtrlToolbar_ButtonCount($hToolbar) If $iButCount = 0 Then Return SetError(1, 0, 0) EndIf $hButton = ControlGetHandle("[Class:Shell_TrayWnd]", "", "Button2") If $hButton <> "" Then ControlClick("[Class:Shell_TrayWnd]", "", "Button2") For $i = 0 To $iButCount - 1 $cID = _GUICtrlToolbar_IndexToCommand($hToolBar, $i) If StringInStr(_GUICtrlToolbar_GetButtonText($hToolBar, $cID), $iTitle) Then _GUICtrlToolbar_ClickButton($hToolbar, $cID, $iButton, $sMove, $iClick, $iSpeed) Return 1 EndIf Next Return SetError(1, 0, 0) EndFunc Link to comment Share on other sites More sharing options...
rasim Posted December 11, 2008 Author Share Posted December 11, 2008 NDogYou tried to set the $sMove parameter to True? Link to comment Share on other sites More sharing options...
dogsn0t Posted August 5, 2010 Share Posted August 5, 2010 ok dumbasses, this is the part where we trade window info for our os, duh Link to comment Share on other sites More sharing options...
dogsn0t Posted August 5, 2010 Share Posted August 5, 2010 if the poster of this code would be so kind as to elaborate on what controls etc are relevant, then we can continue to phase 2 of this project Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 5, 2010 Moderators Share Posted August 5, 2010 dogsn0t,This is a virtually dead thread (last post some 20 months ago) and the original author has not been seen on the forum for some time. If you want to know how to click on systray icons, I have some code which will do that, but I would suggest that you open a new thread in the General Support area rather than hijack this one. M23P.S. Oh, and it would help if you could make your posts in the new topic a little less cryptic! 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...
masCh Posted September 14, 2017 Share Posted September 14, 2017 All I get with these sample codes are "Required item not found" -itisallinthemind- 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