Sign in to follow this  
Followers 0
Kharizmah

IUIAutomation Getting Read-Only Selected Value from Combo Box

32 posts in this topic

#1 ·  Posted (edited)

Disabled WPF Combo Boxes are not selectable and cannot receive focus.

Despite that there is a value there and want to know if there is anyway to access it.

If I use Junkew's simplyspy.au3  both the program and simplespy.au3 will crash the moment I attempt to retrieve this combobox.

If I paste the capture before the crash, Simple Spy doesn't have any data registered for $UIA_SelectionSelectionPropertyId.

         AutoIt Error for simplyspy.au3:

---------------------------
AutoIt Error
---------------------------
Line 210  (File "E:\Program Files (x86)\AutoIt3\Examples\simplespy.au3"):

_UIA_DrawRect($t[1],$t[3]+$t[1],$t[2],$t[4]+$t[2])
_UIA_DrawRect($t[1],^ ERROR

Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.
---------------------------
OK   
---------------------------

If I use UI Spy or Inspect I do see a value named "list item" "Flat".

ComboxBox1.thumb.png.84ab66c5e4a4f27ced3

However, if I try:

 $comboBox.GetCurrentPropertyValue("SelectionSelection", $selection)

ConsoleWrite($selection)

Then ComboBox is highlighted but $selection is blank.

Is it imposible to retrieve this value when the comboBox is  disabled?

@junkew @LarsJ

Edited by Kharizmah

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

@junkew I might need clarification on this reply.

I do have administrator rights on the computer I am running the script from.

I tried inserting #requireadmin and looked for RunAs  and I am not seeing anything that would suggest that it needs to run in admin mode.

It works without crashing for all other fields except Read-Only WPF combo boxes.

In output it also has this line:

//TODO codetemplates.txt not available An error occurred when reading the file. & @CRLF

I'm not sure if that matters?

 

Edited by Kharizmah

Share this post


Link to post
Share on other sites

That's what I posted above.  I do see the selected item using Inspect.exe

I'll try one more verification technique to ensure the correct object is being viewed. 

The previous one I tried is insuring the object was of class comboBox. I'll also verify the AutomationID this time and see if it's able to pull the value.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

@junkew I cannot get any Selection data from that object.

 

Do you know if that's just the way it is for Disabled UI?

Is there a known way through AutoIt to do something like Snoop and Enable the object for reading and then Disable it later?

Try 2:

 

OutPut:

ComboBox exists!Selection: 

So, it finds this combobox but I can't get Selection.Selection data

Selection_Inspect.thumb.png.10539ec93cef

ComboBox exists!Selection:  Class: ComboBox Automation Id: OptionalEnum

I also tried If IsArray($selection) because apparently the return value is an array.

This also returns blank.  I was wondering if GetCurrentPropertyValue will only returns bools and singular values?

Edited by Kharizmah

Share this post


Link to post
Share on other sites

I can see, that the output in the png-image in first post is from UISpy.exe. You should not use UISpy.exe which is at least 10 years old and does not give any valuable information for newer applications. There is no direct connection between the information you get from UISpy.exe and the way you search for the same information through the UI Automation framework by junkew.

You should investigate the combo box with Inspect.exe. Then you'll probably see that Inspect.exe does not get the value in the combo box directly from the combo box but from an edit box which is a child control of the combo box. A combo box usually consists of an edit box and a list box.

With the information you get from Inspect.exe you can easily extract the same information through the UI Automation framework by junkew. And you'll probably see, that you have to extract the information from the edit box and not directly from the combo box.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

@LarsJ

I generally do use Inspect.exe in conjunction with UISpy.exe and don't generally see a huge difference.

It saddens me that a program from 2003 can pull information that a newer one may not. 

I will install the latest Inspect.exe to see if that is true. Meanwhile here is Inspect from 2009.Selection_Inspect.thumb.png.10539ec93cef

As you can see there is still data showing in Selection.Selection

Edited by Kharizmah

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

@junkew It turns out it doesn't matter if it is enabled...

I will test a combo box  in a Windows app and get back to you

 

 

 

 

Edited by Kharizmah

Share this post


Link to post
Share on other sites

hard to say. I made a dummy WPF application with visual studio 2013 one disabled combobox and one enabled and run under windows 10

Simple spy gives this 

first one IsEnable is false and for second one its true.

Spy doesn't break

advice to comment out this in your version of simplespy: _UIA_DrawRect($t[1],$t[3]+$t[1],$t[2],$t[4]+$t[2]) 

unfortunately cannot share the latest version as mine is unstable at the moment

*** Detailed properties of the highlighted element ***
UIA_class:= <ComboBox>
UIA_regexpclass:= <ComboBox>
UIA_iaccessiblechildId:= <0>
UIA_handle:= <0>
UIA_RuntimeId:= <7;8388;35786431>
UIA_BoundingRectangle:= <171;136;120;22>
UIA_ProcessId:= <8388>
UIA_ControlType:= <50003>
UIA_LocalizedControlType:= <keuzelijst met invoervak>
UIA_HasKeyboardFocus:= <False>
UIA_IsKeyboardFocusable:= <False>
UIA_IsEnabled:= <False>
UIA_ClassName:= <ComboBox>
UIA_ClickablePoint:= <231;147>
UIA_Culture:= <0>
UIA_IsControlElement:= <True>
UIA_IsContentElement:= <True>
UIA_IsPassword:= <False>
UIA_NativeWindowHandle:= <0>
UIA_IsOffscreen:= <False>
UIA_Orientation:= <0>
UIA_FrameworkId:= <WPF>
UIA_IsRequiredForForm:= <False>
UIA_IsDockPatternAvailable:= <False>
UIA_IsExpandCollapsePatternAvailable:= <True>
UIA_IsGridItemPatternAvailable:= <False>
UIA_IsGridPatternAvailable:= <False>
UIA_IsInvokePatternAvailable:= <False>
UIA_IsMultipleViewPatternAvailable:= <False>
UIA_IsRangeValuePatternAvailable:= <False>
UIA_IsScrollPatternAvailable:= <False>
UIA_IsScrollItemPatternAvailable:= <False>
UIA_IsSelectionItemPatternAvailable:= <False>
UIA_IsSelectionPatternAvailable:= <True>
UIA_IsTablePatternAvailable:= <False>
UIA_IsTableItemPatternAvailable:= <False>
UIA_IsTextPatternAvailable:= <False>
UIA_IsTogglePatternAvailable:= <False>
UIA_IsTransformPatternAvailable:= <False>
UIA_IsValuePatternAvailable:= <False>
UIA_IsWindowPatternAvailable:= <False>
UIA_ValueIsReadOnly:= <True>
UIA_RangeValueValue:= <0>
UIA_RangeValueIsReadOnly:= <True>
UIA_RangeValueMinimum:= <0>
UIA_RangeValueMaximum:= <0>
UIA_RangeValueLargeChange:= <0>
UIA_RangeValueSmallChange:= <0>
UIA_ScrollHorizontalScrollPercent:= <0>
UIA_ScrollHorizontalViewSize:= <100>
UIA_ScrollVerticalScrollPercent:= <0>
UIA_ScrollVerticalViewSize:= <100>
UIA_ScrollHorizontallyScrollable:= <False>
UIA_ScrollVerticallyScrollable:= <False>
UIA_SelectionCanSelectMultiple:= <False>
UIA_SelectionIsSelectionRequired:= <False>
UIA_GridRowCount:= <0>
UIA_GridColumnCount:= <0>
UIA_GridItemRow:= <0>
UIA_GridItemColumn:= <0>
UIA_GridItemRowSpan:= <1>
UIA_GridItemColumnSpan:= <1>
UIA_DockDockPosition:= <5>
UIA_ExpandCollapseExpandCollapseState:= <0>
UIA_MultipleViewCurrentView:= <0>
UIA_WindowCanMaximize:= <False>
UIA_WindowCanMinimize:= <False>
UIA_WindowWindowVisualState:= <0>
UIA_WindowWindowInteractionState:= <0>
UIA_WindowIsModal:= <False>
UIA_WindowIsTopmost:= <False>
UIA_SelectionItemIsSelected:= <False>
UIA_TableRowOrColumnMajor:= <2>
UIA_ToggleToggleState:= <2>
UIA_TransformCanMove:= <False>
UIA_TransformCanResize:= <False>
UIA_TransformCanRotate:= <False>
UIA_IsLegacyIAccessiblePatternAvailable:= <True>
UIA_LegacyIAccessibleChildId:= <0>
UIA_LegacyIAccessibleRole:= <46>
UIA_LegacyIAccessibleState:= <1025>
UIA_LegacyIAccessibleDefaultAction:= <Uitbreiden>
UIA_IsDataValidForForm:= <False>
UIA_ProviderDescription:= <[pid:8388,hwnd:0x0 Main(parent link):Unidentified Provider (managed:MS.Internal.Automation.ElementProxy, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)]>
UIA_IsItemContainerPatternAvailable:= <True>
UIA_IsVirtualizedItemPatternAvailable:= <False>
UIA_IsSynchronizedInputPatternAvailable:= <True>
*** Detailed properties of the highlighted element ***
UIA_class:= <ComboBox>
UIA_regexpclass:= <ComboBox>
UIA_iaccessiblechildId:= <0>
UIA_handle:= <0>
UIA_RuntimeId:= <7;8388;57957548>
UIA_BoundingRectangle:= <291;295;120;22>
UIA_ProcessId:= <8388>
UIA_ControlType:= <50003>
UIA_LocalizedControlType:= <keuzelijst met invoervak>
UIA_HasKeyboardFocus:= <False>
UIA_IsKeyboardFocusable:= <True>
UIA_IsEnabled:= <True>
UIA_ClassName:= <ComboBox>
UIA_ClickablePoint:= <351;306>
UIA_Culture:= <0>
UIA_IsControlElement:= <True>
UIA_IsContentElement:= <True>
UIA_IsPassword:= <False>
UIA_NativeWindowHandle:= <0>
UIA_IsOffscreen:= <False>
UIA_Orientation:= <0>
UIA_FrameworkId:= <WPF>
UIA_IsRequiredForForm:= <False>
UIA_IsDockPatternAvailable:= <False>
UIA_IsExpandCollapsePatternAvailable:= <True>
UIA_IsGridItemPatternAvailable:= <False>
UIA_IsGridPatternAvailable:= <False>
UIA_IsInvokePatternAvailable:= <False>
UIA_IsMultipleViewPatternAvailable:= <False>
UIA_IsRangeValuePatternAvailable:= <False>
UIA_IsScrollPatternAvailable:= <False>
UIA_IsScrollItemPatternAvailable:= <False>
UIA_IsSelectionItemPatternAvailable:= <False>
UIA_IsSelectionPatternAvailable:= <True>
UIA_IsTablePatternAvailable:= <False>
UIA_IsTableItemPatternAvailable:= <False>
UIA_IsTextPatternAvailable:= <False>
UIA_IsTogglePatternAvailable:= <False>
UIA_IsTransformPatternAvailable:= <False>
UIA_IsValuePatternAvailable:= <False>
UIA_IsWindowPatternAvailable:= <False>
UIA_ValueIsReadOnly:= <True>
UIA_RangeValueValue:= <0>
UIA_RangeValueIsReadOnly:= <True>
UIA_RangeValueMinimum:= <0>
UIA_RangeValueMaximum:= <0>
UIA_RangeValueLargeChange:= <0>
UIA_RangeValueSmallChange:= <0>
UIA_ScrollHorizontalScrollPercent:= <0>
UIA_ScrollHorizontalViewSize:= <100>
UIA_ScrollVerticalScrollPercent:= <0>
UIA_ScrollVerticalViewSize:= <100>
UIA_ScrollHorizontallyScrollable:= <False>
UIA_ScrollVerticallyScrollable:= <False>
UIA_SelectionCanSelectMultiple:= <False>
UIA_SelectionIsSelectionRequired:= <False>
UIA_GridRowCount:= <0>
UIA_GridColumnCount:= <0>
UIA_GridItemRow:= <0>
UIA_GridItemColumn:= <0>
UIA_GridItemRowSpan:= <1>
UIA_GridItemColumnSpan:= <1>
UIA_DockDockPosition:= <5>
UIA_ExpandCollapseExpandCollapseState:= <0>
UIA_MultipleViewCurrentView:= <0>
UIA_WindowCanMaximize:= <False>
UIA_WindowCanMinimize:= <False>
UIA_WindowWindowVisualState:= <0>
UIA_WindowWindowInteractionState:= <0>
UIA_WindowIsModal:= <False>
UIA_WindowIsTopmost:= <False>
UIA_SelectionItemIsSelected:= <False>
UIA_TableRowOrColumnMajor:= <2>
UIA_ToggleToggleState:= <2>
UIA_TransformCanMove:= <False>
UIA_TransformCanResize:= <False>
UIA_TransformCanRotate:= <False>
UIA_IsLegacyIAccessiblePatternAvailable:= <True>
UIA_LegacyIAccessibleChildId:= <0>
UIA_LegacyIAccessibleRole:= <46>
UIA_LegacyIAccessibleState:= <1049600>
UIA_LegacyIAccessibleDefaultAction:= <Uitbreiden>
UIA_IsDataValidForForm:= <False>
UIA_ProviderDescription:= <[pid:8388,hwnd:0x0 Main(parent link):Unidentified Provider (managed:MS.Internal.Automation.ElementProxy, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)]>
UIA_IsItemContainerPatternAvailable:= <True>
UIA_IsVirtualizedItemPatternAvailable:= <False>
UIA_IsSynchronizedInputPatternAvailable:= <True>

 

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

@junkew So I noticed that $UIA_SelectionSelectionPropertyId is missing from your capture.

It doesn't even show as blank.

When I comment out the _UIA_DrawRect($t[1],$t[3]+$t[1],$t[2],$t[4]+$t[2]) , I notice that $UIA_SelectionSelectionPropertyId is missing in my capture also.

So, with your wrapper will I be unable to capture this information?

I know that the return value of  $UIA_SelectionSelectionPropertyId is an array.

Yet I also see that scenario should be handled here:

 PropertyValueIsArray.thumb.png.b4aad89c5

 

Edited by Kharizmah

Share this post


Link to post
Share on other sites

Okay, so just for fun, I changed the code to say:

If IsArray($tval) Then

_ArrayDisplay($tval)

EndIf

The return was an array of numbers:

Row|Col 0
[0]|1746
[1]|1086
[2]|120
[3]|21

 

Share this post


Link to post
Share on other sites

Its a safearray and to make life easier i make them a semicolon stringlist so easier to deal with under general assumption it are small arrays returned. I assume when you get the combobox itself you could play with a treewalker to iterate thru childs of the combobox beeing an edit and listcontrol. Of thise childcontrols you should be able to get the values.

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

@junkew Yes, when the ComboBox is enabled that is how I get the value.

After I select the ComboBox, I use Treewalker to view the children and select a child object or verify the object

$UIA_SelectionIsSelectionRequiredPropertyId = true

That workaround works fine for an enabled comboBox.

However, it does not work for a disabled comboBox.  

Edited by Kharizmah

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

@junkew

Okay apparently I do NOT fully read things.

Did you know that $UIA_SelectionSelectionPropertyId does NOT return as an array but as an IUIAutomationElementArray pointer.  That's why the _ArrayDisplay showed a series of numbers.

Okay... I see your above comment that's why you're suggesting using a ContainerPattern

 

Edited by Kharizmah

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

@LarsJ

In speaking with @junkew he suggested I try to access the $UIA_SelectionIsSelectionRequiredPropertyId by using an ItemContainerProvider.  I noticed you had assisted someone with something similar in the thread below.

I was wondering what the variables represented in your FindItemByProperty method are, as there are 4 variables and the MSDN https://msdn.microsoft.com/en-us/library/system.windows.automation.itemcontainerpattern.finditembyproperty(v=vs.110).aspx

only seem to be referring to 3 variables.

objectInterface_selection.thumb.png.6a6bIn changing the code around to reflect your example, $selection is showing a result of 0.

I can only assume this is because of the variables I am putting in.

Edited by Kharizmah

Share this post


Link to post
Share on other sites

Your link above refer to the function in the .NET framework. The functions which junkew implements are the functions in the Windows API. You can find the documentation for FindItemByProperty here.

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  
Followers 0

  • Similar Content

    • TheSaint
      By TheSaint
      TeraCopy Timer - A program of mine, front end really, that I have been working on (on & off) for some time, but not shared here before, that I recall. Third party program TeraCopy is required.
      Many of you will be familiar with TeraCopy, and it has been discussed here at AF on several occasions, in various sub forums, including Chat.
      BE ADVISED - I still use an older version of TeraCopy (v2.27), a goody but an oldy, so have only tested my program with that. It may work with the newer v3.xx, or may be easily adjusted to do so, but I have not yet gone that route. Likewise, I only use it with Win 7 and Win XP, but I don't imagine there should be any issues with newer Windows. Add to that, my program being devised and created in AutoIt v3.3.0.0.
      So what is TeraCopy Timer and why might you need it?
      I devised my program for two main reasons really, based on giving me greater control, using the Free version of TeraCopy, which has some limitations (perhaps even with the paid full version). My program utilizes the features of the TeraCopy command-line.
      1. I was fed up with Thumbs.db files regularly halting the process in Win XP or preventing a folder being deleted after a move. Only happens with Win XP.
      2. I wanted to automate delays between jobs, allowing all HDD's to rest periodically when doing large and lengthy jobs. Letting HDD's heat up too much, can have tragic results or considerably shorten their lifespan. Prevention is better than cure or just relying on monitoring software etc.
      --------------------------------------------------------------------------------------
      Those familiar with TeraCopy use, know you can run multiple copy or move jobs either simultaneously or concurrently (one immediately after another has finished). With the free version at least, you have no control over precise order or timing, and no way to deal (without manual interaction) with the pesky Thumbs.db files in Win XP. TeraCopy Timer allows you to do all those things, and in a batch fashion.
      --------------------------------------------------------------------------------------
      Some screenshots and brief explanation
      Main Window

      You can browse to set the Source and Destination paths, or like me, just use Drag & Drop to those inputs.
      Once the Destination path has been set, the MIN (minimalist GUI) button becomes available. In Minimal mode, you get a further level of automation, once initial options are set, and thus less prompts ... none in fact, as jobs are created automatically based on either COPY or MOVE.
      Minimalist Window

      In the Minimalist mode, you can only use Drag & Drop to add a source file or folder, and COPY or MOVE is permanently set when the window first opens, via a choice prompt.
      Assigning a WAIT is simple and easy, and is the latest feature added to the program ... I used a much more complex variant before that (see Advanced Delay).

      The program now displays three file size reports.
      Individual Size of the current (last added) job (Blue label).
      Total Size of all jobs combined (Black label).
      Subtotal Size for each grouping of jobs, defined by a WAIT selection (Red label).
      You toggle between Black and Red, by just clicking that label. If no WAIT has been set, then the values will be the same.
      The wait of 5 minutes in the screenshot above is set for the source shown. It means wait 5 minutes before copying (or moving) that source.
      More sources added from that point, add to a new subtotal. To see the previous subtotal, you need to be at the main (MAX) window, and select the prior job.
      So every time a WAIT is clicked for a source a new subtotal count is started.

      In the screenshot above, you can see the Job name, and that it is Job number 5 order wise. MOVE has been set for that job.
      Selecting Job 4, you will see the previous (complete) Subtotal. Selecting job 3 (in this instance), you would see the subtotal up to that job.
      Click the red Total label and it will change to Black, and show you the total size over all, as shown in the second screenshot above.
      This new WAIT feature is the simplest and best way to use the program generally (in my view) ... but check out the following, as it is not always the case.
      Advanced Delay Window

      The Advanced Delay Options, are a further level of automation, added during the early stages of development, before I thought to create the Minimalist window and show Sizes. It was before I decided to put a lot more effort into the program. As with all my programs though, it is continual use that eventually dictates what I ultimately want to happen, to make my life easier ... simpler, better, smarter, quicker.
      The main difference between this older method, and the new WAIT one, where you specify delays precisely, is that the program attempts to determine the best moments to pause, based on various factors, which you setup and can vary between different types of Job sessions.
      The chief purpose for all the advanced options, is an attempt to cater for the difference between moving a small number of big files and a lot of small files. Moving or Copying lots of small files (hundreds or thousands), as many would know, can heat up a HDD far quicker and to a much higher temperature than a small number of (even very) large files. I guess that is primarily due to the sheer number of indexes that need to be created, and with small files are done at a staggering rate.
      Which method you use, is up to you, and should be governed by the type of job. Both methods can be used together, but not advised if you don't want the possibility of unnecessary extra long delays. EDIT - That said, you could use the WAIT option just for a delayed start of the first job ... perhaps your PC is busy doing something else until then, but you want to go and do something else for a bit, and have it all done by the time you return (i.e. watch a movie).
      WARNING - It should go without saying, that you take all the usual precautions. For instance, don't use move with the only copy you have of precious files. BACKUP BACKUP BACKUP! Don't hold me liable for anything, except for being a nice guy who likes to share.
      TeraCopy Timer v2.0.zip
      Enjoy!
      P.S. I am not affiliated in any way with those who created and provide the excellent third party program - TeraCopy.
    • Earthshine
      By Earthshine
      This is pretty useful to me at least, I hope to others. Whenever you need to poke a button or such on a GUI, you can just make calls to this UDF and instruct it how long to wait, 0 is forever, anyway, let the code to the explaining. Feel free to help expand this UDF. I plan to create new ones as I go along that support all the Win32 and .NET Controls. Ultimately, I would like to be able to fully control any type of control, this works well with most. Just an example of what you can do.
       
      The test installs and can uninstall 7-Zip 15.14 (x64) Setup.exe
      NOTE: Logger Author(s) .....: Michael Mims (zorphnog)
      ;                    the logging script can be obtained here
      ;                   https://www.autoitscript.com/forum/topic/156196-log4a-a-logging-udf/
       
       
      install_7zip_test.au3
      WaitForControls.au3
    • FrancescoDiMuro
      By FrancescoDiMuro
      Good morning everyone
      I worked a bit on a little project of mine, and I managed to do what I was trying to do, or, automate a quiz in AutoIt.
      Now, everything works fine but, in order to achieve what I'm trying to achive, I'd like to make this script run faster.
      I'll attach a portion of the code in order to let you understand what my script does.
      $objIE_h1 = _IETagNameGetCollection($objIE, "h1") ; Take the text of the answer If @error Then ConsoleWrite("Errore durante la lettura degli h1 nella pagina. - Errore: " & @error & @CRLF) Else For $objElement In $objIE_h1 $strInnerText = $objElement.innerText Next Select Case StringInStr($strInnerText, "QUESTION") ; Here is the question ; PS4 PRO $objSpans = _IETagNameGetCollection($objIE, "span") ; Answers are stored here For $objElement In $objSpans If $i >= 4 Then $strAnswer = $objElement.innerText ; Take the text of the answer n° 0, 1, 2, 3 If StringInStr($strAnswer, "CORRECT ANSWER") Then ; If I match the correct answer, then, I have to click on the input with answer id = answer_i $j = $i - 4 $objInput = _IEGetObjById($objIE, "answer_" & $j) If @error Then ConsoleWrite("Errore durante la lettura della risposta #" & $i & " - Errore: " & @error & @CRLF) Else _IEAction($objInput, "click") If @error Then ConsoleWrite("Errore durante il click sull'elemento. - Errore: " & @error) Else ConsoleWrite($j & ") Risposta: " & $strAnswer & @CRLF) ExitLoop EndIf EndIf EndIf $i+=1 Else $i+=1 EndIf Next $i = 0 $j = 0 This is what my script does.
      Questions are 20, in which I have 15 multiple choice question, 2 images ( on which I use _IEImgClick() ), and 3 text inputs ( a simple send with the text I have to enter ).
      How can I make all of these, faster?
      If I reach this goal, I've probably done one of my best goals in life, and I'd like to share my happiness with you, giving a huge donation to this fantastic community!
      Thanks for your help
    • Psyllex
      By Psyllex
      Is it possible for AutoIt to execute LALT+LSHIFT+NUMLOCK?  I've attempted the following:
       
      ;To show the desktop Send("{RWIN down}") Send("{d}") Send("{RWIN up}") WinWait(2) ;just to make sure the desktop is activated. ControlClick("", "",1[,button="left"[, clicks=2 [, x [, y]]]] ) Send("{LALT down}") Send("{CLT down}") Send("{DELETE down}") ;Send("{LSHIFT down}") ;Send("{NUMLOCK}") ;Send("{NUMLOCK}") ;Send ("{LALT up}") ;Send("{LSHIFT up}") This should bring up the MouseKeys dialog...but I'm getting nothing.  Thanks for any help!
    • WalkHappy
      By WalkHappy
      Hello, I'm in the process of recreation-ally expanding my Auto-it experience for some future awesome presentation-Al capabilities. So I have a user interface which loads a text document onto a GUI-object. The variables of this function are 1) The text document is dynamic in font size and face; giving the viewer an unpredictable horizontal/vertical scroll dimension. 2) The main objective is to animate the vertical scroll-bar so that it moves like the end of a movie with accreditation. 3) I'm trying to limit the accessibility in observation by excluding any mouse functions within the animation process. Any help would be greatly appreciated! Been trying to work on this for days now - from getting element properties, to embedding external code, and even exploiting ("$oIE.navigate") to loading several awkwardly formatted text documents in sequential order just to imitate a slightly offensive animation scheme. Anyways... Suggestions and comments welcomed please!!
      Script is from [Function GUICreate] - Doc:
      GUICreate("Embedded Web control Test", 640, 580, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) GUICtrlCreateObj($oIE, 10, 40, 600, 360) $idButton_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) $idButton_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) $idButton_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) $idButton_Stop = GUICtrlCreateButton("Stop", 330, 420, 100, 30) GUISetState(@SW_SHOW) ;Show GUI After this.. This is the window that pop's-up: