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 1157 matches
AutoHotkey Community Forum Index
Author Message
  Topic: Renaming files in folder
tonne

Replies: 22
Views: 340

PostForum: Ask for Help   Posted: Thu Jul 17, 2008 12:40 pm   Subject: Renaming files in folder
Take a look at your code and you will (easily) see that I merely added a debugging messagebox and a comment at the end (bar 2 lines) of your script.
  Topic: Return problem.
tonne

Replies: 5
Views: 68

PostForum: Ask for Help   Posted: Thu Jul 17, 2008 12:32 pm   Subject: Return problem.
; 1.ini:
; [sectiona]
; keya1=valuea1
;
; [sectionb]
; keyb1=valueb1
;
;[sectionc]
;keyc1=valuec1

#include ini.ahk

ini_load(inivar, "1.ini") ...
  Topic: Changing Windows File Context Menu
tonne

Replies: 6
Views: 119

PostForum: General Chat   Posted: Thu Jul 17, 2008 12:01 pm   Subject: Changing Windows File Context Menu
Controlpanel/Standard programs (translated from a danish vista).
  Topic: Renaming files in folder
tonne

Replies: 22
Views: 340

PostForum: Ask for Help   Posted: Thu Jul 17, 2008 11:57 am   Subject: Renaming files in folder
Try this:
...
StringRight, FileName, A_LoopFileName, 4
MsgBox Trying to rename %FileName%.pdf to %CellContents%.pdf - did I really find the filename without extension above??
; better read up ...
  Topic: Return problem.
tonne

Replies: 5
Views: 68

PostForum: Ask for Help   Posted: Thu Jul 17, 2008 11:44 am   Subject: Return problem.
Titan useNumPut(0, var, 0, "UChar")to hide the value and NumPut(160, var, 0, "UChar") to unhide the value.
After calling the function do:
NumPut(32, WhatAndHo ...
  Topic: Trouble getting alt gr to agree with me
tonne

Replies: 2
Views: 50

PostForum: Ask for Help   Posted: Thu Jul 17, 2008 11:40 am   Subject: Trouble getting alt gr to agree with me
Maybe this workaround helps:
; use * to catch any modifiers
*+::
; AltGr
If (GetKeyState("RALT") && GetKeyState("LCTRL"))
SendR ...
  Topic: Renaming files in folder
tonne

Replies: 22
Views: 340

PostForum: Ask for Help   Posted: Wed Jul 16, 2008 11:28 am   Subject: Renaming files in folder
Maybe use some msgbox to show debug information or use the listvars command (and pause).
You can read the first line with the FileReadLine command - avoids one of the loops.
  Topic: Renaming files in folder
tonne

Replies: 22
Views: 340

PostForum: Ask for Help   Posted: Wed Jul 16, 2008 10:14 am   Subject: Renaming files in folder
Check Storing values in variables: To store a string or number in a variable, there are two methods: traditional and expression. The traditional method uses the equal sign operator (=) to assign unquo ...
  Topic: Condition to limit expansion of hotstring
tonne

Replies: 2
Views: 61

PostForum: Ask for Help   Posted: Tue Jul 15, 2008 7:00 am   Subject: Condition to limit expansion of hotstring
The first issue is probably as:
; a question mark makes the hotstring trigger even inside other words
; can even be specifed with the #hotstring directive
; :?:ly::layer
; this req ...
  Topic: Anyone can fix it?
tonne

Replies: 3
Views: 84

PostForum: Ask for Help   Posted: Fri Jul 11, 2008 10:01 am   Subject: Anyone can fix it?
Possibly
*2::
Hotkey, ~LButton, Off ; ~LButton, removed
SetTimer, ActivateRapidFire, -5000
return
ActivateRapidFire:
Hotkey, ~LButton, On ; ~LButton, removed
return
~LButton:&# ...
  Topic: Multiple text commands
tonne

Replies: 4
Views: 61

PostForum: Ask for Help   Posted: Thu Jul 10, 2008 12:10 pm   Subject: Multiple text commands
or oneliners
^d::send REMOVED@REMOVED.com
^w::send madeuppassword
^t::send randomtext outcome
  Topic: array iteration?
tonne

Replies: 4
Views: 81

PostForum: Ask for Help   Posted: Wed Jul 09, 2008 9:46 pm   Subject: array iteration?
You can (but you had a typo:
it=1
total=0
loop 20{
%it%s:=0
it++ ; no % here
})
  Topic: recursive function quits after 270 recursions?
tonne

Replies: 1
Views: 71

PostForum: Ask for Help   Posted: Wed Jul 09, 2008 9:17 pm   Subject: recursive function quits after 270 recursions?
Limited stackspace. Rewrite without:

#a::sender(329,400)

sender(fromnum,tonum){
if (fromnum < tonum)
{
loop % tonum - fromnum
{ ...
  Topic: array iteration?
tonne

Replies: 4
Views: 81

PostForum: Ask for Help   Posted: Wed Jul 09, 2008 8:47 pm   Subject: array iteration?
loop, 20
{
%a_index%s := 0
}
  Topic: calling a script within an other script.
tonne

Replies: 6
Views: 102

PostForum: Ask for Help   Posted: Thu Jul 03, 2008 3:25 pm   Subject: calling a script within an other script.
This works
#q::
gosub, test
return

test:
msgbox this is a test
return


Better read up on [url=http://www.autohotkey.com/docs/Scripts.htm#auto]Auto-Execute section.
 
Page 1 of 78 Goto page 1, 2, 3 ... 76, 77, 78  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group