Search found 1259 matches

by Shadowpheonix
10 Oct 2016, 10:52
Forum: Ask for Help (v1)
Topic: Creating A Mouse Delay
Replies: 1
Views: 630

Re: Creating A Mouse Delay

I am not sure I understand exactly what you are trying to accomplish. My best guess is that you are wanting something like this...

Code: Select all

$LButton::
Sleep 500
Send {LButton Down}
Return

$LButton Up::
Sleep 500
Send {LButton Up}
Return
by Shadowpheonix
10 Oct 2016, 10:47
Forum: Ask for Help (v1)
Topic: runing Windows Explorer in a dual monitor system
Replies: 1
Views: 671

Re: runing Windows Explorer in a dual monitor system

^!+F1:: SysGet, Mon1, MonitorWorkArea, 1 IfWinNotExist, ahk_id %Explorer1ID% { RunWait, Explorer.exe Sleep 250 WinWaitActive, ahk_class CabinetWClass ahk_exe explorer.exe WinGet, Explorer1ID, ID, A } WinMove, ahk_id %Explorer1ID%, , Mon1Left, Mon1Top, Abs(Mon1Right - Mon1Left), Abs(Mon1Top - Mon1Bo...
by Shadowpheonix
07 Oct 2016, 10:49
Forum: Ask for Help (v1)
Topic: How to store and send input of ready made text?
Replies: 2
Views: 717

Re: How to store and send input of ready made text?

I would do it this way... Phrase := Object() Phrase.Push(" ( First set of many lines of text )") Phrase.Push(" ( Second set of many lines of text )") Phrase.Push(" ( Third set of many lines of text )") F12:: ; Press F12 to send a random phrase. Random, CurrentPhrase, 1, % Phrase.MaxIndex() SendInput...
by Shadowpheonix
06 Oct 2016, 09:27
Forum: Ask for Help (v1)
Topic: How to get the current gui default button? Topic is solved
Replies: 35
Views: 8840

Re: How to get the current gui default button? Topic is solved

I'm wondering if there is a way to trigger a button's action, by pressing "Enter", when a given gui control such as "Edit" is focused, without changing the gui "Default Button"? I usually do something like this... $Enter:: GuiControlGet, CurrentControl, Focus If (CurrentControl = "Edit1") GoSub Sho...
by Shadowpheonix
05 Oct 2016, 09:48
Forum: Ask for Help (v1)
Topic: How to get long path from short path
Replies: 1
Views: 944

Re: How to get long path from short path

For a single file path included inside the script instead of via command line, you would use a shortened version of the code you posted. Something like this... GivenPath := "C:\PROGRA~1\Java\JDK18~1.0_1" Loop %GivenPath%, 1 LongPath = %A_LoopFileLongPath% MsgBox The case-corrected long path name of ...
by Shadowpheonix
05 Oct 2016, 09:34
Forum: Ask for Help (v1)
Topic: Control arrow keys with mouse Topic is solved
Replies: 4
Views: 1434

Re: Control arrow keys with mouse Topic is solved

Post the code you have tried and we will be able to offer further assistance. :)
by Shadowpheonix
04 Oct 2016, 16:32
Forum: Ask for Help (v1)
Topic: This does not work... any help?
Replies: 6
Views: 1421

Re: This does not work... any help?

I would try replacing Send, ^v ; run paste in word with SendInput, {Raw}%Clipboard% ; type text into word.
by Shadowpheonix
04 Oct 2016, 16:09
Forum: Ask for Help (v1)
Topic: Why "MsgBox Active" pops twice?
Replies: 8
Views: 2215

Re: Why "MsgBox Active" pops twice?

In that case, try this... #NoEnv #SingleInstance Force #Persistent GroupAdd, ProgramActivate, ahk_class AkelPad4 GroupAdd, ProgramActivate, ahk_class Notepad2 timeBetweenChecks:=1000 SetTimer,autoHide,%timeBetweenChecks% OnExit, showWhenExitApp Return autoHide: IfWinNotExist, ahk_group ProgramActiva...
by Shadowpheonix
04 Oct 2016, 10:26
Forum: Ask for Help (v1)
Topic: Send "Arrow Down" to Acrobat Reader until it reaches end of document
Replies: 6
Views: 1684

Re: Send "Arrow Down" to Acrobat Reader until it reaches end of document

While I am sure there is something better, I have used something like this in the past... OriginalClip := ClipboardAll Loop { Clipboard = Send !{PrintScreen} ClipWait, 5, 1 NewClip := ClipboardAll If (OldClip = NewClip) Break Send {PgDn} ; Do whatever you want with the current page OldClip := NewCli...
by Shadowpheonix
04 Oct 2016, 10:03
Forum: Ask for Help (v1)
Topic: Input command selective visible Topic is solved
Replies: 5
Views: 1764

Re: Input command selective visible Topic is solved

I would do it like this...

Code: Select all

Input,k,L1 T0.213
If (ErrorLevel = "Max") And (k != "s")
	Send %k%
by Shadowpheonix
04 Oct 2016, 09:12
Forum: Ask for Help (v1)
Topic: Why "MsgBox Active" pops twice?
Replies: 8
Views: 2215

Re: Why "MsgBox Active" pops twice?

Now ExitApp does not work. Icon script is still in the tray. There is no code in your script to tell it when to exit. The way you had it originally, it would produce two msgbox popups and then exit - it would not continue running. Since you have a SetTimer command in there and do not have any hotke...
by Shadowpheonix
03 Oct 2016, 09:47
Forum: Ask for Help (v1)
Topic: Why "MsgBox Active" pops twice?
Replies: 8
Views: 2215

Re: Why "MsgBox Active" pops twice?

Try this... #NoEnv #SingleInstance Force #Persistent GroupAdd, ProgramActivate, ahk_class AkelPad4 GroupAdd, ProgramActivate, ahk_class Notepad2 timeBetweenChecks:=1000 SetTimer,autoHide,%timeBetweenChecks% OnExit, showWhenExitApp Return autoHide: IfWinNotExist, ahk_group ProgramActivate return Grou...
by Shadowpheonix
30 Sep 2016, 11:55
Forum: Ask for Help (v1)
Topic: AHK GUI Text Control width?
Replies: 2
Views: 1284

Re: AHK GUI Text Control width?

It automatically wraps the text for me...

Code: Select all

Gui, New
Gui, Add, Edit, w100, ThisIsAReallyLongStringOfTextThatMeansAbsolutelyNothing!
Gui, Show
Return

GuiClose:
GuiEscape:
ExitApp
by Shadowpheonix
28 Sep 2016, 09:33
Forum: Ask for Help (v1)
Topic: GUI, checkboxes Topic is solved
Replies: 4
Views: 1369

Re: GUI, checkboxes Topic is solved

Yes, this can certainly be done.
See FileRead, FileReadLine, IniRead, or Loop (read file contents) for some possible ways to read values from a file.
See GuiControl or Control for ways to set the checkbox.
by Shadowpheonix
27 Sep 2016, 14:40
Forum: Ask for Help (v1)
Topic: AHK and Putty... Topic is solved
Replies: 4
Views: 5271

Re: AHK and Putty... Topic is solved

Here's a kludge I came up with a while back for automating logins to my company's internal putty server. This script uses the clipboard to parse the Putty window... PuttyPath = %A_ProgramFiles% (x86)\PuTTY\PUTTY.EXE IfNotExist %PuttyPath% { MsgBox, %PuttyPath% not found. ExitApp } SavedClip := Clipb...
by Shadowpheonix
27 Sep 2016, 12:14
Forum: Gaming Help (v1)
Topic: Bind for rapid key-presses
Replies: 2
Views: 1117

Re: Bind for rapid key-presses

When searching, look for "rapid fire", and you should quickly find the info you need.
by Shadowpheonix
26 Sep 2016, 11:48
Forum: Ask for Help (v1)
Topic: Laptop Lid State (open/close) action
Replies: 2
Views: 1484

Re: Laptop Lid State (open/close) action

Based on this... Note: It's possible that this function will be immediately called after using Start_LidWatcher with the lid's current state (usually open). I tried this... #Include LidWatcher.ahk r := Start_LidWatcher() ;Start waiting for the lid to be opened or closed OnExit, cleanup return cleanu...
by Shadowpheonix
26 Sep 2016, 11:03
Forum: Ask for Help (v1)
Topic: How to Send and ignore CapsLock ? Topic is solved
Replies: 4
Views: 3266

Re: How to Send and ignore CapsLock ? Topic is solved

SendInput is generally faster than Send.
If you want any further suggestions, please provide more details on what you are looking for.

Go to advanced search