AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please, help me to create a very special script.
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sat Feb 26, 2005 8:19 pm    Post subject: Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
luke97



Joined: 26 Feb 2005
Posts: 14

PostPosted: Sat Feb 26, 2005 8:36 pm    Post subject: Reply with quote

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. Embarassed

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
View user's profile Send private message
BoBo
Guest





PostPosted: Sun Feb 27, 2005 12:25 am    Post subject: Reply with quote

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" Cool

Quote:
cause I did not understand anything
Who cares. The main qualification to become US president - you've to be born in the USA. Laughing
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group