Search found 3738 matches

by garry
19 May 2020, 14:15
Forum: Ask for Help (v1)
Topic: Embed ffplay window into a gui
Replies: 1
Views: 618

Re: Embed ffplay window into a gui

I don't know how to embed external programs in GUI here a short example with videolan vlc.exe , play video in a GUI ;- see also : ;- https://www.autohotkey.com/boards/viewtopic.php?f=6&t=74484 ;- play video internet ;- https://www.autohotkey.com/boards/viewtopic.php?f=6&t=74482 ;- play video youtube...
by garry
18 May 2020, 16:11
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4893
Views: 1392114

Re: « What's on your mind? » Topic is solved

some other links / archive / map / movie / weather ;- hitchcock movies = 25 or 50 minutes https://archive.org/details/Alfred_Hitchcock_Presents ;- Hitchcock presents https://archive.org/details/s01e12hangover ;- Hitchcock Hour http://www.cheeseheadhosting.us/downloads/golden%20age%20of%20television%...
by garry
18 May 2020, 09:52
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4893
Views: 1392114

Re: « What's on your mind? » Topic is solved

https://www.historic-uk.com/HistoryUK/HistoryofBritain/Great-Horse-Manure-Crisis-of-1894/ By the late 1800s, large cities all around the world were “drowning in horse manure”. In order for these cities to function, they were dependent on thousands of horses for the transport of both people and goods...
by garry
18 May 2020, 09:05
Forum: 请求帮助
Topic: 教程里的脚本,为什么只能在特定程序中使用?
Replies: 1
Views: 4860

Re: 教程里的脚本,为什么只能在特定程序中使用?

send2notepad #warn #Noenv #singleinstance,force Detecthiddenwindows,on ;- if send to minimized aa=My first script pr=notepad.exe sc:="ahk_exe notepad.exe" IfWinNotExist,%sc% Run, %pr%,,,pid1 ;- at first run notepad return ;----------------------------- esc::exitapp ; exit this script ;--------------...
by garry
18 May 2020, 08:11
Forum: Ask for Help (v1)
Topic: FileCopyDir - I don't get it! Topic is solved
Replies: 5
Views: 1084

Re: FileCopyDir - I don't get it! Topic is solved

I tried these examples to copy 1st example with built in robocopy #warn #noenv setworkingdir,%a_scriptdir% If !A_IsAdmin ;- copyall needs admin Run *RunAs "%A_AhkPath%" "%A_ScriptFullPath%" Process, Priority, , H ;--- maybe a logfile exclude logfile if it's in source fd1=%a_desktop%\ROBOCOPY_LOG ifn...
by garry
18 May 2020, 07:03
Forum: Ask for Help (v1)
Topic: parse text file, find a line, but also want the next line too
Replies: 5
Views: 467

Re: parse text file, find a line, but also want the next line too

for what ( 1st=x, 2nd=y ) are you searching ? example, if found NAME see followed line with PID searchx=NAME e:="" i=0 cc= ( NAME: "c38xx Stack", DESCR: "c38xx Stack" PID: WS-C3850-48P , VID: V05 , SN: FCW1931D1TF NAME: "Switch 1", DESCR: "WS-C3850-48F-E" PID: WS-C3850-48F-E , VID: V05 , SN: FCW1931...
by garry
17 May 2020, 14:05
Forum: Ask for Help (v1)
Topic: Create custom msgbox
Replies: 13
Views: 1229

Re: Create custom msgbox

maybe set timer off if continue in Label A1

Code: Select all

SetTimer,A1,100
;gosub,a1
msgbox, 262208,CLOSE in 6 SECONDS ,Hello! :-)`n I CLOSE in 6 seconds ,6
exitapp
A1:
settimer,A1,off
run,charmap
return
by garry
17 May 2020, 08:29
Forum: 请求帮助
Topic: 请求帮助 Topic is solved
Replies: 2
Views: 86933

Re: 请求帮助 Topic is solved

var GGman is empty , if empty : a_now example with languageCode , US-en = L0x0409 ;- 请求帮助 ;- https://www.autohotkey.com/boards/viewtopic.php?f=27&t=75997 ;- example with languageCode ;- https://www.autohotkey.com/docs/misc/Languages.htm ;- https://www.science.co.il/language/Locale-codes.php run,note...
by garry
17 May 2020, 05:33
Forum: Ask for Help (v1)
Topic: To know if a variable contains a filename?
Replies: 15
Views: 1264

Re: To know if a variable contains a filename?

I'm a little bit confused at least should be a fullpath , with ":\" and a file with extension ( but it can be also a file without extension , see examples above ) filename has the variable = "temp\test.txt" , how can say it's a file without see fullpath ? fileName := "temp\test.txt" a short answer ,...
by garry
16 May 2020, 13:00
Forum: Ask for Help (v1)
Topic: To know if a variable contains a filename?
Replies: 15
Views: 1264

Re: To know if a variable contains a filename?

@Smile_
Does it support files without extension?
I just wanted to check file without extension and it told me it is a folder.
No, I was wrong, was thinking a file has always extension, I've modified script above
by garry
16 May 2020, 07:47
Forum: Ask for Help (v1)
Topic: To know if a variable contains a filename?
Replies: 15
Views: 1264

Re: To know if a variable contains a filename?

this was my old complicated script ( maybe has failures ? ) EDIT : yes it had a problem, if file have no extension ... here the modified script : f1:="C:\test" ;f1:="C:\test\testsub" ;f1:="C:\test\testsub\testsub.txt" ;f1:="C:\test\testsub\testsub" ;- this is also a file if (InStr(FileExist(F1),"D")...
by garry
15 May 2020, 07:10
Forum: Ask for Help (v1)
Topic: FormatTime usage
Replies: 4
Views: 440

Re: FormatTime usage

example , added language code ;- https://www.autohotkey.com/docs/commands/FormatTime.htm ;- date language code tomorrow += 1, days formattime,aa,%tomorrow% , dddd, MMMM dd, yyyy msgbox,Tomorrow=%aa% time=20201005140012 FormatTime,japan , %time% L0x0411, dddd MMMM dd-MM-yyyy ;-- FormatTime,konkani , ...
by garry
14 May 2020, 04:31
Forum: 请求帮助
Topic: 求教 Topic is solved
Replies: 1
Views: 94806

Re: 求教 Topic is solved

send2notepad ;- example : use CAPSLOCK+C and then use in 2 second > 1 or 2 or 3 #persistent clipboard= pr=notepad.exe sc=ahk_exe notepad.exe IfWinNotExist,%sc% Run, %pr%,,,pid1 ;- at first run open notepad return ;------------------------------- esc::exitapp ; exit this script ;---------------------...
by garry
14 May 2020, 01:54
Forum: Ask for Help (v1)
Topic: Can't seem to get the focused control Topic is solved
Replies: 4
Views: 660

Re: Can't seem to get the focused control Topic is solved

small modification : use button DOWN to see the CONTENT from FOCUSED EDIT ;- Can't seem to get the focused control ;- https://www.autohotkey.com/boards/viewtopic.php?f=76&t=75744&p=328095#p328095 ;- GUI COLOR TEST ;- Button 'DOWN' shows content from selected EDIT ;-----------------------------------...
by garry
14 May 2020, 01:09
Forum: Ask for Help (v1)
Topic: Viable alternative to clipboard to insert text at carrot
Replies: 3
Views: 418

Re: Viable alternative to clipboard to insert text at carrot

maybe not what you want , but ... - GUI multi-line edit: Insert string at cursor position ( EDIT ) https://www.autohotkey.com/boards/viewtopic.php?f=76&t=60146 ;;-------- https://www.autohotkey.com/boards/viewtopic.php?f=76&t=60146 --- ;- GUI multi-line edit: Insert string at cursor position / user ...
by garry
13 May 2020, 15:46
Forum: Ask for Help (v1)
Topic: Help with ListView & LV_Add Topic is solved
Replies: 7
Views: 668

Re: Help with ListView & LV_Add Topic is solved

boiler , thank you a basic example with files #warn #Noenv setworkingdir,%a_scriptdir% Gui,2: Default Gui,2: +LastFound Gui,2: Font,s12 CDefault,Lucida Console Gui,2: Add, ListView, W600 H500 Checked Grid altsubmit vLV1 gListLabel , NR|Filename|Size i=0 Loop, %A_MyDocuments%\*.*,0,1 { i++ i:=SubStr...
by garry
12 May 2020, 01:51
Forum: Ask for Help (v1)
Topic: Trying to understand newline (`n)
Replies: 15
Views: 6900

Re: Trying to understand newline (`n)

@boiler , thank you
by garry
12 May 2020, 01:45
Forum: Ask for Help (v1)
Topic: Simple question on integers and math with AHK
Replies: 17
Views: 3350

Re: Simple question on integers and math with AHK

ahketype , yes , thankx for the solution a:=20 , b:=10 ;a:=20 , b:=7 c:=a/b d:=a//b msgbox,C=%c%`nD=%d% if (c=d) ;- C= 2.000000 and D= 2 ( they are equal ) in first example it's an integer MsgBox, D=%d% IS an integer ( equal to C ) else MsgBox, C=%c% NOT an integer return
by garry
12 May 2020, 01:20
Forum: Ask for Help (v1)
Topic: Trying to understand newline (`n)
Replies: 15
Views: 6900

Re: Trying to understand newline (`n)

Code: Select all

fileappend,Line1`r`nLine2`nLine3`n,test22.txt
return
with UltraEdit HEX-editor I see 0D0A , 0A , 0A and Editor asks 'Want you convert to DOS format ? ' , and then I have 0D0A , 0D0A , 0D0A at end of line . ( 0D=13 CR , 0A=10 LF )
by garry
11 May 2020, 13:36
Forum: Ask for Help (v1)
Topic: Simple question on integers and math with AHK
Replies: 17
Views: 3350

Re: Simple question on integers and math with AHK

;- integer=True if Var is non-empty and contains a purely numeric string (decimal or hexadecimal) without a decimal point. ;- Leading and trailing spaces and tabs are allowed. The string may start with a plus or minus sign. If division , I see result >> 2.000000 ( I want see = 2 ) , so it's never in...

Go to advanced search