Search found 494 matches
- 26 Apr 2020, 14:01
- Forum: Scripts and Functions (v1)
- Topic: NotStr() : Switch between multiple states
- Replies: 43
- Views: 6236
Re: NotStr() : Switch between multiple states
Is it also possible to add an option for the direction ? I had thought of that. Too costly (codewise) to implement. You're right, but it's worth it. :roll: I managed to make one that can go backwards. 8-) I also added a few extra options like the possiblity to disable wrapping around the end ... Cy...
- 24 Apr 2020, 12:22
- Forum: Scripts and Functions (v1)
- Topic: NotStr() : Switch between multiple states
- Replies: 43
- Views: 6236
Re: NotStr() : Switch between multiple states
Did you try my GUI demo? I just reverse the string instead of trying to read reverse. Very good idea. 8-) I will try to find a field reverser function or maybe someone else can make one. How hard is to try a 2 line examples posted with the title: Functionality explained with examples:? I only talk ...
- 24 Apr 2020, 08:13
- Forum: Scripts and Functions (v1)
- Topic: NotStr() : Switch between multiple states
- Replies: 43
- Views: 6236
Re: NotStr() : Switch between multiple states
Thanks for this usefull function :D :thumbup: Is it also possible to add an option for the direction ? :think: NotStr(S:="", Z:="", D:="|", dir:="1") dir = 1 ; cycle forward dir = -1 ; cycle backward dir = 0 ; reset/restore starting pos Yes. My description was bad . The cover of the book is also imp...
- 23 Apr 2020, 15:31
- Forum: Ask for Help (v1)
- Topic: [Function] How to convert MergeVarsByLines() to a variadic function ? Topic is solved
- Replies: 2
- Views: 330
Re: [Function] How to convert MergeVarsByLines() to a variadic function ? Topic is solved
@ swagfag
Thank you so much. The code is black magic for me but it works very well.![I'm so happy I could shoop a rainbow! :superhappy:](./images/smilies/superhappy.gif)
Thank you so much. The code is black magic for me but it works very well.
![I'm so happy I could shoop a rainbow! :superhappy:](./images/smilies/superhappy.gif)
- 23 Apr 2020, 08:20
- Forum: Ask for Help (v1)
- Topic: [Function] How to convert MergeVarsByLines() to a variadic function ? Topic is solved
- Replies: 2
- Views: 330
[Function] How to convert MergeVarsByLines() to a variadic function ? Topic is solved
Hello, This function MergeVarsByLines(var1,var2) can merge 2 vars line by line. Is it possible to convert it to a variadic function ? MergeVarsByLines(Vars*) for ex. output:=MergeVarsByLines(questions, answers, comments...) questions= ( From which language is the word ‘ketchup’ derived? Who portraye...
- 05 Apr 2020, 09:10
- Forum: Scripts and Functions (v1)
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 21
- Views: 5209
Re: LineStr() : Extract any line or consecutive lines from text
I've modeled LineStr() after SubStr() and I feel it is best to keep it that way. You're right. I hadn't thought of that. :facepalm: This function should mimic substr() as much as possible. :thumbup: I found a similar function that can solve my problem with a dumpfile. LineDelete() by Cuadrix https:...
- 04 Apr 2020, 11:51
- Forum: Scripts and Functions (v1)
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 21
- Views: 5209
Re: LineStr() : Extract any line or consecutive lines from text
Great ! Thanks for sharing!
Is it also possible to add an option to also remove them on the fly?
I mean something that acts like the pop() function for objects.
LineStr(ByRef T, S, C:="", D:="`n", Remove:=false)
Cheers
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Is it also possible to add an option to also remove them on the fly?
![Thinking :think:](./images/smilies/icon_think.gif)
I mean something that acts like the pop() function for objects.
LineStr(ByRef T, S, C:="", D:="`n", Remove:=false)
Cheers
- 31 Mar 2020, 17:26
- Forum: Scripts and Functions (v1)
- Topic: [Gdip] How to draw shapes and lines with the mouse
- Replies: 25
- Views: 9086
Re: [Gdip] How to draw shapes and lines with the mouse
Could you control the pen in powerpoint slide show window to draw these shapes without the red line? No. You still have to draw manually (saving to a file is not implemented yet). :roll: Here is a slightly altered version with the ability to change the color, alpha, and pen thickness on the fly. Th...
- 29 Mar 2020, 17:52
- Forum: Scripts and Functions (v1)
- Topic: [Gdip] How to draw shapes and lines with the mouse
- Replies: 25
- Views: 9086
[Gdip] How to draw shapes and lines with the mouse
Hello, After reading this topic https://www.autohotkey.com/boards/viewtopic.php?t=60827 I was curious to find a way to draw several shapes and lines with the mouse and display them at the same time on the screen. :think: I don't know if it's the right method, but the BitBlt() function seems to do th...
Re: assert()
but for what purpose? to make one-liners 8-) Probably Exit ? return(){ Exit } Great! That seems to solve the problem. :thumbup: I'll add it to my personal library. :D here is a test script (set myvar to true and then to false and see what happens) #singleinstance force myvar:=true (myvar=1) ? msgbo...
Re: assert()
I use similar functions myself exitapp() msgbox()... , these small functions are very useful to create ternary and one-liners. I'm still wondering why they're not built in... :think: here an example: #singleinstance force myvar:=true (myvar=1) && msgbox("myvar is true") && beep() && assert(false) ms...
- 02 Mar 2020, 14:52
- Forum: Gaming Scripts (v1)
- Topic: [Game] List of all AHK Games
- Replies: 54
- Views: 78897
Re: [Game] List of all AHK Games
New Game:
AHK Flappy Bird![Bravo! :bravo:](./images/smilies/bravo.gif)
AHK Flappy Bird
![Bravo! :bravo:](./images/smilies/bravo.gif)
- 20 Feb 2020, 05:52
- Forum: Scripts and Functions (v1)
- Topic: [ Game ] AHK Flappy Bird
- Replies: 11
- Views: 5693
Re: [ Game ] AHK Flappy Bird
Awesome, thanks for sharing. ![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
- 17 Feb 2020, 11:25
- Forum: Scripts and Functions (v1)
- Topic: [Tool] SCREENSHOT COMMENT MAKER
- Replies: 12
- Views: 2455
Re: [Tool] SCREENSHOT COMMENT MAKER
rommmcek Thanks for your suggestion, i was also thinking of doing something similar. 8-) I tested your script, it works well, the only problem is when you select the white color the text becomes invisible in the typing area. Do you have a solution? :roll: I'm also thinking about improving the speed...
- 16 Feb 2020, 13:28
- Forum: Scripts and Functions (v1)
- Topic: [Tool] SCREENSHOT COMMENT MAKER
- Replies: 12
- Views: 2455
Re: [Tool] SCREENSHOT COMMENT MAKER
Hello, Many thanks for the feedback :) New version 2.0 :D added an update button to modify the last subtitle object without creating a new one choice of other fonts and more colors change font size, ouline size and colors toggle outline, bold, italic, underline and background added a setting section...
- 13 Feb 2020, 07:06
- Forum: Scripts and Functions (v1)
- Topic: [Tool] SCREENSHOT COMMENT MAKER
- Replies: 12
- Views: 2455
[Tool] SCREENSHOT COMMENT MAKER
Hello, I made this script to be able to insert colored comments before making a screenshot 8-) Files Required: Subtitle.ahk (by iseahound) installed in AHK default Lib folder (and also GDI) You can download the lib files here:... https://github.com/iseahound/Subtitle How to use: Press win + alt + c ...
- 05 Feb 2020, 05:58
- Forum: Ask for Help (v1)
- Topic: Multicolor text Topic is solved
- Replies: 6
- Views: 754
Re: Multicolor text Topic is solved
Use monospaced font + colored layers + function sliceword() 8-) gui, font, s12, consolas var:="This is a test.`nHow can i coloring the words in the parts of sentence ?" gui, add, text, w500 h60 , % var gui, add, text, xp yp wp hp cred backgroundtrans , % SliceWord(var, " a | can |words |of ") gui, a...
- 29 Dec 2019, 03:30
- Forum: Scripts and Functions (v1)
- Topic: [Tool] Macro Commander v3.0
- Replies: 17
- Views: 8918
Re: [Tool] Macro Commander v3.0
New Version v3.0 8-) :D Added possibility to loop specific macro command line add dollar sign at the beginning of a macro command line followed by the desired number of repetitions. (for ex. :$25) Added RunOnce command to run a program only once Added SleepOnce, (millisec) ; to sleep only once (val...
- 24 Dec 2019, 04:17
- Forum: Scripts and Functions (v1)
- Topic: [Tool] Macro Commander v3.0
- Replies: 17
- Views: 8918
Re: [Tool] Macro Commander v2.8
New Version v2.8 8-) Modified the way to send a text : quotation marks are now replaced by parenthesis to send a string (place a text in parenthesis to sendraw it) :!: Note: this can cause incompatibility with previous saved macros but solve the problem for sending quoted text. Added WaitForColor c...
- 26 Nov 2019, 08:33
- Forum: Scripts and Functions (v1)
- Topic: AHK Screen Capture Tool
- Replies: 8
- Views: 12635
Re: AHK Screen Capture Tool
Hello, feiyue. Very nice script. Thanks for sharing :thumbup: I did a function to show the pixel again. when you click on the colored square next to the copy button, it will show you the pixel again. (if you load the corresponding image.) It's still relatively experimental and needs some adjustments...