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 

Search found 75 matches
AutoHotkey Community Forum Index
Author Message
  Topic: Pascal's triangle
UncleScrooge

Replies: 2
Views: 127

PostForum: Ask for Help   Posted: Sun Dec 20, 2009 1:38 pm   Subject: Pascal's triangle
to me it goes negative after 20.. anyway:

you are overcoming integer handling capability, so you have to use a trick. You gotta keep yyy under control
Try this (I took the liberty to clean up a ...
  Topic: Passing an array as a dllcall parameter
UncleScrooge

Replies: 3
Views: 97

PostForum: Ask for Help   Posted: Fri Dec 18, 2009 4:16 pm   Subject: Passing an array as a dllcall parameter
try [url=http://www.autohotkey.com/forum/viewtopic.php?t=33464]this (by heresy)
you'll find there links to Lexikos utility to translate API structures into AHK as well as the DllCall() snippet-er by ...
  Topic: registry detect
UncleScrooge

Replies: 6
Views: 149

PostForum: Ask for Help   Posted: Fri Dec 18, 2009 4:04 pm   Subject: registry detect
well i tried with the following but at errorlevel no message is displayed

Loop, HKEY_LOCAL_MACHINE,SOFTWARE\ETAS\ETKControlPanel\,1
if errorlevel
msgbox, does not exist.
else
msgbox, T ...
  Topic: How can I stop this macro!?!?!?
UncleScrooge

Replies: 1
Views: 114

PostForum: Ask for Help   Posted: Fri Dec 18, 2009 8:52 am   Subject: How can I stop this macro!?!?!?
I hope I have understood what you are asking.
If you want to stop a script at any time you can assign, in the autoexec section of your script, an Hotkey to that pourpose.
This example will terminate ...
  Topic: Functions & subroutines
UncleScrooge

Replies: 8
Views: 224

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 4:23 pm   Subject: Functions & subroutines
yeah
F11::
copyStackFunction(clearStack)
return

copyStackFunction(clearStack) {
MsgBox %A_ThisFunc%
Return
}
  Topic: Which one is the current "default" ListView?
UncleScrooge

Replies: 7
Views: 189

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 4:07 pm   Subject: Which one is the current "default" ListView?

You may add your support to the Wish List topic:
done
  Topic: A_ListView or A_CurrentListView
UncleScrooge

Replies: 3
Views: 1381

PostForum: Wish List   Posted: Thu Dec 17, 2009 4:07 pm   Subject: A_ListView or A_CurrentListView
Absolutely agreed.
not forgetting (btw):
A_TreeView
  Topic: listview change header size column
UncleScrooge

Replies: 1
Views: 63

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 1:33 pm   Subject: listview change header size column
LV_ModifyCol(1, 30)that set the 1st column to 30 pixels width ... but please:

colWidth := 100 ;change it to any feasible value
Loop % LV_GetCount("Col")
LV_ModifyC ...
  Topic: How to translate the "for each" structure into ahk
UncleScrooge

Replies: 2
Views: 105

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 1:26 pm   Subject: How to translate the "for each" structure into ahk
one way could be:

Loop
{
if (myCollection%A_Index% = "") ;stop at the first empty
Break
.
.
; more code inside the loop
}whereas you can arrange that myCol ...
  Topic: close process without losing data
UncleScrooge

Replies: 7
Views: 153

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 1:11 pm   Subject: close process without losing data
one way could be:

Label_Script_Start:

TimetoWaitInMinutes = 4
TimeToWait_Value := (TimetoWaitInMinutes * 60000)

Run, notepad.exe,,, npadID
Sleep, %TimeToWait_Value%
IfWinEx ...
  Topic: How to autoreplace ":" character ?
UncleScrooge

Replies: 9
Views: 105

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 12:47 pm   Subject: How to autoreplace ":" character ?
:::Send n
the above works
So
:::n
should be good to have a "n" for ":" hotkey ??

you must tell AHK what you wanna do... placing an "n" aft ...
  Topic: How to autoreplace ":" character ?
UncleScrooge

Replies: 9
Views: 105

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 12:38 pm   Subject: How to autoreplace ":" character ?
Sorry, but
:::MsgBox You've pressed ":"
works fine, whereas
:::n
has no effect !!!!!
Stange Twisted Evil

BR
the first : is the hotkey while the following 2 ...
  Topic: How to autoreplace ":" character ?
UncleScrooge

Replies: 9
Views: 105

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 12:36 pm   Subject: How to autoreplace ":" character ?
or u could try:

:::Gosub SwapIt

b::Gosub bye
Return

bye:
MsgBox % "You've pressed 'b' for bye"
ExitApp

SwapIt:
MsgBox % "You've pressed &quo ...
  Topic: How to autoreplace ":" character ?
UncleScrooge

Replies: 9
Views: 105

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 12:18 pm   Subject: How to autoreplace ":" character ?

:::MsgBox You've pressed ":"
n::MsgBox You've pressed "n"

b::Gosub bye
Return

bye;
MsgBox You've pressed "b" for bye ; just t ...
  Topic: if var=string not the same as if (var=string)
UncleScrooge

Replies: 5
Views: 116

PostForum: Ask for Help   Posted: Thu Dec 17, 2009 9:51 am   Subject: if var=string not the same as if (var=string)
because that's how the "IF (expression)" command syntax works..
you should en-close the expression in parenthesis (or round brackets, however you wanna call 'em) unless...
[url=http://www. ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group