Search found 1460 matches
- 16 Jan 2020, 12:00
- Forum: Ask for Help (v1)
- Topic: Debugging my hotkey, beginner Topic is solved
- Replies: 14
- Views: 1389
Re: Debugging my hotkey, beginner Topic is solved
...when I go to actually use the hotkey, it fails. Any ideas why it would fail at this point? Please explain how it fails. You can test if the hotkey's firing with: C & P:: msgbox %A_ThisHotkey% hotkey combo fired! return Also because all of your sleeps are the same duration you can shorten the cod...
- 16 Jan 2020, 11:48
- Forum: Ask for Help (v1)
- Topic: Debugging my hotkey, beginner Topic is solved
- Replies: 14
- Views: 1389
Re: Debugging my hotkey, beginner Topic is solved
If you're trying to use the keys C and P held down one after the other try:C & P::msgbox you pressed %A_ThisHotkey%
If you're trying to use type C then P normally try
If you're trying to use type C then P normally try
Code: Select all
:*:CP::
msgbox you typed this hotstring
return
- 16 Jan 2020, 11:29
- Forum: Ask for Help (v1)
- Topic: Some help with a Controlsend to ahk_id
- Replies: 3
- Views: 1016
- 16 Jan 2020, 11:17
- Forum: Ask for Help (v1)
- Topic: COM Interface calls to Excel fail randomly. Try?
- Replies: 7
- Views: 1087
Re: COM Interface calls to Excel rail randomly. Try?
Excel COM object errors throw exceptions which are detected in Try
For example:Customize Catch to taste
For example:
Code: Select all
X1 := ComObjCreate( "Excel.Application" ), X1.Visible := True
try X1.Sheets(NEXT_SHEET).Range( "A1:A15" ).Copy
catch error
{
X1.Quit(), X1:=""
msgbox % error.message
}
- 16 Jan 2020, 10:22
- Forum: Ask for Help (v1)
- Topic: [Retracted] Why doesn't my script's GUI Dialog show? Topic is solved
- Replies: 6
- Views: 979
Re: Need help converting a DOS batch/cmd sript to an AHK script. Topic is solved
I just need to know what commands in AHK should be used instead of the ones in my DOS batch/cmd script. Run % A_ProgramFiles "\putty\PUTTY.EXE -ssh root@999.999.999.999 -P 22 -l root -pw pppppp",,, PtPid Run % A_ProgramFiles "\Google\Chrome\Application\Chrome.exe --start-maximized http://my.dev.sit...
- 16 Jan 2020, 09:55
- Forum: Ask for Help (v1)
- Topic: New to AHK & script writing, need help on project
- Replies: 50
- Views: 6437
Re: New to AHK & script writing, need help on project
Sorry for the delay yesterday, I had an exam then had to work.. My point to retrieving the ClassNN ( for the save button ) was to negate having to use coordinate offsets and create a more reliable `save log` approach. If what you're using is working, let's leave that part. We can revisit that later ...
- 13 Jan 2020, 15:23
- Forum: Scripts and Functions (v1)
- Topic: GetDllBitness()
- Replies: 11
- Views: 1999
Re: GetDllBitness()
yah I was aware but figured using the api call would be somehow "cleaner" lol
also wouldn't oFile.ReadInt()+A_PtrSize be more compliant? *wonderin
also wouldn't oFile.ReadInt()+A_PtrSize be more compliant? *wonderin
- 13 Jan 2020, 14:53
- Forum: Scripts and Functions (v1)
- Topic: GetDllBitness()
- Replies: 11
- Views: 1999
Re: GetDllBitness()
Updated the API call as it was incorrect.
- 13 Jan 2020, 14:29
- Forum: Scripts and Functions (v1)
- Topic: GetDllBitness()
- Replies: 11
- Views: 1999
GetDllBitness()
whipped it up quick, placed here for reference..
GetDllBitness()
- 13 Jan 2020, 14:24
- Forum: Ask for Help (v1)
- Topic: loadlibrary only working with unicode 64 AHK Topic is solved
- Replies: 8
- Views: 1617
Re: loadlibrary only working with unicode 64 AHK Topic is solved
So @tank maybe willl hate `puters a lil less
edit: I was calling the incorrect api function. fixed.
GetDllBitness()
:3edit: I was calling the incorrect api function. fixed.
- 13 Jan 2020, 11:10
- Forum: Scripts and Functions (v1)
- Topic: GetBinaryType() ANSI/Unicode
- Replies: 3
- Views: 925
GetBinaryType() ANSI/Unicode
Needed this one so figured i'd post a copy
GetBinaryType()
- 13 Jan 2020, 09:27
- Forum: Ask for Help (v1)
- Topic: path and file operation Topic is solved
- Replies: 20
- Views: 3173
Re: path and file operation Topic is solved
What do I have to change so that I can save your script somewhere else Regardless of where the script is saved locally, it points to the target directory with the TopDir variable. For instance, if the target / top directory is in \Skripte : TopDir = V:\portable Programme\AutoHotkey Portable\Skripte...
- 13 Jan 2020, 08:44
- Forum: Ask for Help (v1)
- Topic: loadlibrary only working with unicode 64 AHK Topic is solved
- Replies: 8
- Views: 1617
Re: loadlibrary only working with unicode 64 AHK Topic is solved
tank wrote:I hate computers
- 11 Jan 2020, 22:05
- Forum: Ask for Help (v1)
- Topic: Reduce Filename Length within Folders Topic is solved
- Replies: 4
- Views: 716
Re: Reduce Filename Length within Folders Topic is solved
Am I assuming correct if I adjust the Max Length value that will specify where to remove characters down to? Correct. The variable should actually be NewLength . Dir := A_ScriptDir ; Top level / Script Directory NewLength := 40 ; New length of file name MaxLength := 50 ; Maximum allowed length of f...
- 11 Jan 2020, 20:51
- Forum: Ask for Help (v1)
- Topic: Jump to header in Microsoft Word via Com Object
- Replies: 4
- Views: 789
Re: Jump to header in Microsoft Word via Com Object
focus header: oWord := ComObjActive("Word.Application") ; constants wdSeekCurrentPageHeader := 9 ; focus header oWord.ActiveWindow.ActivePane.View.SeekView := wdSeekCurrentPageHeader focus header, append header, focus document: oWord := ComObjActive("Word.Application") ; constants wdStory := 6 wdSee...
- 11 Jan 2020, 18:38
- Forum: Ask for Help (v1)
- Topic: Reduce Filename Length within Folders Topic is solved
- Replies: 4
- Views: 716
Re: Reduce Filename Length within Folders Topic is solved
Try this ( no FileMove error handling ): Dir := A_ScriptDir ; Top level / Script Directory MaxLength := 40 ; Maximum length of file name MsgBox % 0x30|0x4, Warning!, Are you sure you want to reduce the filenames?`nTHIS CANNOT BE UNDONE! IfMsgBox, No { Msgbox,, Reduce File Name, File name reduction c...
- 09 Jan 2020, 17:20
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4894
- Views: 1395842
Re: « What's on your mind? » Topic is solved
I requested a pcre computerphile like 2years ago..
they finally got to it
they finally got to it
- 09 Jan 2020, 06:42
- Forum: Ask for Help (v1)
- Topic: RegexMatch Topic is solved
- Replies: 5
- Views: 1465
Re: RegexMatch Topic is solved
It's a ternary condition for: If Position equals 0 or nothing !Pos , then the Starting Position is the beginning of the string or 1 (1 , also empty list variable ,list:="") else the next Starting Position begins at the string length of the match StrLen(digits) , plus the Position of the match in the...
- 09 Jan 2020, 05:52
- Forum: Ask for Help (v1)
- Topic: RegexMatch Topic is solved
- Replies: 5
- Views: 1465
Re: RegexMatch Topic is solved
this loop will parse a string and append each match to list:
Code: Select all
while ( Pos:=RegExMatch(clipboard,"\d{5,8}", digits, !Pos?(1,list:=""):StrLen(digits)+Pos) )
list .= digits " "
clipboard := RTrim(list)
msgbox % clipboard
- 09 Jan 2020, 05:30
- Forum: Ask for Help (v1)
- Topic: Selecting a random .txt file and copying the text to a main txt file
- Replies: 3
- Views: 873
Re: Selecting a random .txt file and copying the text to a main txt file
edit: Xtra beat me to it but to add to his answer, here's more info that may help. Hi, i had no idea on how to start this script It's always a good idea to break your ideas and goals into a list. In the below script I quoted your post ( Press F1 to start, Escape to exit ) ; "...text file(C:\Users\Us...