OchoNueve Posted June 23, 2009 Share Posted June 23, 2009 I am trying to get to the "Desktop" tab in "Display Properties" window (right click on desktop and go to properties). Is there a way to get the text from a SysTabControl321? I have tried _GUICtrlTab_GetItemText() but it didn't work. Any help? Thanks. [font="Times New Roman"]Ocho.[/font] Link to comment Share on other sites More sharing options...
spudw2k Posted June 23, 2009 Share Posted June 23, 2009 (edited) This works for me. Retrieves text of current selected tab. #Include <GuiTab.au3> $ctrl = ControlGetHandle("Display Properties","","SysTabControl321") $rslt = _GUICtrlTab_GetItemText($ctrl,_GUICtrlTab_GetCurSel($ctrl)) msgbox(0,"",$rslt) Edited June 23, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
OchoNueve Posted June 23, 2009 Author Share Posted June 23, 2009 CODE#Include <GuiTab.au3> $ctrl = ControlGetHandle("Display Properties","","SysTabControl321") $rslt = _GUICtrlTab_GetItemText($ctrl,_GUICtrlTab_GetCurSel($ctrl)) msgbox(0,"",$rslt) This did not work for me...I get an empty msgbox... [font="Times New Roman"]Ocho.[/font] Link to comment Share on other sites More sharing options...
spudw2k Posted June 23, 2009 Share Posted June 23, 2009 (edited) hmmm. that's odd.....and you had Display Properties open at the time? Is it in English or perhaps spelled different? do you have admin rights? (not sure if it's required...just a troubleshooting thought) Edited June 23, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
OchoNueve Posted June 23, 2009 Author Share Posted June 23, 2009 hmmm. that's odd.....and you had Display Properties open at the time? Is it in English or perhaps spelled different?do you have admin rights? (not sure if it's required...just a troubleshooting thought)I do not have the window open already, but this is what I do:CODE#include <GuiTab.au3>Run("control.exe desk.cpl")Sleep(500)$ctrl = ControlGetHandle("Display Properties","","SysTabControl321")$rslt = _GUICtrlTab_GetItemText($ctrl,_GUICtrlTab_GetCurSel($ctrl))msgbox(0,"",$rslt)And I still get an empty msgbox(). Oh and I do have Admin rights. [font="Times New Roman"]Ocho.[/font] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 23, 2009 Share Posted June 23, 2009 Why are you doing it the hard way? Try this:Run("control.exe desk.cpl ,0")See HERE for the codes .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
OchoNueve Posted June 23, 2009 Author Share Posted June 23, 2009 Why are you doing it the hard way? Try this: Run("control.exe desk.cpl ,0") See HERE for the codes The reason I'm doing it the hard way is because...well actually it's because I didn't know the easy way lol. Thanks a lot AdmiralAlkex! Works perfectly! [font="Times New Roman"]Ocho.[/font] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 23, 2009 Share Posted June 23, 2009 The reason I'm doing it the hard way is because...well actually it's because I didn't know the easy way lol. Thanks a lot AdmiralAlkex! Works perfectly!Well I just had a vague memory something like that existed, I couldn't have done it without Google .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
OchoNueve Posted June 23, 2009 Author Share Posted June 23, 2009 Well I just had a vague memory something like that existed, I couldn't have done it without Google Bing is taking over [font="Times New Roman"]Ocho.[/font] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 23, 2009 Share Posted June 23, 2009 Bing is taking over Not on my computer .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
OchoNueve Posted June 23, 2009 Author Share Posted June 23, 2009 Not on my computer Jajaja. Hey quick question, what happens if somehow the "Desktop" tab is dissabled and I run my program? I would try and test it but I don't know how to dissable that tab... [font="Times New Roman"]Ocho.[/font] 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