YozY Posted September 20, 2006 Posted September 20, 2006 (edited) Could you tell me what kind of error you're running into? I still use my udf without any problems.it's this wmp11 example above that isn't workingwhat is strange is that it doesn't change the image while hovering, but when you move outside the image (HoverLost) it does change the image *EDIT*Nevermind, i think i did something wrong, it works now Edited September 20, 2006 by YozY
marfdaman Posted September 21, 2006 Author Posted September 21, 2006 Nevermind, i think i did something wrong, it works nowGlad it does Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Valuater Posted April 6, 2007 Posted April 6, 2007 Hmmmm,Have you seen _ControlHover()??http://www.autoitscript.com/forum/index.ph...st&p=240145Have you seen _ButtonHover()http://www.autoitscript.com/forum/index.ph...st&p=2884288)
CFire Posted April 9, 2007 Posted April 9, 2007 This udf is really cool ... it works very well. just wanted to say thanx! [u]Scripts and UDF's[/u]WMMedia - UDF full of functions to Control Media Output.
Shevilie Posted May 14, 2007 Posted May 14, 2007 Trolling for UDF list Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
JackDinn Posted March 15, 2009 Posted March 15, 2009 i know this is most probably me but i just cant get to check for a button being held down #include <WindowsConstants.au3> #include <pressdetection.au3> $rr=GUICreate("My GUI",-1,-1,-1,-1,$ws_sizebox) $tt=GUICtrlCreateButton("",0,0,100,100) $ttx=GUICtrlCreateButton("",100,0,100,100) GUISetState() While 1 ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : _PressDetectAddCtrl($tt) = ' & _PressDetectAddCtrl($tt) & @crlf & '>Error code: ' & @error & @crlf);### Debug Console sleep(200) WEnd iv tried Pressdetect() but it just seems to be the same as _isPressed("01") ie no ctrl return iv tried PressDetectAddCtrl($tt) but it just returns 0 all i want to do i find if a button is being held down and if it is what its ctrlID is, dont know why it's taken me some hours to get this far would have thought there would be a simple command but i cant find it. anyhow any help would be most appreciated , thx all Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D
JackDinn Posted March 15, 2009 Posted March 15, 2009 nm, i sused it. GUIGetCursorInfo $array[4] = ID of the control that the mouse cursor is hovering over (or 0 if none) Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D
johnas Posted April 2, 2009 Posted April 2, 2009 I'm using the example from marfdaman but if i click outside the GUI the program exits. The is any solution to avoid that ? Thanks in advance. Johnas
luxactor Posted May 18, 2009 Posted May 18, 2009 I'm using the example from marfdaman to and can't click outside the window, couse the programm/script exits by itself.
diferent Posted July 7, 2009 Posted July 7, 2009 I'm using the example from marfdaman to and can't click outside the window, couse the programm/script exits by itself.Change the function _HoverCheck(). This solve the lost focus exit problem in my script. marfdaman is alive? I can post my example script here? Func _HoverCheck() $HoverData = GUIGetCursorInfo() If Not IsArray($HoverData) Then;Exit;removed Sleep(500);added Else; added $Temp_Found = 0 For $i = 1 To UBound($HoverArray)-1 If $HoverData[4] = $HoverArray[$i] Then $Temp_Found = $i EndIf Next Select Case $Temp_Found = 0 And $HoverActive = 1 Or $Temp_Found <> 0 And $Temp_Found <> $Global_I And $HoverActive = 1 $HoverActive = 0 $Temp_Found = 0 $szTemp_Array[0] = "LostHover" $szTemp_Array[1] = $HoverArray[$Global_I] Return $szTemp_Array Case $Temp_Found > 0 And $HoverActive = 0 $Global_I = $Temp_Found $HoverActive = 1 $Temp_Found = 0 $szTemp_Array[0] = "AcquiredHover" $szTemp_Array[1] = $HoverArray[$Global_I] Return $szTemp_Array EndSelect EndFunc
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