Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/09/2014 in all areas

  1. Melba23

    Listview sorting.

    Jacko23, You can do it like this: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GUIListView.au3> Global $aData[4] = ["2014-03-09|456|201|3|0.45%|$2.94|$0.7654", "2014-03-08|236|231|2|0.65%|$1.25|$1.4321", _ "2014-03-07|566|341|1|0.75%|$4.62|$0.4567", "2014-03-06|786|561|3|0.95%|$6.48|$0.8765"] Global $fSortSense = False ; Set initial ascending sort $hGUI = GUICreate("Test", 500, 500) $cListView = GUICtrlCreateListView("", 10, 10, 480, 400) _GUICtrlListView_AddColumn($cListView, "Date", 80) _GUICtrlListView_AddColumn($cListView, "Requests", 80) _GUICtrlListView_AddColumn($cListView, "Impressions", 80) _GUICtrlListView_AddColumn($cListView, "Clicks") _GUICtrlListView_AddColumn($cListView, "CTR") _GUICtrlListView_AddColumn($cListView, "eCPM") _GUICtrlListView_AddColumn($cListView, "Earnings", 80) For $i = 0 To 3 GUICtrlCreateListViewItem($aData[$i], $cListView) Next GUISetState() GUIRegisterMsg($WM_NOTIFY, "_WM_NOTIFY") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _WM_NOTIFY($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $wParam $tNMHDR = DllStructCreate($tagNMHDR, $lParam) $iIDFrom = DllStructGetData($tNMHDR, "IDFrom") $iCode = DllStructGetData($tNMHDR, "Code") Switch $iIDFrom Case $cListView Switch $iCode Case $LVN_COLUMNCLICK ; A column was clicked $tInfo = DllStructCreate($tagNMLISTVIEW, $lParam) _GUICtrlListView_SimpleSort($cListView, $fSortSense, DllStructGetData($tInfo, "SubItem")) EndSwitch EndSwitch EndFunc M23
    1 point
  2. Reposting the same code doesn't help. You previously stated: but, you have not said which particular line of code isn't functioning as expected. If the call to _IEGetObjById failing? Are you not getting back the desired value from innerhtml? Or what?! Have you tried running IE10 in compatibility mode to see if you can duplicate the issue? P.S. StringInStr returns a numeric value, so your code likely could be written like this: While 1 $oIE = _IEAttach("Health Assistance") $iPleaseWait = _IEGetObjById($oIE, "ctl00_panelUpdateProgress") $iInner = $iPleaseWait.innerhtml $iLoading= StringInStr($inner, '"true"') If $iLoading Then ExitLoop EndIf Sleep(100) WEnd
    1 point
  3. Do you mean something like this ? #include <IE.au3> #Include <Array.au3> $oIE = _IECreate("http://www.equities.com/hedge-funds/2485-1492-capital-management", 0, 0) Local $array[1][2], $n = 1, $oDivs = _IETagNameGetCollection($oIE, "div") For $oDiv In $oDivs If $oDiv.classname == "jrFieldLabel jrLabel" Then $array[$n-1][0] = $oDiv.innertext $n += 1 Redim $array[$n][2] EndIf If $oDiv.classname == "jrFieldValue jrValue" Then $array[$n-2][1] = $oDiv.innertext Next Redim $array[$n-1][2] _ArrayDisplay($array)
    1 point
  4. opps, my bad, the Youtube API has changed. Go here https://developers.google.com/youtube/2.0/reference?csw=1#youtube_data_api_tag_yt:statistics
    1 point
  5. two things first, no bumping. That pisses moderators off second, learn to use Google. I found this right off the bat https://productforums.google.com/forum/#!topic/youtube/giB5KsJEGzI
    1 point
  6. You could also declare it local static if you don't need to use the variable's contents outside of the function and want to keep the value intact after leaving the function and then going back into it.
    1 point
  7. kid1519, I do not understand what you want to do. Are you trying to bypass the GreenForce-Player requirement to enter a password to view a film so that it is no longer necessary? M23
    1 point
  8. chrispetersinc, Nice first post. Necroing a 5 year old thread to comment on the tone of one of the posts - prepare yourself to be even more shocked by some of the other posts from that period, particularly from one individual. Anyway, this is the internet - either live with it or stay off-line. M23
    1 point
  9. AutoIt and Scintilla based Text Editor a.k.a ASciTE Based off of and ' frameborder='0' data-embedContent>text editors! Click their names to see their projects! Tested only on Win XP 32bit. This will not work on 64bit systems! ASciTE script source => ASciTE.rar Previous Downloads: 44 ASciTE Script Source => ASciTE.rar Previous Downloads: 10 ChangeLog Details Other Files Here are some extractions from the script of thing that took conciderable time, I've taken out what I would assume some people would probably want, such as the arrow for the tab switching (Which stopped working in the latest version) and the IPC (inter process communication) through windows messages that was created for this script from code by wolf9228 in this Tab re-ordering indicator (little red arrow) => Tab Reposition.au3 IPC Script Communication => Simple IPC.au3 Feature details *Portable mode is activated when the "AutoIt3" directory is found in the same directory as the script, but if an installed version is detected, it will default to using that one. ** There is a bug present that I could not figure out where double clicking on the title bar to maximize the window will cause the script to forget its initial size causing the script to stay full screen when re-sized in this manner Other information Credits Background The more you know...
    1 point
×
×
  • Create New...