
iLoveAU3
Active Members-
Posts
35 -
Joined
-
Last visited
Everything posted by iLoveAU3
-
oh right! this is great. love you man
-
how to replace background color on youtube? this code does not work and make mozRepl return some error $socket = _FFConnect() $sHTML = _FFReadHTML() $sHTML = StringReplace($sHTML, 'id="BaseDiv"', 'bgcolor="#000000" id="BaseDiv"') If Not @error Then _FFWriteHTML($sHTML) __FFSend: try{content.document.body.innerHTML=' <div bgcolor="#000000" id="BaseDiv" class="date-20090519 video-info"> <div id="masthead"> <div id="masthead-inner"> <a href="/" onmousedown="urchinTracker('/Events/Header_3/YouTubeLogo');" id="logo"><button onclick="window.location.href='/'; return false;" class="master-sprite" title=""></button></a> <div id="region-and-language-picker-links-wrapper"> <button id="slogan" class="master-sprite" title=""></button> <span class="util-item first with-flag"><a href="#" class="region-picker-link hLink" onclick="loadFlagImgs('region-picker-box'); return false;" onmousedown="urchinTracker('/Events/Header/UtilLinks/I18n/text');">Poland</a></span> <span class="util-item"><a href="#" class="language-picker-link hLink" onclick="loadFlagImgs('language-picker-box'); return false;" onmousedown="urchinTracker('/Events/Header/UtilLinks/I18n/text');">English</a></span> </div> <div class="user-info"> <div id="util-links" class="normal-utility-links"> <span class="util-item first"><b><a class="hLink" href="/signup?next=/watch}catch(e){'_FFCmd_Err';}; __FFSend:; __FFRecv:line with the code where an error occurs should go like this <span class="util-item first"><b><a class="hLink" href="/signup?next=/watch%3Fv%3DRyVcic7cZgA%26feature%3DPlayList%26p%3D120F15989C14A1B7%26index%3D4%26playnext%3D5%26playnext_from%3DPL" onmousedown="urchinTracker('/Events/Header/UtilLinks/SignUp');"> regards
-
Screen resolution / desktop size
iLoveAU3 replied to iLoveAU3's topic in AutoIt General Help and Support
that's right Volly. this is 2nd day I am looking for a way to force change desktop size with no results lol. -
Screen resolution / desktop size
iLoveAU3 replied to iLoveAU3's topic in AutoIt General Help and Support
some time ago, when I had no screen drivers intalled on my computer i could set screen resolution way beyond 1440x900. in result I had much wider desktop on 1440x900 screen resolution. I've tried to uninstall drivers but it does not work anymore. the reason why I want to make it works are PixelGetColor / PixelChecksum restrictions. They simply does not work if app window is beyond the screen so my idea is to enlarge desktop, make it twice wider, then work on one side and keep app window on hiden side WinMove("[CLASS:Progman]", "", 0, 0, 2880, 900, 0) this does not work as well -
is there any way to change desktop size and keep screen resolution at the same time? need to make my desktop width twice bigger. thanks in advance
-
problem solved. thanks!
-
RunWait("powercfg.exe " & '/change "home/office desk" /monitor-timeout-ac 5', "", "") if you want to put some parameters in command line make sure there is a space between file path and parameters. use '' instead of "" if needed.
-
lets say i want to do a function to tell current state. i would like to enum states like this: 0x01 - idle 0x02 - collect 0x04 - defend 0x08 - attack and so on... my desire is to return combined states for example: 0x02 + 0x04 -> collect & defend 0x02 + 0x08 -> collect & attack 0x04 + 0x08 -> attack & defend my question is how to define states and get those combined states in one elegant way? thanks in advance
-
that is right, it works fine except for yt page. of course, feel free to use this code
-
Preserving default values: newb question
iLoveAU3 replied to OiMunk's topic in AutoIt General Help and Support
WinMove("Media Explorer", "", Default, Default, Default, 700) -
Hey Stilgar, do you know why "loadVideoById" / "cueVideoById" does not work properly directly on YT? movie player always return "We're sorry, this video is no longer available", playerState=3 and then I can't even get videoId. this is part of code i have added for those functions. Case "loadVideoById" $vArg1 = String($vArg1) $vArg2 = Number($vArg2) If $vArg2 = Default Or $vArg2 = "" Then $vArg2 = 0 If IsString($vArg1) And IsNumber($vArg2) Then $sCommand = "loadVideoById('" & $vArg1 & "'," & $vArg2 &")" EndIf Case "cueVideoById" $vArg1 = String($vArg1) $vArg2 = Number($vArg2) If $vArg2 = Default Or $vArg2 = "" Then $vArg2 = 0 If IsString($vArg1) And IsNumber($vArg2) Then $sCommand = 'cueVideoById("' & $vArg1 & '",' & $vArg2 &")" EndIf nice work anyway!
-
no i have not hehe. everything works fine now. thanks man!
-
I've downloaded new version just second ago but result is the same. _FFConnect: OS: WIN_XP WIN32_NT 2600 Dodatek Service Pack 3 _FFConnect: AutoIt: 3.3.0.0 _FFConnect: FF.au3: 0.4.0.6b-4 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect: Socket: 1744 __FFSend: navigator.userAgent __FFRecv: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 _FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 __FFSend: FF_AutoItScript.SearchLink("text","Nast","top") __FFRecv: 53 __FFSend: FF_AutoItScript.SimulateClick(content.frames["top"].document.links[53],0,0) __FFRecv: __FFWaitForRepl ==> MozRepl Exception: !!! TypeError: FF_AutoItScript.SimulateClick is not a function
-
thanks for response Stilgar but have you tested your script? somehow doesn't work for me. both image nad link had been found but there's an error - 'TypeError: FF_AutoItScript.SimulateClick is not a function' here is log from my console: _FFConnect: OS: WIN_XP WIN32_NT 2600 Dodatek Service Pack 3 _FFConnect: AutoIt: 3.3.0.0 _FFConnect: FF.au3: 0.4.0.6b-3 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect: Socket: 1744 __FFSend: navigator.userAgent __FFRecv: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 _FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 __FFSend: FF_AutoItScript.SimulateClick(content.frames["top"].document.images[1],0,0) __FFRecv: __FFWaitForRepl ==> MozRepl Exception: !!! TypeError: FF_AutoItScript.SimulateClick is not a function _FFClickImage ==> No match: 1 __FFSend: FF_AutoItScript.SearchLink("text","Nast","top") __FFRecv: 59 __FFSend: FF_AutoItScript.SimulateClick(content.frames["top"].document.links[59],0,0) __FFRecv: __FFWaitForRepl ==> MozRepl Exception: !!! TypeError: FF_AutoItScript.SimulateClick is not a function
-
is there any way how to automate www.images.google.com navigation? seems like if '_FFClick' doesn't work for www.images.google.com links. Can you guys check if it is possible to do click on 'PREVIOUS' / 'NEXT' on search results?
-
that's really strange to me. i see the same strange results by clicking LMB on right button (control with style). Right Button control is getting messages from mouse clicks twice longer than control with no style. lol. interesting is everything works fine and fast if you use ENTER key instead of Left Mouse Button to hit control. check this code #include <GuiConstants.au3> #include <Misc.au3> Global $tLeft, $tRight, $check, $key, $sMsg $Main_GUI = GuiCreate("", 160, 80) $Button_Left = GUICtrlCreateButton("<", 20, 20) $Label = GUICtrlCreateLabel("", 60, 25, 20, 20) $Button_Right = GUICtrlCreateButton(">", 100, 20) GuiCtrlSetColor(-1, 0x0000FF); blue GUISetState() ;--------------------------------------------------------------------------------------------------------------------------- $x = 1 While 1 If _IsPressed('01') Then $check = TimerInit() $key = 'Mouse LMB: ' EndIf If _IsPressed('0D') Then $check = TimerInit() $key = 'ENTER key: ' EndIf $msg = GUIGetMsg() Switch $msg Case $Button_Left $sMsg &= $key &Round(TimerDiff($check),3) $sMsg &= @CRLF &"Last click: " &Round(TimerDiff($tLeft),3) $x -= 1 GUICtrlSetData($label, $x) ToolTip($sMsg, 0, 0, 'Button Left') $sMsg = "" $tLeft = TimerInit() Case $Button_Right $sMsg &= $key &Round(TimerDiff($check),3) $sMsg &= @CRLF & "Last click: " &Round(TimerDiff($tRight),3) $x += 1 GUICtrlSetData($label, $x) ToolTip($sMsg, 0, 0, 'Button Right') $sMsg = "" $tRight = TimerInit() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch Wend Exit
-
ups, no. it was not really what i've been looking for. however, i've made my own one based on that source code Global $iTime = 0 AdlibEnable('_Exit', 30000) MsgBox(0x40, 'Mouse idle', 'Move mouse or leave it for 8 seconds ;)', 2) While 1 _MouseIdle(8, '_Beep') Wend Func _MouseIdle($vIdleTime, $sFunc, $vParam="") $lastpos = MouseGetPos() Sleep(1000) $currentpos = MouseGetPos() If $lastpos[0]=$currentpos[0] AND $lastpos[1]=$currentpos[1] Then $tStill = TimerInit() While $currentpos[0]=$lastpos[0] AND $currentpos[1]=$lastpos[1] If $iTime = $vIdleTime Then If $vParam="" Then Call($sFunc) Exit Else Call($sFunc, $vParam) Exit EndIf EndIf If TimerDiff($tStill) > 1000 Then $currentpos = MouseGetPos() $tStill = TimerInit() $iTime += 1 TrayTip('Mouse idle', $iTime, 1) EndIf WEnd TrayTip('Mouse idle', 'Mouse moved!', 1) $iTime = 0 EndFunc Func _Beep() Beep(2000,100) EndFunc Func _Exit() Exit EndFunc
-
my question goes same as topic description says. thanks in advance
-
This is simple function I have made. Maybe some of you will find it useful Example code ; #EXAMPLE# =================================================================== #include <_HotKeysSet.au3> Global $aInfoArgs[3] = [ "CallArgArray", 'First parameter', 'Second parameter' ] TrayTip('Example:', 'type "time" / "info" / "exit"', 1) While 1 _HotKeysSet('exit', '_Exit', "", 300) _HotKeysSet('time', '_Time', @HOUR &":" &@MIN) _HotKeysSet('info', '_Info', $aInfoArgs) Sleep(100) WEnd Func _Exit() Exit EndFunc Func _Time($vParam) MsgBox(0,'_Time', $vParam, 1) EndFunc Func _Info($lParam, $wParam) MsgBox(0, $lParam, $wParam, 1) EndFunc ; ==============================================================================oÝ÷ Øz-)ì¬Ië¡×ºÚ"µÍÚ[ÛYH ÓZØË]LÉÝÂÈÑSÕSÓÈOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOBÈ[YHÒÝÙ^ÔÙ]ÈØÜ[ÛÙ]ÛÛXÈÙÝÙ^ÂÈ]]Ò]Ú[ÛËËÈÞ[^ÒÝÙ^ÔÙ] ÌÍÜÒÙ^Ë ÌÍÜÑ[ÈË ÌÍÝÜÏI][ÝÉ][ÝÖË ÌÍÚQ[^OLÌWJBÈ[Y]ÊN ÌÍÜÒÙ^ÈHÙ^ÈÜÛÛXÂÈ ÌÍÜÑ[ÈH[Ý[ÛÈØ[È ÌÍÝÜÈHÜ[Û[ Y][H ][ÝÉ][ÝÊH[Ý[Û[Y]ÊBÈY^HÙ[Y]ÈÈÙY[ ÌÍÝÜÖÌHÈ]ÝH ][ÝÐØ[Ð^I][ÝÈ ÙYH[[HÜØ[ BÈ ÌÍÚQ[^HHÜ[Û[ Y][HÌ H[^BÈ]]ÜÊHYÛÜZÜ]ÜÚÚBÈOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOB[ÈÒÝÙ^ÔÙ] ÌÍÜÒÙ^Ë ÌÍÜÑ[Ë ÌÍØPÜÏI][ÝÉ][ÝË ÌÍÝ[^OLÌ BØØ[ ÌÍÝÝÙ^ÂØØ[ ÌÍØRÙ^PÛÙÖÍVÌHHVÈÂBBBBBBVÉ][ÝÌÌ ][ÝË ][ÝÌ ][Ý×KÂBBBBBBVÉ][ÝÌÌI][ÝË ][ÝÌI][Ý×KÂBBBBBBVÉ][ÝÌÌ][ÝË ][ÝÌ][Ý×KÂBBBBBBVÉ][ÝÌÌÉ][ÝË ][ÝÌÉ][Ý×KÂBBBBBBVÉ][ÝÌÍ ][ÝË ][ÝÍ ][Ý×KÂBBBBBBVÉ][ÝÌÍI][ÝË ][ÝÍI][Ý×KÂBBBBBBVÉ][ÝÌÍ][ÝË ][ÝÍ][Ý×KÂBBBBBBVÉ][ÝÌÍÉ][ÝË ][ÝÍÉ][Ý×KÂBBBBBBVÉ][ÝÌÎ ][ÝË ][ÝÎ ][Ý×KÂBBBBBBVÉ][ÝÌÎI][ÝË ][ÝÎI][Ý×KÂBBBBBBVÉ][ÝÍI][ÝË ][ÝÐI][Ý×KÂBBBBBBVÉ][ÝÍ][ÝË ][ÝÐ][Ý×KÂBBBBBBVÉ][ÝÍÉ][ÝË ][ÝÐÉ][Ý×KÂBBBBBBVÉ][ÝÍ ][ÝË ][ÝÑ ][Ý×KÂBBBBBBVÉ][ÝÍ I][ÝË ][ÝÑI][Ý×KÂBBBBBBVÉ][ÝÍ ][ÝË ][ÝÑ][Ý×KÂBBBBBBVÉ][ÝÍ É][ÝË ][ÝÑÉ][Ý×KÂBBBBBBVÉ][ÝÍ ][ÝË ][ÝÒ ][Ý×KÂBBBBBBVÉ][ÝÍI][ÝË ][ÝÒI][Ý×KÂBBBBBBVÉ][ÝÍI][ÝË ][ÝÒ][Ý×KÂBBBBBBVÉ][ÝÍ][ÝË ][ÝÒÉ][Ý×KÂBBBBBBVÉ][ÝÍÉ][ÝË ][ÝÓ ][Ý×KÂBBBBBBVÉ][ÝÍ ][ÝË ][ÝÓI][Ý×KÂBBBBBBVÉ][ÝÍI][ÝË ][ÝÓ][Ý×KÂBBBBBBVÉ][ÝÍ][ÝË ][ÝÓÉ][Ý×KÂBBBBBBVÉ][ÝÍL ][ÝË ][ÝÔ ][Ý×KÂBBBBBBVÉ][ÝÍLI][ÝË ][ÝÔI][Ý×KÂBBBBBBVÉ][ÝÍL][ÝË ][ÝÔ][Ý×KÂBBBBBBVÉ][ÝÍLÉ][ÝË ][ÝÔÉ][Ý×KÂBBBBBBVÉ][ÝÍM ][ÝË ][ÝÕ ][Ý×KÂBBBBBBVÉ][ÝÍMI][ÝË ][ÝÕI][Ý×KÂBBBBBBVÉ][ÝÍM][ÝË ][ÝÕ][Ý×KÂBBBBBBVÉ][ÝÍMÉ][ÝË ][ÝÕÉ][Ý×KÂBBBBBBVÉ][ÝÍN ][ÝË ][ÝÖ ][Ý×KÂBBBBBBVÉ][ÝÍNI][ÝË ][ÝÖI][Ý×KÂBBBBBBVÉ][ÝÍPI][ÝË ][ÝÖ][Ý×KÂBBBBBBVÉ][ÝÌI][ÝË ][ÝÊ ][Ý×KÈÈQSÕTÑHUÓBBBBBBVÉ][ÝÌ][ÝË ][ÝÊI][Ý×KÈÈQÒSÕTÑHUÓBBBBBBVÉ][ÝÌ ][ÝË ][ÝÊ][Ý×KÈÈRQHSÕTÑHUÓBBBBBBVÉ][ÝÌL ][ÝË ][ÝÊÉ][Ý×KÈÈÒQÑVBBBBBBBVÉ][ÝÌLI][ÝË ][Ý×][Ý×KÈÈÓÓÓÑVBBBBBBBVÉ][ÝÌL][ÝË ][ÝÉÌÌÎÉ][Ý×HHÈSÑVBIÌÍØRÙ^ÈHÝ[ÔÜ] ÌÍÜÒÙ^Ë ][ÝÉ][ÝËBQÜ ÌÍÚÙ^ÏLÈPÝ[ ÌÍØRÙ^ÊKLBBQÜ ÌÍØÛÙÏLÈPÝ[ ÌÍØRÙ^PÛÙÊKLBBBRY ÌÍØRÙ^ÖÉÌÍÚÙ^×OIÌÍØRÙ^PÛÙÖÉÌÍØÛÙ×VÌWH[ ÌÍØRÙ^ÖÉÌÍÚÙ^×OIÌÍØRÙ^PÛÙÖÉÌÍØÛÙ×VÌBBS^S^BRYÒÔÜÙY ÌÍØRÙ^ÖÌJH[BIÌÍÝÝÙ^ÈH[Y[] BBIÌÍÚHHBBUÚ[H[YY ÌÍÝÝÙ^ÊH È ÌÍÝ[^BBRY ÌÍÚH ÈPÝ[ ÌÍØRÙ^ÊKLJHS ÒÔÜÙY ÌÍØRÙ^ÖÉÌÍÚWJJJH[BBRY ÌÍØRÙ^ÖÉÌÍÚWHOH ÌÍØRÙ^ÖÉÌÍÚKLWH[ÛY L BBBIÌÍÝÝÙ^ÈH[Y[] BBBIÌÍÚH ÏHBBQ[ÙRY ÌÍÚHHPÝ[ ÌÍØRÙ^ÊKLJHS ÒÔÜÙY ÌÍØRÙ^ÖÉÌÍÚWJJJH[BBRY ÌÍØRÙ^ÖÉÌÍÚWHOH ÌÍØRÙ^ÖÉÌÍÚKLWH[ÛY L BBBRY ÌÍØPÜÏI][ÝÉ][ÝÈ[BBBPØ[ ÌÍÜÑ[ÊBBBBT]BBBQ[ÙBBBBPØ[ ÌÍÜÑ[Ë ÌÍØPÜÊBBBBT]BBBQ[YBBIÌÍÚOLBQ[YUÑ[[Y[[_HotKeysSet.au3
-
C:\INCLUDE\test.au3(15,51) : WARNING: $g_wndDescription: possibly used before declaration. $tbHandle = controlgethandle($g_wndDescription, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\INCLUDE\test.au3(15,51) : ERROR: $g_wndDescription: undeclared global variable. $tbHandle = controlgethandle($g_wndDescription, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\INCLUDE\test.au3(16,62) : ERROR: _GUICtrlToolbar_GetButtonRect(): undefined function. $aRect = _GUICtrlToolbar_GetButtonRect ($tbHandle, $cmdID) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\INCLUDE\test.au3 - 2 error(s), 1 warning(s) !>08:03:26 AU3Check ended.rc:2 +>08:03:27 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.468 source code is missing
-
What's wrong with this code?
iLoveAU3 replied to iLoveAU3's topic in AutoIt General Help and Support
yes, this script is running directly from editor. suprising, compiled script does not behave this way -
$hWnd = WinGetTitle('[active]') WinMenuSelectItem($hWnd, '', '&Tools', 'User CallTip Entries') WinMenuSelectItem($hWnd, '', '&Search', '&Go To')oÝ÷ Ú·¬º[ZºÚ"µÍÝÐÎÌLÔÙÜ[H[ÉÌLÐ]]Ò]ÉÌLÔØÚUIÌLÜØÚ]K^H ][ÝÐÎÌLÔÙÜ[H[ÉÌLÐ]]Ò]ÉÌLÔØÚUIÌLØIÌLØ]LËÙØ[ËI][ÝÂÉÝÌMÎ]]Ò]ÕÜ[ÚYÝÑ^]ÛÙN[YNKL ÉÝÌMÎ]]ÒUË^H[YÎÝÑ^]ÛÙN[YNÍÍBÉÝÌMÎ]]Ò]ÕÜ[ÚYÝÑ^]ÛÙN[YNKLLÉÝÌMÎ]]Ò]ÕÜ[ÚYÝÑ^]ÛÙN[YNKBÉÝÌMÎÈ]]Ò]ÕÜ[ÚYÝÑ^]ÛÙN[YN Í lol?!
-
I have ment something else Send ( "keys" [, flag] )Sends simulated keystrokes to the active window. Send ( "keys" [, flag] )! # ^ { } + alt altdown altup appskey asc backspace break browser_back browser_favorites browser_forward browser_home Send ( "keys" [, flag] )browser_refresh browser_stop bs capslock ctrldown ctrlup del delete down end enter esc escape f1 f10 f11 f12 f2 f3 f4 f5 f6 f7 f8 Send ( "keys" [, flag] )home ins insert lalt launch_app1 launch_app2 launch_mail launch_media lctrl left lshift lwin lwindown lwinup media_next media_play_pause Send ( "keys" [, flag] )media_stop numlock numpad0 numpad1 numpad2 numpad3 numpad4 numpad5 numpad6 numpad7 numpad8 numpad9 numpadadd numpaddiv Send ( "keys" [, flag] )numpadenter numpadmult numpadsub pause pgdn pgup printscreen ralt rctrl right rshift rwin rwindown rwinup scrolllock shiftdown Send ( "keys" [, flag] )sleep space tab up volume_down volume_mute volume_up did the trick for me
-
How to get all controls in a window
iLoveAU3 replied to riki381's topic in AutoIt General Help and Support
#include "Array.au3" Opt("WinTitleMatchMode", 4) $aArray = _WinGetControls('[class:Shell_TrayWnd]') _ArrayDisplay($aArray) Func _WinGetControls($Title, $Text="") Local $WndControls, $aControls, $sLast="", $n=1 $WndControls = WinGetClassList($Title, $Text) $aControls = StringSplit($WndControls, @CRLF) Dim $aResult[$aControls[0]+1][2] For $i = 1 To $aControls[0] If $aControls[$i] <> "" Then If $sLast = $aControls[$i] Then $n+=1 Else $n=1 EndIf $aControls[$i] &= $n $sLast = StringTrimRight($aControls[$i],1) EndIf If $i < $aControls[0] Then $aResult[$i][0] = $aControls[$i] Else ; last item in array $aResult[$i][0] = WinGetTitle($Title) ; return WinTitle EndIf $aResult[$i][1] = ControlGetHandle($Title, $Text, $aControls[$i]) Next $aResult[0][0] = "ClassnameNN" $aResult[0][1] = "Handle" Return $aResult EndFunc this should do the trick -
@SciTE is it possible to make multiline user calltip?