ianC 0 Posted March 1 Share Posted March 1 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" Link to post Share on other sites
Developers Jos 2,848 Posted March 1 Developers Share Posted March 1 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. Link to post Share on other sites
Solution RTFC 466 Posted March 1 Solution Share Posted March 1 #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 Link to post Share on other sites
Danp2 1,382 Posted March 1 Share Posted March 1 Maybe he's trying to trigger a predefined "macro"? In that case, take a look at HotKeySet. WebDriver UDF [GH&S] Latest version Wiki FAQs Link to post Share on other sites
ianC 0 Posted March 2 Author Share Posted March 2 I'm talking about theses macro : https://www.autoitscript.com/autoit3/docs/macros/Directory.htm @RTFC pointed out a working solution, thanks 👍 Link to post Share on other sites
TimRude 14 Posted March 4 Share Posted March 4 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/ Link to post Share on other sites
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