Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/19/2012 in all areas

  1. funkey

    tga files into gui

    So, now you can download all I have about this. I cleaned some things in the DLL also. tga.rar
    2 points
  2. UDF to control FireFox via MozRepl: Edit-> Please see new FF.au3 Thread for updates past V0.6.0.1b-10. FF.au3 (V0.6.0.1b-10) Changelog Changes since V0.6.0.0b: V0.6.0.1b-10 - Added: __IsIP: IPV6 Support (IVP6, HexCompressed, 6Hex4Dec, Hex4DecCompressed) V0.6.0.1b-9 - Added: __FFStartProcess: 64bit support - Added: __FFIsURL: support for intranet - Changed: _FFQuit now closes FireFox with multiple windows - Fixed: Connection-limit to MozRepl V0.6.0.1b-8 (by Danp2) - Changed: _FFTabExists to allow search by href - Changed: _FFTabSetSelected to allow selection by href - Changed: SelectWin to check individual tabs - Added: FFau3.SearchTabURL helper function - Fixed: __FFStartProcess - Fixed: _FFGetPosition V0.6.0.1b-7 - New: Internal function: __FFMultiDispatchEvent: Dispatches multiple events on one element - Added: _FFDisPatchEvent can now simulate MouseEvents: click, mousedown, mouseup, mouseover, mousemove, mouseout - Added: Global constants $_FF_Event_* - Changed: Removed connection-limit to MozRepl - Optimized: __FFFilterString - Optimized: __FFB2S (Bool to string) - Optimized: __FFIsIP V0.6.0.1b-6 - Added: Internal function __FFSetTopDocument() - Changed: Default values for _FFXpath: _FFXPath($sQuery, $sAttribute = "", $iReturnType = 9, $iFilter = 0) - Changed/Fixed: _FFSearch($sSearchString[, $bCaseSensitive = False[, $bWholeWord = False[, $bSearchInFrames = True]]]) !!! Now you can use as $sSearchString RegExp, too! - Fixed: _FFAction _FFClick _FFFormSubmit _FFLoadWait _FFDisPatchEvent _FFOpenURL _FFTabAdd _FFTabClose _FFTabSetSelected now updating the FFau3.WCD-object (window.content.document) - Fixed: Different problems after _FFTabAdd - Fixed: Different problems after _FFOpenURL - Fixed: Error in _FFAu3Option() V0.6.0.1b-4 - Changed: Default values for _FFXpath: _FFXPath($sQuery, $sAttribute = "", $iReturnType = 9, $iFilter = 0) - Fixed: Different problems after _FFTabAdd - Fixed: Different problems after _FFOpenURL - Fixed: Errorin _FFAu3Option() V0.6.0.1 - Added: Option $_FF_SEARCH_MODE works now for: _FFLinkClick _FFImageClick - Added: _FFClick: Parameter $bLoadWait - Added: _FFLoadWait: Parameter $bStop = stops pageloading after timeout - Added: _FFAu3Option: "LoadWaitStop" - Added: Global var $_FF_LOADWAIT_STOP - Updated: _FFXPath: some optimizations (shorter command strings to send) - Optimized: _FFFormOptionSelect - Optimized: _FFLoadWait - Fixed: _FFGetPosition: Removed error if "MozillaContentWindowClass" is not found - Fixed: _FFSearch: Error with non-ASCII-chars - Fixed: _FFLinkClick: Error with non-ASCII-chars - Fixed: _FFImageClick: Error with non-ASCII-chars - Fixed: _FFAction("alert", ...): Error with non-ASCII-charsFor compatibily for older scripts and more functions, please use this UDF: http://thorsten-willert.de/Themen/FFau3/FF.au3/FFEx.au3 Function list: _FFAction _FFClick _FFCmd _FFConnect _FFDialogWait _FFDisConnect _FFDispatchEvent _FFFormCheckBox _FFFormGetElementsLength _FFFormOptionSelect _FFFormRadioButton _FFFormReset _FFFormSubmit _FFFrameEnter _FFFrameLeave _FFGetLength _FFGetObjectInfo _FFGetPosition _FFGetValue _FFImageClick _FFImageGetBySize _FFImageMapClick _FFIsConnected _FFLinkClick _FFLinksGetAll _FFLoadWait _FFLoadWaitTimeOut _FFObj _FFObjDelete _FFObjGet _FFObjNew _FFOpenURL _FFPrefGet _FFPrefReset _FFPrefSet _FFQuit _FFReadHTML _FFReadText _FFSearch _FFSetValue _FFStart _FFTabAdd _FFTabClose _FFTabDuplicate _FFTabExists _FFTabGetSelected _FFTabSetSelected _FFTableWriteToArray _FFWindowClose _FFWindowGetHandle _FFWindowOpen _FFWindowSelect _FFWriteHTML _FFXPath Requirement(s).: Latest Version of FireFox and the AddOn MozRepl !!! Don't forget to start MozRepl. FF-menu: Extras/Menu or check there "Activate on startup". Documentation: - English - German - Russian (by Valery) - Englisch CHM, user-calltips ... FF.au3 extensions: - _FF_DM.au3 (UDF for the FireFox Download-Manager) [Forum] - _FFEx.au3 (more functions and compatibly fixes for older scripts): ; _FFDisPatchKeyEvent ; _FFFormGetLength ; _FFGetValueById ; _FFGetValueByName ; _FFSetValueById ; _FFSetValueByName ; _FFTabCloseAll ; _FFTabGetLength ; _FFTableGetCell ; _FF_Call ; _FF_CookiesAllow ; _FF_CookiesDeny ; _FF_CookiesRemoveAll ; _FF_CookiesSetAccess ; _FF_EmptyCache ; _FF_EmptyCookies / _FF_CookiesRemoveAll ; _FF_EmptyHistory ; _FF_FormSetFileInput ; _FF_GetContentXY ; _FF_GetCurrentURL ; _FF_GetStatus ; _FF_GetTitle ; _FF_MozRepl_Detect ; _FF_ResetTitle ; _FF_TabGetAllTitles ; _FF_TabGetAllURLs ; _FF_TabReloadAll UDFs for FireFox AddOns: - _FF_FireFM [Forum] - _FF_FoxBox.au3 [Forum] - _FF_Screengrab.au3 [Forum] Misc: - _FF_AutoLogin [Forum] - _FF_RecordForm [Forum] - YouTube-API-Wrapper [Forum] Known problems: - The _FFTab* functions doesn't work, if you have the FF-AddOn TabMixPlus installed (this AddOn seems to override some internal FF-functions) More examples and stuff are on my homepage. Stilgar
    1 point
  3. Vossen

    Get Pixel Color from Image

    When I searched this forum, I couldn't find any way to get a pixel color from an image. Done some research and found this on a french AutoIt forum (http://www.autoitscript.fr/forum/viewtopic.php?f=3&t=2993&start=0) #include <GDIPlus.au3> $sv_ImageSource = @ScriptDir & "\Source.jpg" $iPosX = 253 $iPosY = 291 _GDIPlus_Startup() $hImage = _GDIPlus_ImageLoadFromFile($sv_ImageSource) MsgBox(0, "Pixel Color", _GDIPlus_BitmapGetPixel($hImage, $iPosX, $iPosY)) _GDIPlus_ImageDispose($hImage) _GDIPlus_ShutDown() Func _GDIPlus_BitmapGetPixel($hBitmap, $iX, $iY) Local $tArgb, $pArgb, $aRet $tArgb = DllStructCreate("dword Argb") $pArgb = DllStructGetPtr($tArgb) $aRet = DllCall($ghGDIPDll, "int", "GdipBitmapGetPixel", "hwnd", $hBitmap, "int", $iX, "int", $iY, "ptr", $pArgb) Return "0x" & Hex(DllStructGetData($tArgb, "Argb"), 6) EndFunc Hope it will be useful for someone else too!
    1 point
  4. I just wanted to post a THANK YOU to everyone that is, and has in the past, developing the AutoIT suite and supporting software. Also, a THANK YOU to everyone on the forum who helps when people need assistance. Answers are usually prompt, and not too cryptic, to questions posted. And I actually appreciate the assistance that comes in the form of "you might want to look up ______", rather than always just tossing out the answer right there. That helps amateur developers learn more about the language and tools. Though you may not always get a "thanks" when you provide help, I hope you know that you are appreciated by many.
    1 point
  5. Floppy, How about this: #include <GuiConstantsEx.au3> #include <GuiTab.au3> #include <StaticConstants.au3> #include <Array.au3> Global $aTab[5] = [4] $hGUI = GUICreate("Test", 500, 500) $cCloseX = GUICtrlCreateLabel("X", 0, 0, 1, 1, BitOR($SS_NOTIFY, $SS_CENTER, $SS_SUNKEN)) GUICtrlSetBkColor($cCloseX, 0xFF8080) $cTab = GUICtrlCreateTab(5, 5, 390, 260) $hTab = GUICtrlGetHandle($cTab) For $i = 1 To $aTab[0] $aTab[$i] = GUICtrlCreateTabItem("Tab item - " & $i & " - X") Next GUICtrlCreateTabItem("") TabEvent() GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cTab TabEvent() Case $cCloseX $iIndex = GUICtrlRead($cTab) + 1 GUICtrlDelete($aTab[$iIndex]) _ArrayDelete($aTab, $iIndex) $aTab[0] -= 1 If $aTab[0] Then GUICtrlSetState($cCloseX, $GUI_SHOW) Else GUICtrlSetState($cCloseX, $GUI_HIDE) EndIf EndSwitch WEnd Func TabEvent() Local $iMargin_X = 6, $iMargin_Y = 6 $iTab_Index = _GUICtrlTab_GetCurSel($hTab) $aTab_Coord = _GUICtrlTab_GetItemRect($hTab, $iTab_Index) $iOffset = $aTab_Coord[2] - $aTab_Coord[0] - 20 GUICtrlSetPos($cCloseX, $iMargin_X + $aTab_Coord[0] + $iOffset, $iMargin_Y + $aTab_Coord[1], 20, $aTab_Coord[3] - $aTab_Coord[1] - 2) _GUICtrlTab_SetCurFocus(GUICtrlGetHandle($cTab), $iTab_Index) EndFunc ;==>TabEvent Any use? M23
    1 point
  6. funkey

    tga files into gui

    Hello, now I managed to convert the code to AutoIt. I hope there are not to much errors in it. It is not that fast, but i think some improvements could be done. Best regards funkey
    1 point
  7. Does not send the space for me.
    1 point
  8. The correction in the example you gave (adding a ")") makes your code work as designed. You hit the space bar and a msgbox appears. Could you show us your entire code?
    1 point
  9. This can't be your code since it has a syntax error.
    1 point
  10. We have the great IE.au3 UDF because Microsoft chose to expose a COM interface to the DOM in IE, and Dale put a very usable AutoIt function wrapper on that. There is a FF.au3 UDF for Firefox only because you can install a plug-in for FF that exposes a COM interface that is not normally there. So, the question is: Does Chrome expose a COM interface, or allow a plug-in that will? The question would be the same if you want to use AutoIt scripting with Safari, Opera, etc. What API does it expose that AutoIt can use?
    1 point
×
×
  • Create New...