Search found 36 matches

by neokix
04 Jan 2023, 21:54
Forum: Ask for Help (v1)
Topic: Converting from "gosub" to "functions" Topic is solved
Replies: 12
Views: 1169

Re: Converting from "gosub" to "functions" Topic is solved

@mikeyww , thank you, and yes, I totally forgot about Clipwait, I was just using Sleep :| .
Also, I didn't know that you can put multiple actions(?) at once in the single line (I'm assuming it's also the benefit of functions.)
by neokix
04 Jan 2023, 21:28
Forum: Ask for Help (v1)
Topic: Converting from "gosub" to "functions" Topic is solved
Replies: 12
Views: 1169

Re: Converting from "gosub" to "functions" Topic is solved

You can also use the clipboard to send text. I was using Send and SendInput and sometimes it was really laggy. with ahk v1 Send(What) { Clipboard := What Send, ^v } XMCQCX , thank you. I've never though of using Cliboard :shock: Yes, Send itself feels a bit raggy (even without Sleep) and sort of un...
by neokix
04 Jan 2023, 11:21
Forum: Ask for Help (v1)
Topic: Converting from "gosub" to "functions" Topic is solved
Replies: 12
Views: 1169

Re: Converting from "gosub" to "functions" Topic is solved

Would do: #Requires AutoHotkey v2.0 1::sendsyldescription("hello template 1") 2::sendsyldescription("hello template 2") 3::sendsyldescription("hello template 3") ;So it's where Gosub goes. sendsyldescription(com) { Sleep 600 Send '{Text}' com Sleep 100 } thank you mikeyww , the "Send" part is more ...
by neokix
04 Jan 2023, 11:12
Forum: Ask for Help (v1)
Topic: Converting from "gosub" to "functions" Topic is solved
Replies: 12
Views: 1169

Re: Converting from "gosub" to "functions" Topic is solved

@swagfag, thank you for quick reply. It's jaw-dropping how compact it is, and now I think I understand why it's preferred over gosubs; using gosub feels more simple in a primitive way, if that makes sense. Anyway, I can start to tinker with it now. Thanks again!
by neokix
04 Jan 2023, 10:07
Forum: Ask for Help (v1)
Topic: Converting from "gosub" to "functions" Topic is solved
Replies: 12
Views: 1169

Converting from "gosub" to "functions" Topic is solved

Hello. I'm a noob ahk v1 user and also an avid "Gosub" user :shh: . But with v2 released and "Gosub" removed, it's my time to learn "functions". :thumbup: But I am too dumb to understood the concept of "functions" as well as why it's removed (even after I read those reasons of removing it) :sick: . ...
by neokix
16 Dec 2019, 10:01
Forum: Ask for Help (v1)
Topic: how to get Chrome URL
Replies: 3
Views: 541

Re: how to get Chrome URL

Hi.
The easiest way to get URL from Chrome is to use "ctrl+l" and "ctrl+c".
It's so basic but it works, so it you want a quick solution, try it!
Hope it helps.

Code: Select all

Esc::
Winactivate, Chrome
Sleep, 200
Send, ^l
Sleep, 200
Send, ^c
;URL is now copied to your clipboard
return
by neokix
19 Feb 2019, 09:45
Forum: Ask for Help (v1)
Topic: looking for a way to redo an action if the first try failed Topic is solved
Replies: 2
Views: 848

Re: looking for a way to redo an action if the first try failed Topic is solved

Hi. I'm not sure if I understand your situation or what you want to do, but If I want to check and re-do something until I get the result, I would probably use "While" with ErrorLevel. I cannot implement your code so it's just basic concept. ;<<<Check if it's working While (Errorlevel = 1) { ; <<<re...
by neokix
19 Feb 2019, 09:35
Forum: Ask for Help (v1)
Topic: New, want to learn!
Replies: 1
Views: 618

Re: New, want to learn!

Hi! If you are really new, probably start with the tutorial that comes with AHK help file. If you know how to script, I think Helbent's YouTube tutorial has lots of examples, also I think you find his work useful. CivReborn - YouTube : https://www.youtube.com/user/CivReborn I've been thinking link t...
by neokix
22 Dec 2018, 04:27
Forum: Editors
Topic: Visual studio Vs Sublime Vs Scite. Fight!
Replies: 23
Views: 16902

Re: Visual studio Vs Sublime Vs Scite. Fight!

Hi. I vote for AHK-studio too, because of its simplicity. Though, it has some errors when it comes to searching and replacing. I was a fun of Scite4AutoHotkey, but recent Windows Update(?) made it full of error messages.
by neokix
16 Dec 2018, 06:52
Forum: Ask for Help (v1)
Topic: Need help with the Cursair Scimitar Pro Mouse
Replies: 3
Views: 1433

Re: Need help with the Cursair Scimitar Pro Mouse

Hi. I used to use a Corsair's keyboard with multiple function keys. Because that keyboard didn't have onboard memory/chip, f13-f24 (which I bound those keys by using Corsair software) didn't work after I closed that software. I'm thinking same thing happened in your case, which means unfortunately, ...
by neokix
16 Dec 2018, 06:44
Forum: Ask for Help (v1)
Topic: Wait for GUI input
Replies: 4
Views: 1882

Re: Wait for GUI input

Hi again. I'm still thinking that "SetTimer" command does nothing, because if the "Settimer"commands leads to the subroutine "Foldermon", it loops again and again without any incubation(?) period. So, if I were you, I would try something like this without using SetTimer. Loop, %pngPath% ;or Loop, Fi...
by neokix
15 Dec 2018, 08:24
Forum: Ask for Help (v1)
Topic: Different button bindings
Replies: 3
Views: 926

Re: Different button bindings

hmmm I assume you need some sort of "switcher". it is actually quite complex. From my limited experience, the easiest way is to create Gui for #IfWinExist. Something like this. !1:: Gui, switcher: New, , switcher Gui, Show return !2:: Gui, switcher:destroy return #IfWinExist, switcher Space:: { ;wha...
by neokix
15 Dec 2018, 08:13
Forum: Ask for Help (v1)
Topic: click help TT
Replies: 1
Views: 591

Re: click help TT

The easiest way to do clicking is to use "MouseClick" command.

https://autohotkey.com/docs/commands/MouseClick.htm
by neokix
15 Dec 2018, 08:08
Forum: Ask for Help (v1)
Topic: Wait for GUI input
Replies: 4
Views: 1882

Re: Wait for GUI input

Hi. As far as I can see, probably you need to specify "Files" just after the Loop command. In Help, it says, Loop, Files, FilePattern [, Mode] https://autohotkey.com/docs/commands/LoopFile.htm I hope it will prevent from looping. But why do you need to use settimer if you want to loop the block all ...
by neokix
10 Dec 2018, 00:49
Forum: Ask for Help (v1)
Topic: Background Script help
Replies: 1
Views: 822

Re: Background Script help

Hi. I'm not sure this works, but you can use "ControlSend" to send texts and hotkeys to the program that are running background. It works most of the times, but sometimes doesn't. But try replace your "SendRaw" to this anyway. https://autohotkey.com/docs/commands/ControlSend.html You need to look at...
by neokix
10 Dec 2018, 00:37
Forum: Ask for Help (v1)
Topic: can Loop help repeated "Send" more steady
Replies: 8
Views: 1926

Re: can Loop help repeated "Send" more steady

Sometimes putting "Sleep" between each keypress solved problems (at least for me).
So it's like this.

Code: Select all

Loop, 17
{
  Send {Tab}
  Sleep, 100 ;or 200 or 300 or 500 depending on programs
}
But Scr1pter-san can be right. I'm not sure. Just have a try and let us know how it goes. ;)
by neokix
07 Dec 2018, 03:31
Forum: Ask for Help (v1)
Topic: Simple Script Causing Weird Behavior in eM Client Topic is solved
Replies: 3
Views: 878

Re: Simple Script Causing Weird Behavior in eM Client Topic is solved

Hi. Since you can open the menu of eM Client with single Alt tap, I'm thinking "Alt Up" is acting weird.
Probably you can use #MenuMaskKey to prevent Menu from appealing. Consult with Help file. Hope this helps.

https://autohotkey.com/docs/commands/_MenuMaskKey.htm
by neokix
07 Dec 2018, 02:39
Forum: Ask for Help (v1)
Topic: String variables using CTRL, ALT, SHIFT
Replies: 2
Views: 1812

Re: String variables using CTRL, ALT, SHIFT

Hi. I'm not sure what you want to do with your script, so I'm gonna write bunch of working examples with explanations. Hope this helps. ;Pressing Ctrl+Alt+Q at the same time to send "Hello!" ^!Q:: Send, Hello! return ;Pressing Shift+Ctrl+Alt+Q at the same time to send "Hello! again!" +^!Q:: Send, He...
by neokix
07 Dec 2018, 02:28
Forum: Ask for Help (v1)
Topic: Help w/ Autoclicker Topic is solved
Replies: 3
Views: 954

Re: Help w/ Autoclicker Topic is solved

Hi. Try this.

Code: Select all

LButton::
+LButton::
;<yourscripthere>
return
You can set multiple Hotkeys by using :: in multiple line.

Or if you want to execute Shift + LButton repeatedly while pressing Shift + LButton, you need another line to do so.
by neokix
07 Dec 2018, 02:23
Forum: Ask for Help (v1)
Topic: copy the selection from webpage and pasting in sharepoint Topic is solved
Replies: 2
Views: 945

Re: copy the selection from webpage and pasting in sharepoint Topic is solved

Hi. It can be done by "ControlSend" command. Or, if you want to make it more simple, "WinActivate" and paste it. I think you need to do a bit of work (build the first bit of script by yourself by reading Tutorial etc ) to get help here. Show that when you are done. :) Edited : I didn't have to be me...

Go to advanced search