Jump to content

[Solved] ControlClick Confusion


Recommended Posts

I am having a little trouble understanding this, though i admit i am not great with controlclick. From my understanding it should work but it isn't.

I take it i have not done anything wrong with the syntax?

controlclick('[CLASS:Shell_TrayWnd]', 'User Promoted Notification Area', '[CLASS:ToolbarWindow32; INSTANCE:1]', 'Left', 1, 179, 11)

>>>> Window <<<<
Title:
Class: Shell_TrayWnd
Position: 1661, 0
Size: 259, 1080
Style: 0x96000000
ExStyle: 0x00000088
Handle: 0x0001007C
>>>> Control <<<<
Class: ToolbarWindow32
Instance: 1
ClassnameNN: ToolbarWindow321
Name:
Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:1]
ID: 1504
Text: User Promoted Notification Area
Position: 11, 988
Size: 222, 24
ControlClick Coords: 179, 11
Style: 0x56008B4D
ExStyle: 0x00000080
Handle: 0x00010094
>>>> Mouse <<<<
Position: 1851, 999
Cursor ID: 0
Color: 0xFFFFFF
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
1: 8 [4/25] Episode 075¦ Indiscretion.vob
2: 1 Advanced SystemCare
ActiveBoost: On
3: 3 Skype (Online)
4: 4 Windows Live Messenger (Available)
5: 7 Steam
6: 0 Malwarebytes Anti-Malware 1.60.0.1800
Database version: v2012.01.07.03 (Sat, 07-Jan 03 : 43 PM)
7: 2 ESET Smart Security™ 5.0.95.0
Virus signature database: 6774 (20120107)
8: 5 Main: 34%
9: 6 Network Internet access
>>>> Visible Text <<<<
05 : 00 PM
User Promoted Notification Area
System Promoted Notification Area
Running applications
Running applications

>>>> Hidden Text <<<<

**Edit the code is ment to right click a Icon in the taskbar, Windows 7 (64 Bit) Proffesional N

Edited by IanN1990
Link to comment
Share on other sites

Do you want to right click on a particular tray icon? If yes then have a look here >>

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

a intereseting topic but i donno how pratical it would be for me. As the tooltip changes depending on what video is being played.

Also what i dont understand is the code before did work and it would click the icon, but now it doesnt

I take it all the syntax and spelling with the code in the OP is correct?

*Edit the Oringal Code is correct but windows requires 2 clicks.

controlclick('[CLASS:Shell_TrayWnd]', 'User Promoted Notification Area', '[CLASS:ToolbarWindow32; INSTANCE:1]', 'Left', 2, 179, 11)

Hope this helps others if they tryed to controclick icons in the system tray :)

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