Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/04/23 in all areas

  1. Lars Fosdal

    More precise countdown

    @johnnydp - What is the time precision that you need? Do you need start/one-shot/stop precision, or do you need start/repeat task every interval until/stop? If you are talking more accurate than 15.6ms (Windows default), you are most likely looking at highly CPU intensive custom code or kernel driver assisted timing. In addition, you need to factor in the code required to "complete" the event.
  2. Vandrovnik

    your own DB vs. 3rd-party?

    If you use "normal" databases liky MySQL, Firebird etc., network administrators should be familier with them and can backup them, restore, move to another server etc. - form the point of view of a network administrator, this is much better than having to work with something unknown.
  3. Dave Nottage

    App as target via "share"

    That doesn't match this pattern: https://developer.android.com/training/sharing/receive#update-manifest I suggest also reading the rest of that page in regards to handling the incoming intent
  4. Remy Lebeau

    KeyDown and Shift state

    Well, not exactly the same. Keep in mind that keybd_event() (and mouse_event(), too) can only inject 1 event at a time into the input queue, thus other events from other sources could interweave in between the synthetic events. That may have subtle side-effects. Wherever SendInput() is designed to inject multiple events atomically into the queue, thus no interweaving can happen anymore.
  5. Remy Lebeau

    KeyDown and Shift state

    The value you are passing to the last (cbSize) parameter of SendInput() is wrong. It wants you to give it the size of a single TInput, but you are giving it the full size of your entire array instead. You are also using the wrong TInput field inside of the array. Since you are sending virtual key codes and not hardware scan codes, you should be using the TInput.ki.wVk field rather than the TInput.ki.wScan field. Try this instead: class procedure TRoutinesEx.ShiftTab; var Inputs: array[0..3] of TInput; begin ZeroMemory(@Inputs, SizeOf(Inputs)); Inputs[0].Itype := INPUT_KEYBOARD; Inputs[0].ki.wVk := VK_SHIFT; Inputs[1].Itype := INPUT_KEYBOARD; Inputs[1].ki.wVk := VK_TAB; Inputs[2].Itype := INPUT_KEYBOARD; Inputs[2].ki.dwFlags := KEYEVENTF_KEYUP; Inputs[2].ki.wVk := VK_TAB; Inputs[3].Itype := INPUT_KEYBOARD; Inputs[3].ki.dwFlags := KEYEVENTF_KEYUP; Inputs[3].ki.wVk := VK_SHIFT; SendInput(Length(Inputs), Inputs[0], SizeOf(TInput)); end;
  6. Lars Fosdal

    Convert Png To ico fmx delphi

    IcoFX is my goto tool for Icons. But, I have to admit I use the last free version: 1.6.4
  7. Patrick PREMARTIN

    Convert Png To ico fmx delphi

    Hi If you want to generate ICO exe files, you can search "Export en format ICO" text in https://github.com/DeveloppeurPascal/PicMobGenerator/blob/main/src/fMain.pas You'll see how I managed it for Pic Mob Generator program I've just open sourced to answer you (it was on my todo list for 2023, thanks for giving me a reason to do it).
×