FaridAgl Posted August 21, 2011 Share Posted August 21, 2011 guys i know there are some topics about reading tooltips, i read them but i could not find what i'm serching for. it's a control: when i move my mouse on it this will appear: It's my control's summary: >>>> Window <<<< Title: Garena Class: SkinWindow Position: 0, 0 Size: 1360, 738 Style: 0x970B0000 ExStyle: 0x00000000 Handle: 0x00060530 >>>> Control <<<< Class: msctls_progress32 Instance: 1 ClassnameNN: msctls_progress321 Name: Advanced (Class): [CLASS:msctls_progress32; INSTANCE:1] ID: 1132 Text: Position: 1117, 157 Size: 103, 22 ControlClick Coords: 41, 5 Style: 0x50000001 ExStyle: 0x00020004 Handle: 0x00050514 >>>> Mouse <<<< Position: 1158, 162 Cursor ID: 0 Color: 0xCF1B00 i want to read without moving my mouse on control, or even read . can anyone help me? http://faridaghili.ir Link to comment Share on other sites More sharing options...
FaridAgl Posted August 21, 2011 Author Share Posted August 21, 2011 26 view and 0 reply, really it's impossible ? http://faridaghili.ir Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 21, 2011 Moderators Share Posted August 21, 2011 D4RKON3, Please do not bump your posts within 24 hours. Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. Be patient and someone will answer eventually. 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...
Moderators SmOke_N Posted August 21, 2011 Moderators Share Posted August 21, 2011 I second the bumping. As far as the tooltip, it's probably not created until the mouse if over it. So yes, it's improbable. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
FaridAgl Posted August 21, 2011 Author Share Posted August 21, 2011 the problem is here that i move my mouse over it and still can't read. i just set a hotkey, then move mouse over it and press the hotkey that suppose to read that tooltip. any idea? brw tnx for reply. http://faridaghili.ir Link to comment Share on other sites More sharing options...
aNewLyfe Posted August 21, 2011 Share Posted August 21, 2011 U could try Control() commands, it may success maybe that tooltip is a hidden window Or if its a game reading the value from its memory is your second option ~ Every Living Thing is a Code Snippet of World Application ~ Link to comment Share on other sites More sharing options...
funkey Posted August 22, 2011 Share Posted August 22, 2011 Maybe this works: Global $hControlHandle = ControlGetHandle("Garena", "", "msctls_progress321") MsgBox(0, "", "Percent: " & _Progress_GetPos($hControlHandle)) Func _Progress_GetPos($hWnd) Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0) Return Number(StringReplace($ret[0], ",", ".")) EndFunc ;==>_Progress_GetPos Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
FaridAgl Posted August 22, 2011 Author Share Posted August 22, 2011 Maybe this works: Global $hControlHandle = ControlGetHandle("Garena", "", "msctls_progress321") MsgBox(0, "", "Percent: " & _Progress_GetPos($hControlHandle)) Func _Progress_GetPos($hWnd) Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0) Return Number(StringReplace($ret[0], ",", ".")) EndFunc ;==>_Progress_GetPos Just return 1200% when it's actually 66% ! I don't know why. http://faridaghili.ir Link to comment Share on other sites More sharing options...
FaridAgl Posted August 22, 2011 Author Share Posted August 22, 2011 U could try Control() commands, it may success maybe that tooltip is a hidden windowOr if its a game reading the value from its memory is your second optioni tried it with CE but nothing found. http://faridaghili.ir Link to comment Share on other sites More sharing options...
funkey Posted August 22, 2011 Share Posted August 22, 2011 You have to scale the value. Look what value has 100% and then you know what value stands for maybe 66%. I think 100% is 1816 or 18160, like the tooltip says. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
FaridAgl Posted August 22, 2011 Author Share Posted August 22, 2011 i really can't understand tooltop is : 12301/18160 and your code is : 1230 i just confused and can't figure out. http://faridaghili.ir 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