Search found 265 matches

by Scr1pter
Yesterday, 09:01
Forum: Ask For Help
Topic: ControlSend sends extra newlines Topic is solved
Replies: 6
Views: 113

Re: ControlSend sends extra newlines Topic is solved

What happens if you delete this line?

Code: [Select all]GeSHi © Codebox Plus

Clipboard := "`n[source]`n----`n" . Clipboard . "`n---- `n`n"


Regards
by Scr1pter
Yesterday, 07:34
Forum: Ask For Help
Topic: Need some help on a loop script Topic is solved
Replies: 3
Views: 40

Re: Need some help on a loop script Topic is solved

Nice that I could help you!
Sorry, seems I missed that, but you can easily change it - probably you've already done it :)

Regards
by Scr1pter
Yesterday, 06:36
Forum: Ask For Help
Topic: Need some help on a loop script Topic is solved
Replies: 3
Views: 40

Re: Need some help on a loop script Topic is solved

Hi, that would be the script: u:: while !stop { Send o Sleep, 120000 ; 120000 ms pause = 120 sec pause = 2 min pause Send {Numpad1} Sleep, 600000 ; 600000 ms pause = 600 sec pause = 10 min pause Send p Sleep, 120000 ; 120000 ms pause = 120 sec pause = 2 min pause } return Esc:: stop = 1 return When ...
by Scr1pter
Yesterday, 05:11
Forum: Ask For Help
Topic: Loop Left Click while Right click is pushed only
Replies: 1
Views: 19

Re: Loop Left Click while Right click is pushed only

Hi, You can check if this one will do its job: #SingleInstance force #InstallMouseHook rbutton:: while GetKeyState("rbutton", "P") { while GetKeyState("lbutton", "P") { Click Sleep, 10 } } return Keep in mind that rbutton doesn't have an own functionality anym...
by Scr1pter
Yesterday, 04:58
Forum: Ask For Help
Topic: ControlSend sends extra newlines Topic is solved
Replies: 6
Views: 113

Re: ControlSend sends extra newlines Topic is solved

Well, then try to get rid of some `n in this part of your code:

Code: [Select all]GeSHi © Codebox Plus

Clipboard := "`n[source]`n----`n" . Clipboard . "`n---- `n`n"


Regards
by Scr1pter
11 Aug 2018, 16:33
Forum: Ask For Help
Topic: Prevent multiple instances of Program
Replies: 2
Views: 53

Re: Prevent multiple instances of Program

Nice name!

You should try it with process.

Code: [Select all]GeSHi © Codebox Plus

Process, wait, Hyper.exe, 1
NewPID = %ErrorLevel%
if NewPID = 0
{
Run, "C:\Users\Alexander\AppData\Local\hyper\Hyper.exe",, Min, PID
WinWait, Hyper
WinMinimize, Hyper
}
return
by Scr1pter
11 Aug 2018, 16:12
Forum: Ask For Help
Topic: Changing Variables :Q
Replies: 2
Views: 37

Re: Changing Variables :Q

I have no idea what you're talking about, sorry. But it's not true that hotkeys disable user key input. This is why there is ~. If you use this script, Ctrl+C would still copy: ~^c:: ; Copy MsgBox, Something was copied! return You do know when and why to use variables? If you want to assign a variab...
by Scr1pter
11 Aug 2018, 16:07
Forum: Ask For Help
Topic: Hotkey to turn on/off bluetooth
Replies: 6
Views: 73

Re: Hotkey to turn on/off bluetooth

Everytime, when I want to connect it to my laptop, I need to first turn off the laptop BT toggle. And this is exactly my question. Describe how you turn it off and on. If you want a script that should do this operation, you must tell us how you do it manually. I don't know if there is an easy way, ...
by Scr1pter
11 Aug 2018, 16:01
Forum: Ask For Help
Topic: First simple script help
Replies: 1
Views: 18

Re: First simple script help

Hi, Probably it does not work because when you copy a cell from Excel, there is also a line break. Try this code: And remember that ^C would be: Ctrl+Shift+C. You must write ^c. ^j:: ; Ctrl-J to run SetKeyDelay 300,500 send, {^c}; {Ctrl Down} C {Ctrl Up} ; CTRL-C Clipboard := StrReplace(Clipboard, &...
by Scr1pter
11 Aug 2018, 08:04
Forum: Ask For Help
Topic: Freeze/Disable Mouse&keyboard movement
Replies: 3
Views: 41

Re: Freeze/Disable Mouse&keyboard movement

Be careful with Block commands. Save all opened files and be aware of the fact you might have to use the reset button of your PC. https://autohotkey.com/docs/commands/BlockInput.htm I tried it but for me it didn't work. Maybe because I'm no admin. ^s:: ; Ctrl+S BlockInput, On ; Disable keyboard and ...
by Scr1pter
11 Aug 2018, 07:54
Forum: Ask For Help
Topic: Hotkey to turn on/off bluetooth
Replies: 6
Views: 73

Re: Hotkey to turn on/off bluetooth

Not clear. Ok, are you speaking about a Bluetooth device like a USB BluetoothAdapter, or about a specific device (e.g. headphones) which is paired with your PC? You want to turn on/off Bluetooth globally with 1 key? How do you do it now? Describe, like: - Moving cursor to a specific icon - Right-cli...
by Scr1pter
11 Aug 2018, 07:39
Forum: Ask For Help
Topic: how to create an a script that allows to type 1 message by pressing a hotkey?
Replies: 1
Views: 18

Re: how to create an a script that allows to type 1 message by pressing a hotkey?

How about: $a:: Send This is a test. return ? For long messages I would prefer to store the message inside of the Clipboard and to paste it. For example: a:: clipBackup := Clipboard ; Save content of the Clipboard Clipboard = This is a very long message which will be pasted. ; Long message gets sent...
by Scr1pter
11 Aug 2018, 05:46
Forum: Ask For Help
Topic: Quick help please and ty!
Replies: 1
Views: 35

Re: Quick help please and ty!

Hi and welcome, Please use more expressive thread titles in future. E.g. "Binding key to XBox One Controller" I tried it with my XBox One Controller and I was able to do it with the normal buttons. With the axes it didn't work. It seems you have to work with GetKeyState. https://autohotkey...
by Scr1pter
11 Aug 2018, 05:04
Forum: Ask For Help
Topic: Hotkey to turn on/off bluetooth
Replies: 6
Views: 73

Re: Hotkey to turn on/off bluetooth

What do you have to do exactly to turn on/turn off bluetooth?
Clicking on some icon?
Choosing something from a menue?

Regards
by Scr1pter
11 Aug 2018, 05:02
Forum: Ask For Help
Topic: Stop ALT F4 from closing my gui
Replies: 2
Views: 39

Re: Stop ALT F4 from closing my gui

By registering to this forum and using this code:

Code: [Select all]GeSHi © Codebox Plus

!F4:: ; Alt+F4
return
by Scr1pter
11 Aug 2018, 05:01
Forum: Gaming
Topic: DLL Related - MouseMove [GAME]
Replies: 8
Views: 93

Re: DLL Related - MouseMove [GAME]

Why do you need dll for mouse move?
by Scr1pter
10 Aug 2018, 08:27
Forum: Ask For Help
Topic: Enable Mouse input\movement only when holding down button
Replies: 4
Views: 36

Re: Enable Mouse input\movement only when holding down button

You're welcome!
Yes, it's possible.
Just add ~ before rbutton.
Instead of
rbutton::
Use;
~rbutton::

Regards
by Scr1pter
10 Aug 2018, 06:32
Forum: Ask For Help
Topic: Enable Mouse input\movement only when holding down button
Replies: 4
Views: 36

Re: Enable Mouse input\movement only when holding down button

Hi, Do yourself a favor and register. It takes less than 2 minutes and you will get more help in future. You can try this code: #SingleInstance force #InstallMouseHook rbutton:: while GetKeyState("rbutton", "P") { BlockInput, MouseMoveOff } BlockInput, MouseMove return Please , w...
by Scr1pter
10 Aug 2018, 05:40
Forum: Ask For Help
Topic: Countdown Timer
Replies: 1
Views: 30

Re: Countdown Timer

Hi, Not sure about the timer. However, you could also use other ways. For example: - SoundPlay (play a specific sound file after 03:40 which reminds you) - SplashScreen (open an image after 03:40 which reminds you) - create a simple gui which pop ups after the 03:40 I mean do you really need a timer...
by Scr1pter
08 Aug 2018, 09:22
Forum: Ask For Help
Topic: 2 Auto Key Pressers in one
Replies: 1
Views: 35

Re: 2 Auto Key Pressers in one

Hi, I didn't have time to write it more professional (using functions). You can try it out: F1:: ; F1 key activates the script Loop, 2 { StartTime := A_TickCount while ElapsedTime < 6000 ; 6000 ms { ElapsedTime := A_TickCount - StartTime Send e Sleep, 10 } ElapsedTime = 0 StartTime = 0 while Elapsed...

Go to advanced search