Search found 3787 matches

by garry
03 Apr 2024, 09:12
Forum: 请求帮助
Topic: 更改名称为什么用 Run 可以,用 FileMove 就不行?
Replies: 2
Views: 399

Re: 更改名称为什么用 Run 可以,用 FileMove 就不行?

其他例子 : #Requires AutoHotkey v1.1 #NoEnv #Warn SetWorkingDir,%A_ScriptDir% ;- filelist:="" FD1:=a_scriptdir . "\Files" Loop,%fd1%\*.* FileList .=A_LoopFileName . "`r`n" ;- 这里是不是有问题? msgbox, 262208,FILELIST,%filelist% exitapp FileRename in FD1 ----------- ;- FileRename in FD1 ----------- #Requires Aut...
by garry
31 Mar 2024, 15:17
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 16
Views: 413

Re: List of USB serial numbers

after complicated made , here an easy logic script ( I think ... ) , driveget serial only from new inserted disk ( not show GUI with all drives ) ;- Detect Usb Drive ( from user teadrinker ) ;- https://www.autohotkey.com/boards/viewtopic.php?t=76221&p=330409 ;- Detect Usb Drive ( from user 'teadrink...
by garry
30 Mar 2024, 12:29
Forum: Ich brauche Hilfe
Topic: File oder Folder ? Topic is solved
Replies: 5
Views: 296

Re: File oder Folder ? Topic is solved

@just me danke , mache immer alles kompliziert , nichts überlegt ...
und eigentlich :
Loop, Files, %a_guievent%, D
habe unnötig variable definiert > r:=a_guievent
by garry
30 Mar 2024, 08:42
Forum: Ich brauche Hilfe
Topic: File oder Folder ? Topic is solved
Replies: 5
Views: 296

Re: File oder Folder ? Topic is solved

evtl ;--------------- GuiDropFiles: r:=a_guievent SplitPath,r, Dateiname,Verzeichnis,Erweiterung,NameOhneErw,Laufwerk GuiControl,,DropFile,% A_GuiEvent GuiControl,,Dateiname,% Dateiname GuiControl,,Verzeichnis,% Verzeichnis GuiControl,,Erweiterung,% Erweiterung GuiControl,,NameOhneErw,% NameOhneErw ...
by garry
29 Mar 2024, 17:52
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 16
Views: 413

Re: List of USB serial numbers

JoeWinograd , sorry, no , now I have a problem ( and I'm no expert ... :) ) the last part to open notepad or charmap , it starts several times when connect/disconnect USB , I tried with sleep but no success First script above was ok , show only text in Edit which works dont know how this works , ma...
by garry
29 Mar 2024, 16:43
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 16
Views: 413

Re: List of USB serial numbers

I added an example above ....
by garry
29 Mar 2024, 16:35
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 16
Views: 413

Re: List of USB serial numbers

I tried this , if see these serial-numbers e.g. > serialx:="2565867498,3000530768,0123456789" , show it in GUI-EDIT when USB connect / disconnect > OnMessage(0x219, "notify_change") ( Lastdrive is not always the last new connected drive, it sorts from A-Z , ( I have a drive defined "G" ) ) you can m...
by garry
28 Mar 2024, 09:25
Forum: Ask for Help (v1)
Topic: integrating windows commands
Replies: 7
Views: 246

Re: integrating windows commands

RussF thank you can also open cmd with WIN+R ,cmd ,ENTER , then see DOS window, type CMD /? > see all parameters also help for xcopy > XCOPY /? ( /? can be used for all DOS commands to get help ) with ahk open DOS with > run,%comspec% /k I get a NEW DOS window after new installing windows , run wt....
by garry
28 Mar 2024, 09:18
Forum: Ask for Help (v1)
Topic: meaning of * in fileappend
Replies: 10
Views: 354

Re: meaning of * in fileappend

once I also needed the EOF ascii=26 , EndOfLine . Or to get a new paper-page , sent FF ascii=12 (FormFeed) to old printer . ( long time ago I wanted transfer via seriell connection a file , this only worked when the file had EOF ) eof:=Chr(26) F1:= A_ScriptDir . "\test_00.txt" var:=" (Ltrim join`r`n...
by garry
28 Mar 2024, 07:57
Forum: Ask for Help (v1)
Topic: integrating windows commands
Replies: 7
Views: 246

Re: integrating windows commands

%comspec% is cmd , /k > keep DOS open , /c > close DOS when finished run myvar : myvar=xcopy %a_desktop%\calculator.ahk D:\TEST run,%myvar% return open DOS run,%comspec% /k return an example , run hidden source:=a_desktop . "\calculator.ahk" dest :="D:\TEST" ifnotexist,%dest% filecreatedir,%dest% ru...
by garry
28 Mar 2024, 06:44
Forum: Ask for Help (v1)
Topic: integrating windows commands
Replies: 7
Views: 246

Re: integrating windows commands

short example, see also filecopy , robocopy etc source:=a_desktop . "\calculator.ahk" dest :="D:\TEST" runwait,%comspec% /k xcopy "%source%" "%dest%" try,run,%dest% return copy DESKTOP to D:\TEST\DESKTOP source:=a_desktop dest :="D:\TEST\DESKTOP" ;ifnotexist,%dest% ;- < not needed see parameter /I ;...
by garry
27 Mar 2024, 13:09
Forum: Ich brauche Hilfe
Topic: Link mit verschiedenen Browsern öffnen Topic is solved
Replies: 41
Views: 1904

Re: Link mit verschiedenen Browsern öffnen Topic is solved

sollte so sein :
run,"D:\Programme\Firefox_1\Firefox_1.exe" https://autohotkey.com
by garry
27 Mar 2024, 13:03
Forum: Ask for Help (v1)
Topic: A_AhkPath icons
Replies: 3
Views: 136

Re: A_AhkPath icons

I like to use also small programs with commandline ( CLI ) https://www.nirsoft.net/utils/resources_extract.html ;- https://www.nirsoft.net/utils/resources_extract.html PR :=a_scriptdir . "\ResourcesExtract.exe" F1 :=a_programfiles . "\AutoHotkey\AutoHotkey.exe" DEST:=a_desktop . "\TEST_ICO" runwait,...
by garry
27 Mar 2024, 04:47
Forum: Ask for Help (v1)
Topic: Problems with GUI button names
Replies: 14
Views: 281

Re: Problems with GUI button names

just me thank you , interesting what you get so this I like to use > GuiControlGet, Caption, , %A_GuiControl% , >> no problem with space and more than 63 characters in filename ( I think my last examples are OK ) ;-------- saved at 星期三 三月 2024-03-27 09:28 UTC -------------- ;- Problems with GUI but...
by garry
26 Mar 2024, 14:35
Forum: Ask for Help (v1)
Topic: How to play two sounds at once?
Replies: 38
Views: 741

Re: How to play two sounds at once?

@mikeyww thank you, I excluded > a_programfiles . "\Autohotkey" and also > a_programfiles . "\Autohotkey\autohotkey.exe" (?)
by garry
26 Mar 2024, 14:11
Forum: Ask for Help (v1)
Topic: How to play two sounds at once?
Replies: 38
Views: 741

Re: How to play two sounds at once?

mikeyww works fine , as test played 2 sounds together , remembers me on Dual-tone multi-frequency signaling (DTMF) telecommunication signaling system Windows defender said , this ahk-script is a virus, TrojanDownloader: VBS/Adodb.D I not allowed windows defender to check *.txt and *.ahk-files , onl...
by garry
26 Mar 2024, 07:57
Forum: Ask for Help (v1)
Topic: Problems with GUI button names
Replies: 14
Views: 281

Re: Problems with GUI button names

just me yes this works fine earlier example worked also , don't know what the problem with '$' was , but was useless to replace the spaces . Is the variable > vBtn%A_Index% maybe not needed ? dir = %A_ScriptDir% Gui,2:default Gui,2: Font, s12 ,Lucida Console Loop, Files, %dir%\*.ahk { z:=a_loopfile...
by garry
25 Mar 2024, 17:31
Forum: Ask for Help (v1)
Topic: Problems with GUI button names
Replies: 14
Views: 281

Re: Problems with GUI button names

an example because the problem with space in filename , concerns > v%name_no_ext% replace all spaces with a character which usually not exist , here example > replace space with $ , and later replace $ again with space ( script not uses a_guicontrol ,and shoul'd work with more than 63 characters ) ;...
by garry
25 Mar 2024, 17:19
Forum: Ask for Help (v1)
Topic: Problems with GUI button names
Replies: 14
Views: 281

Re: Problems with GUI button names

and this works with long names , greater than 63 characters , but works not when you have space in filename ( then problem in > v%name_no_ext% ) dir = %A_ScriptDir% Gui,2:default Gui,2: Font, s12 ,Lucida Console colbgr:="black",coltxt:="yellow" Loop, Files, %dir%\*.ahk { z:=a_loopfilefullpath SplitP...
by garry
25 Mar 2024, 15:44
Forum: Ask for Help (v1)
Topic: Problems with GUI button names
Replies: 14
Views: 281

Re: Problems with GUI button names

have no answer if problem with more than 63 characters . This works but you get with a_loopfileshortpath the DOS format-name 8.3 ;- Gui help / mikeyww ;- https://www.autohotkey.com/boards/viewtopic.php?f=76&t=104039 i:=0 dir = %A_ScriptDir% Gui,2:default Gui,2: Font, s12 cBlack,Lucida Console Loop, ...

Go to advanced search