Windows 10: I would like to write simple Program/Script to simulate that user clicked the "Open...

Discus and support I would like to write simple Program/Script to simulate that user clicked the "Open... in Windows 10 Software and Apps to solve the problem; I would like to write simple Program/Script to simulate that user clicked the "Open Keyboard" button in Touch Keyboard Settings. What is the necessary... Discussion in 'Windows 10 Software and Apps' started by Michael Makoski, Dec 22, 2024 at 9:22 PM.

  1. I would like to write simple Program/Script to simulate that user clicked the "Open...


    I would like to write simple Program/Script to simulate that user clicked the "Open Keyboard" button in Touch Keyboard Settings. What is the necessary command needed to execute such a task?

    :)
     
    Michael Makoski, Dec 22, 2024 at 9:22 PM
    #1

  2. Microsoft Flight Simulator issue after Windows 10 Upgrade

    Hi Rahul,



    Thank you for contacting Microsoft Community.



    I suggest you to completely uninstall Microsoft Flight Simulator and check.

    Refer the steps below to uninstall.

    • Press “Windows key + X”, select Control panel.
    • Open programs and features.
    • In the list of installed programs, select Microsoft Flight Simulator, and then click
      Remove.


    Note: If you have earlier versions of Flight Simulator in the list of installed programs, you will have to remove them in addition to Flight Simulator.



    Reinstall the Flight Simulator.



    Please reply to us if the issue still persist.
     
    ThofikhAhamad, Dec 22, 2024 at 9:23 PM
    #2
  3. CK011885 Win User
    Need Help With Simple AutoHotKey Script

    Hi all, I'm trying to make a "simple" script but having some problems. I say "simple" because I've never done this before, but it's probably simple for someone more familiar. Basically, I want to make it where when I hold the right mouse button down, instead of right clicking it continuously Shift+Right Clicks (This is for a game).

    I came up with this:

    RButton::Send +{Click, Right}

    Which basically does what I want only I can't hold down the mouse button to continuously repeat the script. I'm not looking for anything automated, and would like to have it only do this while I hold the mouse button down, and stop when I let go.

    A friend of mine came up with this for me, which is almost perfect but for some reason in the game it causes the character to stutter step in between casts of the spell (Path of Exile). The character will cast the spell, stutter step forward, then cast again. The normal behavior in the game of holding Shift and casting a spell will keep you in place and not moving, which is what I'm looking for. He came up with this:

    #IfWinActive Path of Exile
    RButton::
    loop
    {
    GetKeyState, RButtonState, RButton, P
    if (RButtonState = "U") {
    send +{RButton up}
    break
    } else {
    send +{RButton down}
    sleep, 10
    }
    }
    #IfWinActive

    Is anyone here familiar with creating scripts/macros that can possibly tweak this to make it behave like I'd like it to? He suggested removing the sleep line, which I tried and it didn't change the behavior.

    Edit: Issue resolved, the following worked great:

    #IfWinActive Path of Exile
    *rbutton::Send {shift Down}{rbutton down}
    *rbutton Up::Send {shift Up}{rbutton up}
     
  4. I would like to write simple Program/Script to simulate that user clicked the "Open...

    Wanted: Sample scripts to cannibalize

    I need to create a simple (I hope) script and have it working in less than 2 weeks. I'm not terribly proficient in any scripting language but am comfortable with .bat scripts and can stumble around in .vbs (given good samples). PowersShell might as well be Sanskrit. (I know I should learn PS but the learning curve is too long for this project.) JavaScript is another possibility. I've never used it, but I suspect it has a shorter learning curve than PS. The script needs to
    1. Present and process a file selection display of some sort. It would be ideal if it looked and felt similar to File Explorer but I'll accept anything that works.
    2. Open a file, read the data, and close the file.
    3. Modify the data read in step 2. The data will be a number of file paths - local, not UNCs.
    4. Open a file, write data (overwriting, if it already exists), and close the file. (I assume steps 2, 3, and 4 will happen concurrently.)
    5. Invoke a program (as though using "Open With" in File Explorer) to process the data written in step 4.
    I'm sort of envisioning this as an HTA, but I could use anything that works. I'm not worried about steps 2, 3, and 4; I'm sure I can get that part to work. I have no idea how to do step 1 although I'm sure it can be done. A lot of applications do that. I am most worried about step 5. I have no idea how "Open With" passes the selected file's path to the program or the program accesses that data. (Is it just like calling a program with an argument?) I will be writing this on Win10 21H1 (build 19043.1348) but it will have to run on some very old computers running Win7, on newer computers running Win10, and probably eventually on Win11. Are there some scripts around that I can use as models?
     
Thema:

I would like to write simple Program/Script to simulate that user clicked the "Open...

Loading...
  1. I would like to write simple Program/Script to simulate that user clicked the "Open... - Similar Threads - write simple Program

  2. I would like to write simple Program/Script to simulate that user clicked the "Open...

    in Windows 10 Gaming
    I would like to write simple Program/Script to simulate that user clicked the "Open...: I would like to write simple Program/Script to simulate that user clicked the "Open Keyboard" button in Touch Keyboard Settings. What is the necessary command needed to execute such a task?...
  3. I would like to creat user profiles that cannot install programs.

    in Windows 10 Ask Insider
    I would like to creat user profiles that cannot install programs.: Hi, I would like to creat user profiles for windows with all the normal setting but they cannot install or remove the softwares on the computer. I would like an administrator profile with a password that can install and uninstall softwares. I saw the family option of...
  4. would like simple explanation - types of accounts+ how to remove.

    in Windows 10 Gaming
    would like simple explanation - types of accounts+ how to remove.: hi all, i have a HP desktop and currently have 3 ""accounts"" show up on screen as choices to sign in:1 MG my name - a local account with admin privileges- this is the one i usualy use. 2 MG ''' '' 3 PCUser a local account with admin .I consider in know something about PC's...
  5. would like simple explanation - types of accounts+ how to remove.

    in Windows 10 Customization
    would like simple explanation - types of accounts+ how to remove.: hi all, i have a HP desktop and currently have 3 ""accounts"" show up on screen as choices to sign in:1 MG my name - a local account with admin privileges- this is the one i usualy use. 2 MG ''' '' 3 PCUser a local account with admin .I consider in know something about PC's...
  6. I would like to use write down always on with Windows11

    in Windows 10 Gaming
    I would like to use write down always on with Windows11: I use galaxybook flex2 with s-pen on windows 11.I would like to use s-pen to write down when touch input field with notebook mode also.I found "Setting - Bluetooth and Connected device - Pen & Windows Ink"There are only option when actual key board is not connected may be...
  7. I would like to use write down always on with Windows11

    in Windows 10 Software and Apps
    I would like to use write down always on with Windows11: I use galaxybook flex2 with s-pen on windows 11.I would like to use s-pen to write down when touch input field with notebook mode also.I found "Setting - Bluetooth and Connected device - Pen & Windows Ink"There are only option when actual key board is not connected may be...
  8. Would like to run old programs

    in Windows 10 Installation and Upgrade
    Would like to run old programs: Old programs like Photoshop 6.0 for ex., Illustrator 6.0, the compatibility troubleshooter included in Windows 10 does not work, I am pretty sure it is almost useless, serious answers please....
  9. Writing Script

    in Windows 10 Drivers and Hardware
    Writing Script: Hello, Could anyone write a script that would force automatic download and installation of drivers via Windows update? I care that you do not have to click Windows Update in the GUI, only that after calling the script it will download if there are any missing 175617
  10. Program I would like to use as default not listed

    in Windows 10 Software and Apps
    Program I would like to use as default not listed: I have a program I would like to use for photos, PDFs, jpegs, tifs and pngs called "BlueBeam". When I try to use this program as a default, Windows will not list it or even give me an opportunity to search my hardware and select it. How do I fix that ? *Think 56165