Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/08/2011 in all areas

  1. After you've selected the proper item in the listview use _GUICtrlListView_EnsureVisible($listview_name01, 1), where the 1 is the index to the selected item, to make sure that you can see it inside the visible window.
    1 point
  2. _GUICtrlListView_SetItemSelected($listview_name01, 1) ;0-1-2-3
    1 point
  3. I use this method, the first coloumn of listview is "ID" in an access database. I use this function to retrieve the first coloumn: ;****************************************************************************************************************************** Func Return_ID_listview($string_row) ;****************************************************************************************************************************** $array_return = StringSplit($string_row, "|") if $array_return[0] > 0 Then return $array_return[1] Else return -1 EndIf EndFunc .... .... code ..... ..... $numdoc = Return_ID_listview(GUICtrlRead(GUICtrlRead($listview_name01)))
    1 point
  4. UEZ

    Variable & Array Question

    $CampusLocation[$RoomLocation] is not an array! These are 2 integer values! Btw, I would use a 3D array storing all the information. Br, UEZ
    1 point
  5. Thanks for your reply, but disabling/enabling ScreenSaver by registry need a system restart and is not a good idea. As you are said, your second solution way put a scratch on the user face too. I found a function in user32.dll for solving the problem. I hope my code be useful for other needers in features ; Usage : Disable/Enable Windows ScreenSaver feature ; Author: Morteza ;Disable Windows ScreenSaver _ScreenSaverActive(False) Sleep(10000) ;Enable Windows ScreenSaver _ScreenSaverActive(True) Func _ScreenSaverActive($bBoolean) Local Const $SPI_SETSCREENSAVEACTIVE = 17 Local $lActiveFlag Dim $lActiveFlag Dim $retvaL If $bBoolean Then $lActiveFlag = 1 Else $lActiveFlag = 0 EndIf $dll = DllOpen("user32.dll") $retvaL = DllCall($dll, "long", "SystemParametersInfo", "long", $SPI_SETSCREENSAVEACTIVE, "long", $lActiveFlag, "long", 0, "long", 0) DllClose($dll) EndFunc ;==>_ScreenSaverActive
    1 point
×
×
  • Create New...