Search found 144 matches

by Ridwan
06 Feb 2020, 06:10
Forum: Ask for Help (v1)
Topic: Create new sub folders automatically
Replies: 4
Views: 1048

Re: Create new sub folders automatically

Try this

Code: Select all

FileCreateDir, D:\Projects\Documents\Design\Workspace\Info
by Ridwan
06 Feb 2020, 05:59
Forum: Ask for Help (v1)
Topic: Script: Clicking Control Twice Opens a Program. Anyway to close it?
Replies: 6
Views: 1026

Re: Script: Clicking Control Twice Opens a Program. Anyway to close it?

How about this?

Code: Select all

#If !WinActive("Ditto")

Ctrl::
    If (A_ThisHotkey = A_PriorHotkey and A_TimeSincePriorHotkey < 300)
        Run, C:\program files\Ditto\Ditto.exe /Open
Return

#If WinActive("Ditto")

Ctrl::Run, C:\program files\Ditto\Ditto.exe /Close

#If
by Ridwan
23 Oct 2019, 10:30
Forum: Ask for Help (v1)
Topic: Want to use : before ::
Replies: 3
Views: 727

Re: Want to use : before ::

Or with the alternative with Hotkey command.

Code: Select all

HotKey, :, Colon

Colon:
    MsgBox, Executed
Return
by Ridwan
08 Jul 2019, 04:32
Forum: Ask for Help (v1)
Topic: help please
Replies: 1
Views: 554

Re: help please

This code will send left mouse click (max 10 times) as long you hold down the Ctrl button, but if Ctrl button released before the final loop (10-loop), it will also stop at that point. ~Ctrl:: Loop, 10 { MouseClick Sleep, 200 } Until GetKeyState("Ctrl") = False KeyWait, Ctrl Return
by Ridwan
07 Jul 2019, 21:28
Forum: Ask for Help (v1)
Topic: Occasional Double Click Problem
Replies: 6
Views: 1863

Re: Occasional Double Click Problem

How about using another hotkey, like Win (windows logo)?
Submit a bug will solve the problem, but i think it need some (or long) time to fix it.
by Ridwan
05 Jul 2019, 04:05
Forum: Ask for Help (v1)
Topic: Simple Window Changing Script for Everquest
Replies: 1
Views: 1558

Re: Simple Window Changing Script for Everquest

You can use WinActivate . For example, this line activate window with title SpeedCrunch with Numpad1 as it Hotkey. I use SpeedCrunch as the example because i don't have EverQuest in my PC. Numpad1::WinActivate, SpeedCrunch But if you open 4 EverQuest window and all it's title is exactly same, than y...
by Ridwan
05 Jul 2019, 02:04
Forum: Ask for Help (v1)
Topic: Rapid fire click script help please and ty
Replies: 2
Views: 965

Re: Rapid fire click script help please and ty

I don't know why, but your script works as expected for me.
by Ridwan
22 Jun 2019, 12:42
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

Good, i will watch this topic. :)
by Ridwan
22 Jun 2019, 12:00
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

This code is getting us closer to solution - it does paste/send (whichever is the proper term) the data, however after pasting from first column it hits Enter key 3 times, then after pasting from second column it hits Enter key 4 times for each row of data. Whereas what is needed - is to hit Enter ...
by Ridwan
22 Jun 2019, 11:07
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

How about this? I change the delimiter to `r%A_Tab% just like your previous code. SendMode, Input wait_x := 300 wait_y := 100 F1:: column_1 := [], column_2 := [] Loop, Parse, Clipboard, `r%A_Tab% { row := StrSplit(A_LoopField, A_Tab) column_1.Push(row[1]) column_2.Push(row[2]) } ; removing last arra...
by Ridwan
22 Jun 2019, 10:36
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

CoolVibe wrote:
21 Jun 2019, 21:42

Code: Select all

F1::
Loop, parse, clipboard , `r%A_Tab%
{
send, %A_LoopField%
sleep, 1000
}
return
From your previous code, is `r%A_Tab% use as the line delimiter? Not `r`n?
by Ridwan
22 Jun 2019, 09:50
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

CoolVibe wrote:
22 Jun 2019, 09:38
Right now my source of data is actually Microsoft Works, not Excel
Should that make any difference?
I think it's okay, as long each line is separated by Tab.
btw, can you test it with excel to see if it works?
by Ridwan
22 Jun 2019, 09:19
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

Oh, i forget about that. Actually i copy the excel table and test it with Send command on notepad, not paste it.
by Ridwan
22 Jun 2019, 04:24
Forum: Ask for Help (v1)
Topic: Action on release (help!)
Replies: 10
Views: 5552

Re: Action on release (help!)

Strange, works as expected in my PC..,
by Ridwan
21 Jun 2019, 23:12
Forum: Ask for Help (v1)
Topic: Parsing Clipboard... with a twist
Replies: 13
Views: 3393

Re: Parsing Clipboard... with a twist

Something like this? SendMode, Input column_1 := [], column_2 := [] wait_x := 300 wait_y := 100 F1:: Loop, Parse, Clipboard, `n, `r { row := StrSplit(A_LoopField, A_Tab) column_1.Push(row[1]) column_2.Push(row[2]) } ; removing last array element (usually empty) column_1.Pop(), column_2.Pop() Loop, %...
by Ridwan
21 Jun 2019, 22:08
Forum: Ask for Help (v1)
Topic: Action on release (help!)
Replies: 10
Views: 5552

Re: Action on release (help!)

How about this?

Code: Select all

x::Send, z
x Up::Send, y
by Ridwan
21 Jun 2019, 18:22
Forum: Ask for Help (v1)
Topic: How to set same shortcut (^q) to send one command when single pressing, and another when holding ^ and pressing q twice? Topic is solved
Replies: 6
Views: 1518

Re: How to set same shortcut (^q) to send one command when single pressing, and another when holding ^ and pressing q tw Topic is solved

#MaxThreadsPerHotkey, 2 Just need to declared once for each file. KeyPress := 0, running := False also need to declared once at the beginning, but one for each Hotkey. If you need more, like Ctrl + K than you will need to add different variable, for example: KeyPress_K := 0, running_K := False and ...
by Ridwan
20 Jun 2019, 23:10
Forum: Ask for Help (v1)
Topic: How to set same shortcut (^q) to send one command when single pressing, and another when holding ^ and pressing q twice? Topic is solved
Replies: 6
Views: 1518

Re: How to set same shortcut (^q) to send one command when single pressing, and another when holding ^ and pressing q tw Topic is solved

Try this. If you press Ctrl + Q twice within 300 milliseconds, the MsgBox will show different text. But if you need the single press mode, than you will need to press Ctrl + Q , release it, and wait for 300 milliseconds. #MaxThreadsPerHotkey, 2 KeyPress := 0, running := False ^q:: KeyPress++ If (run...

Go to advanced search