How to use VB to press Ctrl every 10 seconds and then press the mouse left

Updated on technology 2024-04-04
8 answers
  1. Anonymous users2024-02-07

    1 Sendkeys can be used

    2 You can use the SendMessage PostMessage API

  2. Anonymous users2024-02-06

    VB's mouse events are click, double-click dblclick, mousedown, release mouseup, and move mousemove. Please remove the other mouse event procedures and program only the mouse double-click event dblclick.

  3. Anonymous users2024-02-05

    private declare function postmessage lib "user32" alias "postmessagea" (byval hwnd as long, byval wmsg as long, byval wparam as long, byval lparam as long) as long

    private declare sub sleep lib "kernel32" (byval dwmilliseconds as long)

    dim anctlejiang as long 'This sentence is written in general.

    private sub command1_click()

    postmessage 65674, 100, 17, 0 'This is by pressing the CTLE key.

    anctlejiang = 1

    sleep 1000 'Delay 1 second.

    postmessage 65674, 101, 17, 0 'Flick the CTLE key.

    anctlejiang = 0

    end sub

    private sub timer1_timer()

    msgbox anctlejiang

    if anctlejiang <>0 then

    dim aa as long

    postmessage 65674, 201, 1, 0 'This is by pressing the left button.

    to press the left button"

    aa = anctlejian

    if aa <>anctlejian then

    postmessage 65674, 202, 1, 0 'Flick the left button.

    to bounce the left button"

    end if

    end if

    end sub

  4. Anonymous users2024-02-04

    ???May I.

    You don't need a vb statement, you can set it directly, but it's all in ms.

  5. Anonymous users2024-02-03

    See if the socket is working properly and reinstall the driver.

  6. Anonymous users2024-02-02

    Looking at the background, I tried the explorer again, and the file is selected.

    The background color is different between choosing Chinese pieces and selecting Chinese characters.

  7. Anonymous users2024-02-01

    I made one a long time ago with a lot of features. See image below

    Click Settings to go to Settings:

    Do you want that?

  8. Anonymous users2024-01-31

    Attached is the source code.

    F10 starts. Stop at the click of a button.

    F11 is hidden and revealed, so it's detailed enough. \

Related questions
10 answers2024-04-04

I think it's time to buy a VB book. Break the bank!

8 answers2024-04-04

I'll give you an easy way to do it, and I use it when I was in college, and I don't know if you can use it. >>>More

9 answers2024-04-04

To realize the communication between the computer and the mobile phone, it can be divided into two situations, one is the situation with wifi, and the other is the situation without wifi. >>>More

12 answers2024-04-04

My habit is to use the shutdown command in the shell.

a=shell("shutdown -f -s -t 0"relationship. >>>More

11 answers2024-04-04

This program of the landlord is written into a notepad. If you want to write data to the access database. >>>More