Jump to content

Salo

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Salo's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Yes, I originally wrote game because I thought it would require less to explain than saying I wanted it for a media player. People ask so many questions for something so simple. Either way, I don't care if you believe that it's really for a game or really for a media player. I have no reputation to protect, and I don't need anything now.
  2. So what's the worst my "lying" code is for? hacking the nsa? Just nevermind, I already got someone to help me with a simple formula. Too much effort to get help from this forum.
  3. I already told you what apps I wanted it for, media players. I already told you those UDFs don't help. They do not provide a universal solution to my issue.
  4. I don't think this is going to help me. I want the formula I explained to work as intended. And I don't need controls, as I already said before. I need to compare a wide variety of players across various systems, and I am using the formula to coordinate exact pixel locations so I can use pixelscans. I would like to compare the visual quality of compressions and different versions of videos and things of that nature. I would also like to use the same formula for hopefully other applications in the future. All I need is the formula refined. Can you do it or not?
  5. It doesn't really matter what program. Any program that has a fixed aspect ratio inside a re-sizable window. I wanted it to work for something like a media player originally but I want it to be versatile for other applications as well, so I don't want to use controlclick.
  6. I am trying to make a simple click function. The client is resizable(though often widescreen), while the actual clickable area is fullscreen(4:3). I want to make mouseclicks able to be done in %, but I can't figure out a formula to allow the window to be any size while still being able to achieve successful clicks in the locations I need I currently have something like this $Title = WinGetHandle("Untitled") Dim $Size = WinGetClientSize($Title) Dim $Pos = WinGetPos($Title) $Pos[1] = $Pos[1] + 25 Dim $Offset = ($Size[0] - (($Size[1]-25)*(4/3)))/2 $Size[0] = $Size[0]-($Offset*2) MsgBox(1,"asd",$Offset & " || " & $Size[0] & " || " & $Size[1] & " || " & $Pos[0] & " || " & $Pos[1]) MouseClick("Left", $Pos[0]+$Offset+(0.70*$Size[0]), $Pos[1]+(0.17*$Size[1])) Offset being the empty white bar you'd get on each side, I attempted to add the offset to the relative X position of the window, to get the start of the playable area for horizontal. Relative Y position, +25 for titlebar, for Y. The code I have here is pretty close but it doesn't quite do it. It ends up being a dozen pixels off or so when i start stretching it a good chunk. I need it to be pretty precise(not necessarily perfect) as I want to use some pixelsearch and whatnot as well, but a couple dozen pixels is too much. The border window of the window is causing some issues in the formula, but I don't want to remove it if possible. I would like help in refining or remaking this formula to function more accurately.
  7. Cool, I didn't know it had a built in delay, so that's what was actually breaking stuff then. And it was obvious to me, which was why I was trying to figure out how to simplify it.
  8. Regardless what it was, I'll keep that in mind for future scripting- GetGuiMsg is not good to use in this fashion. Thanks for all your help guys.
  9. So lots of guigetmsg is likely what is breaking stuff?
  10. Oh man, that works and looks way better. Thanks for the simplify and thanks for the improvements. But what does it matter where the OK button is? Why is your method better? I mean I know it's better, because before, the OK button would kind of stick, you'd need to press it a few times to make it go. Your code fixed that also. But why? So from (counting variable)0 to max of ac(-1), and "next" acts as a +1. Right?
  11. I have this code I wrote and I was trying to figure out how to collapse/simplify it. I have 9(plan to add more, too) of these exact duplicate if/elseif blocks of code, other than the $ac00, 01, 10, 11, etc.  If $sName = $ac[0][0] Then          $CD = $ac[0][1]          Switch GUIGetMsg()          Case $iOKButton             While 1 *snip*             WEnd          EndSwitch       ElseIf $sName = $ac[1][0] Then          $CD = $ac[1][1]          Switch GUIGetMsg()          Case $iOKButton             While 1 *snip*             WEnd          EndSwitch       ElseIf $sName = $ac[2][0] Then          $CD = $ac[2][1]          Switch GUIGetMsg()          Case $iOKButton *snip*          EndSwitch
×
×
  • Create New...