WoodGrain Posted May 25, 2016 Share Posted May 25, 2016 Hi All, I'm running the following, but the width and height are wrong, am I doing something wrong? $xy = WinGetPos($myTitle, "") $posX = $xy[0] $posY = $xy[1] $sizeW = $xy[2] $sizeH = $xy[3] Window Info program is returning w:301 x h:1017 which is correct. WinGetPos() is returning w:92 x h:18, which is completely wrong. This problem is only happening on 1 program, WinGetPos() is returning correct information for the other programs... Any thoughts? Thanks! Link to comment Share on other sites More sharing options...
AutoBert Posted May 26, 2016 Share Posted May 26, 2016 22 hours ago, WoodGrain said: This problem is only happening on 1 program, WinGetPos() is returning correct information for the other programs... and what's the name of this special progrgram? Are you sure you are getting results for the correct window? Link to comment Share on other sites More sharing options...
WoodGrain Posted May 26, 2016 Author Share Posted May 26, 2016 Hi, I'm using $myTitle = "UC-One" It's a soft phone, I'm 100% sure I'm referencing the correct program, I've used the Window Info tool to get the title. Thanks. Link to comment Share on other sites More sharing options...
AutoBert Posted May 26, 2016 Share Posted May 26, 2016 And you are sure there's only one window with this title? Test with Winlist if there's another (hidden?) window. Link to comment Share on other sites More sharing options...
WoodGrain Posted May 27, 2016 Author Share Posted May 27, 2016 Hi, I've confirmed with WinList() that this is the only window with this title. Thanks. Link to comment Share on other sites More sharing options...
waiwei Posted May 27, 2016 Share Posted May 27, 2016 (edited) <snip> similar problem. Edited May 28, 2016 by Melba23 Not at all similar Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 28, 2016 Moderators Share Posted May 28, 2016 waiwei, Your problem is NOT similar. Please do not hijack other threads when you already have one running. 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...
WoodGrain Posted June 7, 2016 Author Share Posted June 7, 2016 Any other ideas what could be causing this problem with AutoIT's WinGetPos()? Link to comment Share on other sites More sharing options...
LarsJ Posted June 7, 2016 Share Posted June 7, 2016 Have you tried to replace $myTitle in WinGetPos with the window handle as shown by the AutoIt Window Info tool? Or have you tried to check which handle is returned by WinGetHandle( $myTitle, "" )? Does this handle match the handle as shown by the AutoIt Window Info tool? The problem is probably that this UC-One soft phone is not created with standard MicroSoft windows/controls. It can be made with any development tool for example Java. This means that many of the Win-functions are not able to produce the proper results. You can try to examine the UC-One application with the "Simple spy tool" in the UI Automation framework or with Inspect.exe from Windows SDK. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Bert Posted June 7, 2016 Share Posted June 7, 2016 did you look at Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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