Search found 224 matches

by Cuadrix
10 Jun 2017, 23:13
Forum: Ask For Help
Topic: interupt
Replies: 6
Views: 1462

Re: interupt

Code: Select all

START:
Loop
{
	msgbox main code
}


Interupt:
IfExist, C:\Filepath and file name here.jpg
       goto START
goto Interupt    
by Cuadrix
10 Jun 2017, 22:38
Forum: Ask For Help
Topic: Update/Refresh GUI Button Text? Topic is solved
Replies: 2
Views: 1167

Re: Update/Refresh GUI Button Text? Topic is solved

@A_AhkUser
Hey, thanks again! Works perfectly. :D
by Cuadrix
10 Jun 2017, 21:02
Forum: Ask For Help
Topic: Update/Refresh GUI Button Text? Topic is solved
Replies: 2
Views: 1167

Update/Refresh GUI Button Text? Topic is solved

I want the button in the GUI to update/refresh it's text when I change it in notepad. I have this code, however it doesn't update/refresh the buttons text for some reason, and GuiControl doesn't seem to work. This has always worked for me in edit fields, but buttons..? Am I doing something wrong, or...
by Cuadrix
10 Jun 2017, 20:43
Forum: Ask For Help
Topic: interupt
Replies: 6
Views: 1462

Re: interupt

I don't really understand what you mean.. If you want it to jump back to the beginning of your script, then just put a Return in the end of your script.

Like this:

Code: Select all

F1::
Yourscript here
Return
by Cuadrix
10 Jun 2017, 20:07
Forum: Ask For Help
Topic: Pls help me! Run a program after listing multiple files Topic is solved
Replies: 4
Views: 759

Re: Pls help me! Run a program after listing multiple files Topic is solved

Code: Select all

;^o::
SetWorkingDir %A_ScriptDir% 
FileSelectFile, file,,, Select your file, Data File (*.txt)
If ErrorLevel = 1
{
   ExitApp
}
Run, D:\Program Files\IrfanView\i_view32.exe "%file%
Return
Remove ; from ^o to make Ctrl + o work.
by Cuadrix
10 Jun 2017, 19:47
Forum: Ask For Help
Topic: interupt
Replies: 6
Views: 1462

Re: interupt

#SingleInstance, Force

Code: Select all

MsgBox, One lazy horse..
Sleep, 1000
MsgBox, Two Lazy horses
Sleep, 1000
MsgBox, Three Lazy Horses

F1::
Run, Your script name here.ahk
Return
:mrgreen: :mrgreen: :mrgreen:
by Cuadrix
10 Jun 2017, 12:02
Forum: Ask For Help
Topic: Run a script in a background window only?
Replies: 3
Views: 6852

Re: Run a script in a background window only?

IfWinExist / IfWinNotExist / WinExist --> Detect if window exists or not ControlClick --> Send click to a background window ControlSend / ControlSendRaw --> Send keys to a background window PixelGetColor --> Get the color of the pixel in x, y coordinates Exit --> Exists the script dependent on wher...
by Cuadrix
10 Jun 2017, 11:16
Forum: Ask For Help
Topic: Allowing to swap between 2 seperate scripts
Replies: 6
Views: 1035

Re: Allowing to swap between 2 seperate scripts

EDIT The reason you are getting an error is because you placed a hotkey inside the labels even though I already specified the hotkeys for each label. Basically here " Script1A " represents hotkey " Q ", and " Script1B " represents hotkey " C ", while " Script2A " represents hotkey " Q " in label 2x...
by Cuadrix
10 Jun 2017, 10:38
Forum: Ask For Help
Topic: Allowing to swap between 2 seperate scripts
Replies: 6
Views: 1035

Re: Allowing to swap between 2 seperate scripts

This should work the way you want it to: F2:: Toggle := !Toggle If Toggle { Hotkey, E, Script1A Hotkey, Q, Script1B Hotkey, F, Script1C } else { Hotkey, E, Script2A Hotkey, Q, Script2B Hotkey, F, Script2C } return ;===================================================== Script1A: MsgBox, You pressed E...
by Cuadrix
09 Jun 2017, 20:48
Forum: Ask For Help
Topic: Allowing to swap between 2 seperate scripts
Replies: 6
Views: 1035

Re: Allowing to swap between 2 seperate scripts

Here are 2 sample scripts based off your scripts. Pressing F2 will toggle between them.. Script 1: ; Recommended for performance #NoEnv ; Better and more reliable SendMode Input F2:: Suspend DetectHiddenWindows On ; Allows a script's hidden main window to be detected. SetTitleMatchMode 2 PostMessage...
by Cuadrix
08 Jun 2017, 17:46
Forum: Ask For Help
Topic: Need little help with hotkeys::
Replies: 3
Views: 645

Re: Need tittle help with hotkeys::

This should work: #IfWinActive ahk_exe 3DVMain.exe MaxPresses := 2 ~H:: Presses += 1 SetTimer, ResetPresses, -600 If (Pressed <= MaxPresses) GoSub, Presses%Presses% return ResetPresses: Presses := 0 return Presses1: MouseGetPos CurX, CurY click 233, 36 click, 269, 205 send 48 send {tab} send 78 send...
by Cuadrix
08 Jun 2017, 17:37
Forum: Ask For Help
Topic: Load Radio Button state from a .TXT file and check it? GUI Topic is solved
Replies: 3
Views: 817

Load Radio Button state from a .TXT file and check it? GUI Topic is solved

I have this GUI. In the GUI I have two radio buttons, Radio 1 and Radio 2 . In the GUI there is also a regular button named " Set As Default ". There are also two TXT files, CurrentState.txt and DefaultState.txt in the current working directory. How the script works: When I click on one of the Radio...
by Cuadrix
08 Jun 2017, 09:43
Forum: Ask For Help
Topic: Paste clipboard to Chrome, want URL to go to website and plain text to search Google Topic is solved
Replies: 5
Views: 2120

Re: Paste clipboard to Chrome, want URL to go to website and plain text to search Google Topic is solved

You can do it like this: Chrome = C:\Users\(user)\AppData\Local\Google\Chrome\Application\chrome.exe Loop, Parse, Clipboard, `n `r if RegExMatch(A_LoopField, "http://|https://|http://www.|https://www.", "", 1) ; Detects if one of the params exists. Run %Chrome% "%Clipboard%" Else if not RegExMatch(A...
by Cuadrix
05 Jun 2017, 04:19
Forum: Ask For Help
Topic: ComObjCreate.. InPrivate?
Replies: 2
Views: 516

Re: ComObjCreate.. InPrivate?

I have seen and read all of them. None of them do this properly.
by Cuadrix
05 Jun 2017, 03:54
Forum: Ask For Help
Topic: ComObjCreate.. InPrivate?
Replies: 2
Views: 516

ComObjCreate.. InPrivate?

As the title says.
Searched on the forums, but found nothing.
Is there any way to accomplish this?
by Cuadrix
03 Jun 2017, 18:15
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 1387

Re: Read how many times to Loop from a txt file? Topic is solved

Random, No, 1, 10 FileAppend, %No%, MyTest.txt ;write testfile F1:: ; press F1 FileRead, fileContent, MyTest.txt ; get number of iterations Loop, %fileContent% ; { ToolTip %A_Index% of %fileContent% ; display Sleep, 1200 ToolTip } Return Thanks, BoBo! :clap: Though, I don't know why my code didn't ...
by Cuadrix
03 Jun 2017, 18:13
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 1387

Re: Read how many times to Loop from a txt file? Topic is solved

tidbit wrote:if you're using fileread, the file cannot contain anything else, not even a blank line. just a number.
I didn't have any blank lines or spaces etc.
by Cuadrix
03 Jun 2017, 17:30
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 1387

Re: Read how many times to Loop from a txt file? Topic is solved

Thanks for the links. I made a test txt file, and I wrote in a simple number in the very first line. After that I wrote this code: F1:: FileRead, fileData, test.txt Sleep, 1000 Loop, Read, %fileData% ReadTxt = %A_LoopReadLine% Loop, %ReadTxt% { MsgBox, Test loop... Sleep, 1000 } But when I press F1 ...
by Cuadrix
03 Jun 2017, 16:21
Forum: Ask For Help
Topic: Read how many times to Loop from a txt file? Topic is solved
Replies: 9
Views: 1387

Read how many times to Loop from a txt file? Topic is solved

Hey. Is it possible to read "the loop amount" from a txt file? Let's say I have a code that looks like this: F1:: Loop, "(Amount of times to loop, read from a .txt file here)" .... .. Return Is it possible? If yes, how would I do this. I have been thinking of this for quite a while now, and it's rea...

Go to advanced search