 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sat Feb 26, 2005 8:19 pm Post subject: |
|
|
This code is slightly nonsensical:
| BoBo wrote: | | Code: | #Persistent ; will keep your script active
!F9:: ; Hotkey - press ALT+F9 to UnHide your tir2Joy window
WinShow, <tir2joy WindowsTitle>
Return
Run, tir2joy.exe,<EnterHereTheTir2Joy.exePath>, Hide ; Execute tir2joy
WinHide, <tir2joy WindowsTitle> ; hide its window |
|
The auto-execute isn't in the right place.
And here's another tidbit from our friend:
| BoBo wrote: | | and [SetTitleMatchMode] is set to the default to 3 ([v1.0.11] |
Apparently the documentation begs to differ:
| Quote: | | If unspecified, TitleMatchMode defaults to 1 and fast. |
And finally, that last piece of code he posted still manages to botch the auto-executes (blue is what will run at start, red is "hanging code" that will never run):
| BoBo wrote: | ; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other
;
; Script Function:
; Template AutoHotkey script.
;
; TrackIR Zoom Script for IL2FB/AEP/PF
; http://www.lufthunden.com
; This script is used to send single keypresses to manage FOV in IL2.
; =LH=Mave's Xmas present for the IL2 community
#SingleInstance
#Persistent
Run, tir2joy.exe, C:\tir2joy, Hide ; the window gets hidden here
!F9:: ; ALT+F9 to show the window
WinShow, TrackIR2Joystick v1.2
Return
!F10:: ; ALT+F10 to hide the window
WinHide, TrackIR2Joystick v1.2
Return
SetFormat, float, 03 ; Omit decimal point from axis position percentages.
JoystickNumber = 2 ; Increase this to test a joystick other than the first.
JoystickAxis = V ; Set this to the axis you want to use.
GetKeyState, axis_count, %JoystickNumber%JoyAxes
if axis_count < 1 |
That's what I meant.  |
|
| Back to top |
|
 |
luke97
Joined: 26 Feb 2005 Posts: 14
|
Posted: Sat Feb 26, 2005 8:36 pm Post subject: |
|
|
Sorry Ranomore, I was not trying to insult Jonny. My ignorance is so big in AHK programming that I really thought that he was refering to other thread, cause I did not understand anything.
And I readed all your links and indications, but I did not was able to understand them.
Now, with Jonny´s clarification I can see my mistake.
Thanks for your patience. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sun Feb 27, 2005 12:25 am Post subject: |
|
|
Most tasks I do with AHK are 24/7 automated processes without any user intervention, so Hotkeying isn't my favourite topic ...
| Quote: | | Well, it looks like I need some advise as well | "Selbsterkenntnis ist der erste Weg zur Besserung" ~ "self-awareness is half the way to be on the mend"
| Quote: | | cause I did not understand anything | Who cares. The main qualification to become US president - you've to be born in the USA.  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|