Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/07/2021 in all areas

  1. Hi jimmy123j, I had the same issue with the dotted rectangle when the item is focused. @LarsJ provided a solution that worked fine for me and it seems to solve your problem too. 1) Running your original script, the focused item is surrounded with the dotted rectangle : 2) With the additional line of code (placed immediately after the listview creation), the dotted rectangle has gone : $Window2_List = GUICtrlCreateListView("Item 1|Item 2|Item 3|Item 4|Item 5", 0, 0, 400, 200, $LVS_REPORT + $LVS_SINGLESEL, $LVS_EX_FULLROWSELECT + $WS_EX_CLIENTEDGE) _GUICtrlListView_SetCallBackMask($Window2_List, 4) ; "disable state information about focused item" (LarsJ) . Can be useful (keep that line)
    2 points
  2. Hello everyone I am happy to share this UDF with you which, as you may have read from the title, allows you to emulate multithreading without memory or functionality limitations. This UDF permit you to initialize different process and execute all code you want,is verry seample exciange information between Threads using this UDF. This system is good because allow you to execute any kind of code in backgorund or not, with no limitations. Sure you have to deal with the message system to turn them into commands and data exchange but it's not that complicated, anyway I'm working on it. Let me know for improvements... AutoThreadV3.au3 AutoitMultiThread Example.au3
    1 point
  3. I actually used to do this as well. I have two computers and two monitors. In the morning I switch to my work computer by moving the cords from my personal computer. Windows politely remembers your last screen setup, but if you don't plug them in simultaneously then it's two changes. DisplaySwitch.exe is what you're looking for from what I can tell. It won't let you select your primary display, but you can choose how your second screens are used. DISPLAYSWITCH - Windows CMD - SS64.com If you do want to change your primary display at the same time, I think UI Automation or some 3rd party apps are required. StackOverflow is failing me by providing the same answer repeatedly Edit: This will jump you directly to the display settings screen rundll32.exe shell32.dll,Control_RunDLL desk.cpl
    1 point
  4. Or without the need to use an array: HotKeySet("{F1}", "RunFunc") Global $iMaxFuncs = 3 ; highest function number While (1) Sleep(100) WEnd Func RunFunc() Call("camera" & Random(1, $iMaxFuncs, 1)) EndFunc ;==>RunFunc Func camera1() MsgBox(0, 0, "camera1") EndFunc ;==>camera1 Func camera2() MsgBox(0, 0, "camera2") EndFunc ;==>camera2 Func camera3() MsgBox(0, 0, "camera3") EndFunc ;==>camera3
    1 point
×
×
  • Create New...