ianC Posted March 1, 2023 Posted March 1, 2023 Hello, I may have missed something (can't find in forum or doc), but is there a way to play a macro multiple times without typing : "Some text : " & @TAB & @TAB & "text again" Or "Some text" & @CRLF & @CRLF & "some other text" I imagine something like this, but tried several things that didn't worked : "Some text : " & @TAB*2 & "Some other text"
Developers Jos Posted March 1, 2023 Developers Posted March 1, 2023 What is a Macro? You simply posted some string without any function, so try first to explain exactly what you are doing and post the full code you have tried and isn't working. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Solution RTFC Posted March 1, 2023 Solution Posted March 1, 2023 #include <String.au3> MsgBox(0,"",_StringRepeat(@TAB,2) & "hello") My Contributions and Wrappers Spoiler BitMaskSudokuSolver BuildPartitionTable CodeCrypter CodeScanner DigitalDisplay Eigen4AutoIt FAT Suite HighMem MetaCodeFileLibrary OSgrid Pool RdRand SecondDesktop SimulatedAnnealing Xbase I/O
Danp2 Posted March 1, 2023 Posted March 1, 2023 Maybe he's trying to trigger a predefined "macro"? In that case, take a look at HotKeySet. Latest Webdriver UDF Release Webdriver Wiki FAQs
ianC Posted March 2, 2023 Author Posted March 2, 2023 I'm talking about theses macro : https://www.autoitscript.com/autoit3/docs/macros/Directory.htm @RTFC pointed out a working solution, thanks 👍
TimRude Posted March 4, 2023 Posted March 4, 2023 On 3/1/2023 at 8:02 AM, ianC said: I imagine something like this, but tried several things that didn't worked : "Some text : " & @TAB*2 & "Some other text" If you're just wanting a quick way of adding 2 @TAB's without having to type them, try typing tab2 and then pressing the spacebar in Scite. Want 2 @CRLF's? Try cr2 and then spacebar. Then have a look towards the bottom of the Options menu for this: There you can see other quick shortcuts to typing things in Scite. Assuming, that is, that you've installed the full version of SciTE4AutoIt3 from https://www.autoitscript.com/site/autoit-script-editor/downloads/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now