Jump to content

malicioussoap

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

malicioussoap's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. back when I was still doing autohotkey you could write (in code) spanisha::á and whenever you were in google docs or notepad you could type (in the document) spanisha and it instantly turns it into á I tried doing this in autoit, here's what I have so far (my entire code so if this language requires a main function or a return/exit to function properly please let me know): ;is this a proper comment? HotKeySet ( "spanisha" , "SendAltered" ) Func SendAltered() Send("á", flag = 0); EndFunc I assume that autoit follows a sort of contemporary hotkey pressing model where you have to hold all keys at the same time? which makes this impossible. So I'm wondering if anyone has a workaround for this? or maybe an alternative to HotKeySet() I have a vague memory of someone saying that doing something like spanisha:á would work. I don't know if I'm slightly off syntax but this doesn't work. Also I tried doing ;is this a proper comment? ;HotKeySet ( "a" , "SendAltered" ) ;spanisha::á Func SendAltered() Send("á"); EndFunc just to try and debug, I'm also wondering if my approach is fundamentally wrong since HotKeySet() was made for something like !^A. Or if Send() is syntactically wrong. I'm also noticing on these forums that specifying installation is important so to whom it may concern I downloaded both installers, editor and main files. Although I'm about to be real mad if the editor installation makes a difference.
  2. It's not so much a problem since Send("2*4*8*16=") Probably is specifically compatible with a different version of calculator.exe (it's Calculator 10.2005.23.0 right now). The specific issue is that running the script only leads to opening the calculator. There is no indication of input or output. Calculator.exe doesn't close after 20 minutes. I'm just wondering if it's working for anyone else. no big deal if it doesn't work, just curious here's the whole script for anyone too lazy to check the code #include <Constants.au3> ; ; AutoIt Version: 3.0 ; Language: English ; Platform: Win9x/NT ; Author: Jonathan Bennett (jon at autoitscript dot com) ; ; Script Function: ; Plays with the calculator. ; ; Prompt the user to run the script - use a Yes/No prompt with the flag parameter set at 4 (see the help file for more details) Local $iAnswer = MsgBox(BitOR($MB_YESNO, $MB_SYSTEMMODAL), "AutoIt Example", "This script will run the calculator and type in 2 x 4 x 8 x 16 and then quit. Do you want to run it?") ; Check the user's answer to the prompt (see the help file for MsgBox return values) ; If "No" was clicked (7) then exit the script If $iAnswer = 7 Then MsgBox($MB_SYSTEMMODAL, "AutoIt", "OK. Bye!") Exit EndIf ; Run the calculator Run("calc.exe") ; Wait for the calculator to become active. The classname "CalcFrame" is monitored instead of the window title WinWaitActive("[CLASS:CalcFrame]") ; Now that the calculator window is active type the values 2 x 4 x 8 x 16 ; Use AutoItSetOption to slow down the typing speed so we can see it AutoItSetOption("SendKeyDelay", 400) Send("2*4*8*16=") Sleep(2000) ; Now quit by sending a "close" request to the calculator window using the classname WinClose("[CLASS:CalcFrame]") ; Now wait for the calculator to close before continuing WinWaitClose("[CLASS:CalcFrame]") ; Finished! (The rest of the script is probably coloured as strings or comments but line 15 has code that doesn't stay in just one line but there's no such thing in the editor)
  3. I don't know if anyone has updated this thread but, Tools>SciTeTools>EditorColours> (click on the change scheme button at the bottom left of the window) > SciTe auto darkmode (or something similar). Im very tired rn so I'm sorry if I didn't catch anyone else say this already
×
×
  • Create New...