Giter Site home page Giter Site logo

Comments (9)

samknight avatar samknight commented on August 17, 2024

Hi,

My theory at the moment is that the delays in the code are too short. Could you add in a manual delay 0.5 or longer between each step and see that resolves it for now

from slack_applescript.

JeroenVdb avatar JeroenVdb commented on August 17, 2024

You are right, this works (with QWERTY):

tell script "Slack"
	send message "this is an automated message" in channel "#testjeroen"
	delay 0.5
	set as away
end tell

from slack_applescript.

samknight avatar samknight commented on August 17, 2024

Hi, I've updated the library with a slower process https://github.com/samknight/slack_applescript/releases/tag/2.0.0.rc1

from slack_applescript.

fixcompain avatar fixcompain commented on August 17, 2024

Hi, did you correct it for AZERTY keyboard too ?

from slack_applescript.

samknight avatar samknight commented on August 17, 2024

I've not been able to test it I'm afraid. Do you know what the theoretical issues could be between AZERTY and QWERTY in AppleScript?

from slack_applescript.

fixcompain avatar fixcompain commented on August 17, 2024

I know that "key codes" are generated by keys according to their physical positions in the keyboard, so I can't really tell if there is a solution at the end May you use copy paste instead ?

from slack_applescript.

linux2647 avatar linux2647 commented on August 17, 2024

I've noticed the same issue if I have Dvorak enabled. Instead of a /, a z is typed instead, as the keycode that emits a / in QWERTY emits a z in Dvorak.

from slack_applescript.

samknight avatar samknight commented on August 17, 2024

I'm afraid this has been my only ever AppleScript project so this one has stumped me I'm afraid. I'll keep looking but I don't think I'll be managing to solve this one any time soon.

I'm reliant on a few key codes that I don't think I can replicate with keystroke.

  • Esc
  • Enter
  • Tab

I can replace key code 44 with "/" so that would help with potentially a couple of scripts

from slack_applescript.

samknight avatar samknight commented on August 17, 2024

I have replace the key code with with the "/" in 2.0.3 - can you let me know if this solves the issue?

from slack_applescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.