6 posts in this topic
Local $oPlayer, $gVideo, $width, $height
$oPlayer = ObjCreate("WMPlayer.OCX.7")
$oPlayer.URL = 'http://www.clubbalcony.com/upload/culture/yong(2).wmv'
Local $srcFound = True
Local $time1 = TimerInit()
If $oPlayer.playState() = 3 Then
$width = $oPlayer.currentMedia.imageSourceWidth
$height = $oPlayer.currentMedia.imageSourceHeight
If TimerDiff($time1) > 5000 Then
$srcFound = False
If Not $srcFound Or $width = 0 Then
$gVideo = GUICreate("Video Control", $width, $height+63, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX), $WS_EX_TOPMOST)
GUICtrlCreateObj($oPlayer, 0, 0, $width, $height+63)
$oPlayer.uiMode = "Full"
$oPlayer.stretchToFit = True
$Msg = GUIGetMsg(1)
;This is where I want to resize the video image to fit the new window size
How should I code the $GUI_EVENT_RESIZED portion to resize the video to fit the resized window? Your help will be greatly appreciated.
Internet Explorer 11, AutoIt 220.127.116.11
I want to download many files which are published with hyperlink on a web page. I use AutoIt and when there is a few files, it works even if It's on a website with secured links.
I have a script to download link items with the object method (I gave a partial sample), but when the number of link exceed the web page, there is not an auto scroll, then the links which are not on displayed without scroll are not downloaded.
Let's say a script has to do something that may or may not shift the page a fair bit in a general DTP program, browser, ...
In other words, the scrollbar was moved.
(1) Can the original scrollbar position be saved and restored?
I can think of a rough workaround or two, but I mean, more precisely...?
(2) If so, is it for example a different control for every program?
(3) Let's say for a workaround you might use the help of ...
MouseWheel ( "direction" [, clicks = 1] ) Is there an absolute relationship of clicks to pixels?
Or does the amount of scroll from these 'clicks' depend on how much movement was defined for the scroll wheel in Windows or Mouse driver software?
I want to write a tool to resize usually unresizable windows (like the file properties window of Windows Explorer for example).
Although I have already managed to set the window border style to resizable, this of course doesn´t add the resizing feature itself. So, how do I hook on this to perform the resizing of window and controls myself? I think of some kind of event handler but have no idea how start. Can you help me with this?
I am interested in using scrolling groups for a dropdown box listing. I add the $WS_VSCROLL and it shows the group scroll control but never actually activates and the information goes past the group.
any suggestions or workarounds?
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Group1 = GUICtrlCreateGroup("Group1", 184, 120, 305, 209, BitOR($GUI_SS_DEFAULT_GROUP,$WS_VSCROLL))
For $i = 0 To 20 Step 1
$drop = (20* $i)
$Label2 = GUICtrlCreateLabel($i, 200, 140 + $drop, 28, 31)
GUICtrlCreateCombo("module", 220, 140 + $drop, 121, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
#EndRegion ### END Koda GUI section ###
$nMsg = GUIGetMsg()