
abokdl
Members-
Posts
16 -
Joined
-
Last visited
Everything posted by abokdl
-
AutoIt Script blocks AutoHotKey's Hotstring func?
abokdl replied to abokdl's topic in AutoIt General Help and Support
No. But what you say makes sense. I don't know neither about a autocorrect feature in AutoIt. Would be cool if there was one though. -
AutoIt Script blocks AutoHotKey's Hotstring func?
abokdl replied to abokdl's topic in AutoIt General Help and Support
"of forgotten ceen" was just a example. It could be "Great day", or "Nice car" or any sentence containing space. Sorry if my explanation is not clear enough Melba. It isn't easy to explain what the Script does at all. I use the Script for programms like Notepad++. It makes typing long sentences easier for me. Very useful. Sorry Melba, what do you mean with Windows and AutoIt GUI? Does my Script have a so called GUI? Probably not, or? And how would the Script look like to get it working from your point of view, if I may ask? Well. As far as I know, AutoIt can't autocorrect "typos" or however you want to call it. That's why I'm using AutoHotKey's Auto-Correct function. You are right careca, as Melba already mentioned, switching to AutoIt overall may fix this problem. That'd be "alot" of work, since I don't know how to do it on my own -
AutoIt Script blocks AutoHotKey's Hotstring func?
abokdl replied to abokdl's topic in AutoIt General Help and Support
Thanks for your example, careca. I'm using AutoHotKey and AutoIt because there used to be a AutoHotKey script that caused problems with its HotStrings, so that (example) "ofc" would turn out to be "of forgotten ceen" instead of "of forgotten ceen3". Idiscussed the problem on their forums. But nobody was able to help me. So I switched to AutoIt and it solved my problem. Someone modified my old AutoIt script, then added these "Pause/Resume" functions as you can see in the Script I posted above, the EXACT way I always wanted it to be. What the script does is it puts a "3" at the end of any sentence you type. When typing sentences like "Hello forum" and you would press Enter, it would look like "Hello forum3" everytime, but if you'd type "Hello forum1", it would avoid the "3" at the end, so that it wouldn't look like "Hello forum13", you know? And the space func is very important, because when typing sentences like "City small1 and big" it'd look like "City small1 and big3" since the Spacebar resumed the "3" function. But I think you understand the Script's explanation better than my one. And yes, I think using one single script and language (AutoIt, right?) wouldn't have caused this. But, I mean, isn't there any Option that could avoid AutoIt from disabling access to its HotKeys set? My god, that'd make things way way easier for me. You really don't know. -
AutoIt Script blocks AutoHotKey's Hotstring func?
abokdl replied to abokdl's topic in AutoIt General Help and Support
That is a good idea careca. Unfortunately, I don't know how to build it in. I literally have no idea. I couldn't imagine how the Script would look like. Can you help me there a little bit? _ispressed could really solve this. Just hope it will "unreserve" these HotKeys. So, I basically JUST want both programms (AutoHotkey and AutoIt) to have access to the same keys. Even If Not $g_bPause Then Send("3") is reserving "3", so that one of my other AutoHotKey scripts doesn't trigger a special function since it is reserved by AutoIt. -
AutoIt Script blocks AutoHotKey's Hotstring func?
abokdl replied to abokdl's topic in AutoIt General Help and Support
I already did. AutoIt has nothing to do with the AutoHotKey script at all. I believe it's because it reserved HotKeys, so that other programms, for example AutoHotKey, doesn't have access to these HotKeys. When you type "ofc" it turns into "of forgotten ceen". Look at the AutoHotKey script. But since AutoIt has HotKeySet("{SPACE}", "_space") it turns out to be "offorgottenceen", since it doesn't has access to the Spacebar. I think only a true pro could solve this. -
-
Hola. For some reason I can't add a Pause/Resume func to my script. It always says that a variable was used without being declared, but however. What I'm trying to do is, I always want to pause the script when "1" is pressed. It should only pause the script, not resume when pressing it again. And I always want to resume the script when Enter or Space is pressed. So let's say you are going to type "Hello people" it would look like "Hello people3" (check script), and when I press 1 it should look like "Hello people". And when pressing enter it should still look like "Hello people", ENTER should only resume the script after I already paused the script and resume overall, so that it would NOT look like "Hello people3" although you have previously paused the func! I would be VERY thankful if one of you pros would help me out with this. You really don't know how thankful I would be! If you have any questions, go on and ask. HotKeySet("{ENTER}","_enter") HotKeySet("{ESC}","_exit");Exit with ESC While Sleep(100);Sleep WEnd Func _enter() HotKeySet("{ENTER}");Hotkey Send("3{ENTER}");Send 3 and afterwards Enter HotKeySet("{ENTER}","_enter");Enter EndFunc Func _exit() Exit;Bye! EndFunc
-
Oh okay, thanks. For some reason "?" still doesn't work for me. I honestly have no idea why. "?" should just trigger TogglePaus, you know. Do you have any idea why it couldn't be working? Regarding the Spacebar, I removed the HotKey. I'm trying to find a way to not make the Spacebar reserved by AutoIt, also basically I should still be able to use the Spacebar, but at the same time it should trigger the Pause func as well. HotKeySet("{ENTER}", "_enter") HotKeySet("?", "_TogglePause") Global $Paused = False While 1 Sleep(1) ; WEnd Func _enter() HotKeySet("{ENTER}") If Not $Paused Then Send("3") ;Send 3 EndIf Send("{ENTER}") HotKeySet("{ENTER}", "_enter") EndFunc ;==>_enter Func _TogglePause() _IsPressed ( 20 [, $vDLL = 'user32.dll'] ) $Paused = Not $Paused Return EndFunc ;==>_TogglePaus This is the script at the moment. I'm sorry if it looks bad, I'm really trying my best. I really want to get this working mate!
-
Thanks for the tip! That helped me alot! HotKeySet("{ENTER}", "_enter") HotKeySet("{ESC}", "_exit") ; HotKeySet("{?}", "_TogglePause") HotKeySet("{SPACE}", "_TogglePause") Global $Paused = False While 1 Sleep(100) ; WEnd Func _enter() ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : _enter() ' & $Paused & @CRLF) ;### Debug Console HotKeySet("{ENTER}") If Not $Paused Then Send("3") ;Send 3 EndIf Send("{ENTER}") HotKeySet("{ENTER}", "_enter") EndFunc ;==>_enter Func _exit() Exit EndFunc ;==>_exit Func _TogglePause() $Paused = Not $Paused ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : _TogglePause() ' & $Paused & @CRLF) ;### Debug Console Return $Paused EndFunc ;==>_TogglePaus I believe I'm almost done. I just need to figure out a few things. Can you only help me with two things? I decided to change "F2" into "?", but that does not work for me. I googled but I couldn't find the question mark. As I understand, it's not even possible? Or did I misunderstand something? Also "SPACE" resumes the function which is very nice, but Space is basically broken then. I can't type sentences like "What's up guys." It'd look like "Whatsupguys." D:
-
I don't have any issues with the script. I just want to improve it. I have tried adding a Resume/Pause function, but it seems I can't find a working one. I need it for Notepad. This is how my script currently looks like: HotKeySet("{ENTER}","EnableSend2") HotKeySet("{ENTER}","_enter") HotKeySet("U","_StopSend") HotKeySet("[Backspace]","_EnableSend") HotKeySet("{ESC}","_exit"); HotKeySet("{F11}","_TogglePause") While Sleep(100); WEnd Func _enter() HotKeySet("{ENTER}"); Send("3{ENTER}");Send 3 HotKeySet("{ENTER}","_enter"); EndFunc Func _exit() Exit EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0); Doesn't work(?) WEnd ToolTip("") EndFunc Func EnableSend() EndFunc; Don't know what to put in here Func StopSend() EndFunc; Don't know what to put in here Func EnableSend2() EndFunc; Don't know what to put in here I edited it a bit. I think I need to make a function that enables, or disables a other function. I'm not sure. Can you help me a bit? Pretty complicated if you ask me. :/
-
What's up everyone. HotKeySet("{ENTER}","_enter") HotKeySet("{ESC}","_exit");Exit with ESC While Sleep(100);Sleep WEnd Func _enter() HotKeySet("{ENTER}");Hotkey Send("3{ENTER}");Send 3 and afterwards Enter HotKeySet("{ENTER}","_enter");Enter EndFunc Func _exit() Exit;Bye! EndFunc I want to to change this script so, that when I press "U" the function _enter is going to be paused, it should basically no longer send "3" until I press "Backspace", as it should be resumed. Not only that, let's say I press "Enter" (for example, it'd look like this: You type "hello", it's going to be "hello3", but when I press "U" it should look like "hello", but Enter should resume the function so that the next would look like "hello3". Backspace should be like Enter, just so, for example, if you'd type "hello" and you press "U", it would exclude "3" from being placed at the end of a sentence, but now, you didn't press Enter right? So Backspace should function like Enter, it should resume function _enter. It should always be like this. Sorry if my explanation isn't good enough. I tried to explain it as best as I can. If you can help me out with this, I would TRULY appreciate it!
-
dywywwwywwywy ywdwywy
-
I want to put "3" at the end of a sentence everytime I press Enter. Let's say I'm starting a sentence with "Hello", it would end with "Hello3". Why I want to do it doesn't really matter, doesn't it? Anyways, here's the script: {ENTER}:: Send(".") Send("{ENTER}") I'm very new into AutoIt, so don't be surprised. Overall, where do I exactly have to start with?