Jump to content

4ggr35510n

Active Members
  • Posts

    91
  • Joined

  • Last visited

Recent Profile Visitors

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

4ggr35510n's Achievements

Wayfarer

Wayfarer (2/7)

1

Reputation

  1. There are no combo boxes in HTML documents. There are <SELECT> elements. Interactive with _FFFormOptionselect()
  2. I don't feel like needing UDF :] But it would be very helpful if you could just point me a bit in a right direction I can handle with all autoit DllCall/DllStruct functions. I believe most functions I need can be found here: http://xmlsoft.org/html/libxml-HTMLparser.html But I have some language and knowledge issues to understanding the proper way to do it. Should I just use htmlCreateMemoryParserCtxt() to create ParserCtxt from "char" Structure (received as in _WinHTTPReadData()) and then htmlCtxtReadDoc() to "parse an XML in-memory document and build a tree"? I know I don't know a lot about that I'll really appreciate you help! Hoping for your help, 4gr
  3. Thank you so much trancexx and ProgAndy for this terrific UDF and great examples helping get started with it! I was just wondering is it possible to "converse" somehow HTML document into an XML* on which it would be possible to operate with javascript to obtain some data from the page? * I guess HTML is already an extended version of XML... So it's not the smartest question ever, but I hope you'll get my point And wouldn't it be a game not worth a candle? I guess every .getElementsBy* operations can be successfully substituted with RegExp's functions, as in _WinHttpSimpleFormFill... Thank you in advance!
  4. DL link doesn't work any more: "Noch keine Kategorien vorhanden!"
  5. I'm dummy, but not so dummy ;] You've included WinApiEx and _WinApi_FreeObject in version with gradients in title bar.
  6. Global $oApplet, $oObjectCollection = $oIE.document.getElementsByTagName('object') For $oApplet In $oObjectCollection If StringInStr(String($oApplet.classid),"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000") Then _ ExitLoop Next ; $oApplet holds ur object now
  7. _WinAPI_FreeObject(): undefined function. Hmm...? WinApiEx.au3 is included, without this cleaning-resources function -> works great (very nice work!) :]
  8. NomadMemory.au3 () HotKeySet
  9. Greetings! I'd like to create button with .png image on it. Yet I cannot make the thing to work properly I've started from GuiCtrlSendMsg function which works perfect to set .png images in GuiCtrlPic controls... Yet it can't create transparent background with button controls Below it's the code I've got so far: (it might ask u for dling one small png image, so u could see the problem) #include <GdiPlus.au3> $hGui = GUICreate('') $hButton = GUICtrlCreateButton('', 10, 10, 128, 128, 0x0080) ; BS_BITMAP style $hStaticLabel = GUICtrlCreatePic('', 10, 150, 128, 128) ; no style needed ; I will Download PNG Image for you... I hope it's okay... If Not FileExists('plus.png') Then ; I will Download PNG Image for you... I hope it's okay... If MsgBox(4, 'Question for you my dear...', 'Is it OKAY to download small png image from google images?') = 6 Then InetGet('http://www.smyku.pl/img/plus.png', 'plus.png') Else Exit MsgBox(0, '', 'Bye bye then <img src='http://www.autoitscript.com/forum/public/style_emoticons/<#EMO_DIR#>/sad.png' class='bbc_emoticon' alt=':(' />') EndIf EndIf _GDIPlus_Startup() $hPngImage = _GDIPlus_ImageLoadFromFile('plus.png') Global $iARGB = 0xFF000000 ; you can manipulate with that, making it white, yellow, blue, etc. etc. backgrounded... But not transparent <img src='http://www.autoitscript.com/forum/public/style_emoticons/<#EMO_DIR#>/sad.png' class='bbc_emoticon' alt=':(' /> $hBitmapHandle = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hPngImage, $iARGB) ; Setting image to a Static / Label - works FINE, background is fully transparent GUICtrlSendMsg($hStaticLabel, 0x0172, 0, $hBitmapHandle) ; 0x0172 == STM_SETIMAGE msg ; Setting image to a Button - works _NOT_AT_ALL_ GUICtrlSendMsg($hButton, 0x0F7, 0, $hBitmapHandle) ; 0x0F7 == BM_SETIMAGE msg GUISetState() Do $msg = GUIGetMsg() Switch $msg Case -3 _WinAPI_DeleteObject($hBitmapHandle) ; cleaning resources _GDIPlus_ImageDispose($hPngImage) ; x2 Exit Case $hButton MsgBox(0, "I'm a button", _ "It's _NOT_ a racist thing... I just don't want to be black any more <img src='http://www.autoitscript.com/forum/public/style_emoticons/<#EMO_DIR#>/sad.png' class='bbc_emoticon' alt=':(' />" & _ @CRLF & _ @CRLF & _ "NOT white neither... I just want to be _TRANSPARENT_! Can you help me...? <img src='http://www.autoitscript.com/forum/public/style_emoticons/<#EMO_DIR#>/sad.png' class='bbc_emoticon' alt=':(' />" ) EndSwitch Until FalseMaybe you will know how to make this code work...? It's the same method _GuiCtrlButton_SetImage() function is using... For Buttons works only with .bmp / .ico For Pics works with everything. How come? Best regards, hoping for your help, 4ggr35510n
  10. You are terrible complicating !!! $var1 = 5; $var2 = 10; $range = 7; If Abs($var1 - $var2) < $range Then MsgBox(0,'','Its in a range!') Use absolute value of the difference!
  11. Game automation. It's a server select list for some web browser game.
  12. _FFPrefSet('javascript.enabled', 'false')
  13. You mean triple post. gBrowser.mTabs object contains all opened Tabs in one instant of browser. With gBrowser.mTabs.length You can get the length of this object ERGO the number of opened tabs. With gBrowser.mTabs[gBrowser.mTabs.length-1].linkedBrowser.contentwindow.document.location.href You can get the http://* location of the last opened tab. Just an example, I hope it's understandable, that codes below you need to use as an argument in _FFCmd() function. And return values of those code samples (length in first and location in second) will be the return values of _FFCmd() function.
  14. I believe there is none working example of WM_MOUSELEAVE notification ( I could be wrong ), using TrackMouseEvent, on this Forum. I've had some serious trouble some time to make it work. I believe someone will use it one day :] Global $is_tracking = False Global $iteration = 1 ; Just to recognize different ConsoleWrite's in spammed console Global $hGui = GUICreate('') Global $sTrackMouseEvent = DllStructCreate('dword;dword;hwnd;dword') ; Creating TRACKMOUSEEVENT Structure Global $sTME_size = DllStructGetSize($sTrackMouseEvent) ; getting size of structure - need for 1st argument ; Filling in: DllStructSetData($sTrackMouseEvent, 1, $sTME_size) ; Size of a structure DllStructSetData($sTrackMouseEvent, 2, 0x00000002) ; TME_LEAVE DllStructSetData($sTrackMouseEvent, 3, $hGui) ; HWND of our GUI DllStructSetData($sTrackMouseEvent, 4, 0xFFFFFFFF) ; HOVER_DEFAULT - BUT IT'S NOT USED ANYWAY, SINCE WE'RE TRACKING ONLY MOUSE_LEAVE EVENT Global $sTME_POINTER = DllStructGetPtr($sTrackMouseEvent) ; Getting the pointer to the structure, needed to TrackMouseEvent function GUIRegisterMsg(0x0200, '__wm_mousemove') GUIRegisterMsg(0x02A3, '__wm_mouseleave') ; WM_MOUSELEAVE code GUISetState() Func __wm_mouseleave($hwnd, $msg, $wParam, $lParam) $is_tracking = False ConsoleWrite('YOUR MOUSE HAS JUST LEAVED YOUR GUI WINDOW FOR THE ' & $iteration & ' TIME!' & @CRLF) $iteration += 1 EndFunc Func __wm_mousemove($hwnd, $msg, $wParam, $lParam) If Not $is_tracking Then $is_tracking = True DllCall('user32.dll', 'bool', 'TrackMouseEvent', 'ptr', $sTME_POINTER) ; We're calling the tracking function ConsoleWrite('Starting tracking...' & @CRLF) EndIF EndFunc Do Until GuiGetMsg() = -3
×
×
  • Create New...