Search found 344 matches

by YoucefHam
11 Jun 2019, 21:50
Forum: Ask For Help
Topic: Boolean change will stop my loop, but not start it.
Replies: 3
Views: 462

Re: Boolean change will stop my loop, but not start it.

try this

Code: Select all

Boolean := false

g::
i := 0
While(GetKeyState("g"))
	While(!Boolean)
	{ 
		ToolTip, % i++
	}
return

f::
Boolean := true
return

h::
Boolean := false
return
by YoucefHam
11 Jun 2019, 21:36
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

I added "1" to force the loop to fire just once. That fixed the repeated Q send when RButton is down. :lol: :lol: :lol: Why you didn't say from the beginning that you want to stop the repeat. use this #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 #SingleInstance Forc...
by YoucefHam
11 Jun 2019, 21:30
Forum: Ask For Help
Topic: Matching stuff in .Ini Topic is solved
Replies: 24
Views: 2555

Re: Matching stuff in .Ini Topic is solved

try this example

Code: Select all

Loop, 8
	IniWrite, Value%A_Index%, Settings.ini, Section, Var%A_Index%

IniRead, ini, Settings.ini, Section
MsgBox, % RegExReplace(RegExReplace(ini, "\=.*?`n","|"), "\=.*?$","|")
by YoucefHam
11 Jun 2019, 21:18
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

try this #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 #SingleInstance Force #InstallMouseHook #InstallKeybdHook SetWorkingDir %A_ScriptDir% ListLines Off Process, Priority, , A SetBatchLines, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDefaultMouseSpeed, 0 SetWinDela...
by YoucefHam
11 Jun 2019, 20:58
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

it means work with shift or ctrl or alt
by YoucefHam
11 Jun 2019, 20:42
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

try this #NoEnv ; Prevent access to environment #SingleInstance Force ; Prevent multiple instances #KeyHistory ; Key History for debugging #Persistent DetectHiddenWindows, On ; Detect Hidden Windows SetWorkingDir %A_ScriptDir% ; Sets working directory for sounds and images SoundSetWaveVolume, 5 ; Pr...
by YoucefHam
11 Jun 2019, 20:22
Forum: Gaming
Topic: Autohotkey loop sequence with idle reset help
Replies: 1
Views: 457

Re: Autohotkey loop sequence with idle reset help

try this #Persistent Rotation := 1 keys = 0,9,8,7 loop, parse, keys, `, { Key_%A_Index% := A_LoopField KeyCount++ } return XButton1:: SetTimer, Check, 1000 Send % Key_%Rotation% Rotation := ((Rotation < KeyCount) ? ++Rotation : 1) return Check: if (A_TimeSinceThisHotkey >= 3000) { SetTimer, Check, o...
by YoucefHam
11 Jun 2019, 20:08
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

try this #NoEnv ; Prevent access to environment #SingleInstance Force ; Prevent multiple instances #KeyHistory ; Key History for debugging #Persistent DetectHiddenWindows, On ; Detect Hidden Windows SetWorkingDir %A_ScriptDir% ; Sets working directory for sounds and images SoundSetWaveVolume, 5 ; Pr...
by YoucefHam
11 Jun 2019, 19:43
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

try this if you dont want the q on rbutton up #NoEnv ; Prevent access to environment #SingleInstance Force ; Prevent multiple instances #KeyHistory ; Key History for debugging #Persistent DetectHiddenWindows, On ; Detect Hidden Windows SetWorkingDir %A_ScriptDir% ; Sets working directory for sounds ...
by YoucefHam
11 Jun 2019, 18:48
Forum: Ask For Help
Topic: How do I end an entire looped script with tickcount?
Replies: 1
Views: 388

Re: How do I end an entire looped script with tickcount?

try this isbreaked := 0 ;Is page loaded? Sleep, 200 start := A_TickCount while ((A_TickCount - start) < 5000) { Sleep, 200 PixelGetColor,pColor,879,504,RGB if (pColor = "0xCCCCCC") { isbreaked := 1 break } } if isbreaked MsgBox, Timer didn't finish else MsgBox, Timer finished
by YoucefHam
11 Jun 2019, 18:41
Forum: Ask For Help
Topic: combining alt+Space+LButton = Return Topic is solved
Replies: 2
Views: 407

Re: combining alt+Space+LButton = Return Topic is solved

try

Code: Select all

!Space::
Stop := 1
KeyWait, Space
Stop := 0
return

#if Stop

*$LButton::
Return

#if
by YoucefHam
11 Jun 2019, 18:32
Forum: Gaming
Topic: Send before a break
Replies: 13
Views: 1752

Re: Send before a break

try this

Code: Select all

*~RButton::
Loop,{
	if !GetKeyState("RButton", "P")
	{
		SendInput, q
		Break
	}
	SendInput, q
}
Return
or

Code: Select all

*~RButton::SendInput, q

*~RButton up::SendInput, q
by YoucefHam
11 Jun 2019, 18:17
Forum: Scripts and Functions
Topic: HotKey Launcher - By YoucefHam
Replies: 6
Views: 1723

HotKey Launcher - By YoucefHam

HotKey Launcher - By YoucefHam Hello, :wave: It's Just to save a HotKey To run something, enjoy. :thumbup: feel free to optimize it. https://i.imgur.com/L02YPsv.png Code Updated [12/06/2019 17:08:15] if Not A_IsAdmin AND A_OSVersion <> WIN_XP { Run *RunAs "%A_ScriptFullPath%" ExitApp } #NoEnv #MaxH...
by YoucefHam
11 Jun 2019, 18:08
Forum: Ask For Help
Topic: Application to run scripts
Replies: 2
Views: 402

Re: Application to run scripts

here try this if Not A_IsAdmin AND A_OSVersion <> WIN_XP { Run *RunAs "%A_ScriptFullPath%" ExitApp } #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 #SingleInstance Force SetWorkingDir %A_ScriptDir% ListLines Off Process, Priority, , A SetBatchLines, -1 SetKeyDelay, -1,...
by YoucefHam
11 Jun 2019, 16:22
Forum: Ask For Help
Topic: Problem Clearing Hotkeys with GUI Topic is solved
Replies: 10
Views: 1160

Re: Problem Clearing Hotkeys with GUI Topic is solved

here an example to understand Gui, Submit, NoHide Gui, Add, edit, w120 vMyVar1, Hello Gui, Add, edit, w120 vMyVar2, World Gui, Add, Button, w120 gMsgOut1, Say Gui, Add, Button, w120 gMsgOut2, Say2 Gui, show return GuiClose: ExitApp MsgOut1: Gui, Submit, NoHide ;get all gui controls values MsgBox, % ...
by YoucefHam
11 Jun 2019, 15:09
Forum: Ask For Help
Topic: Problem Clearing Hotkeys with GUI Topic is solved
Replies: 10
Views: 1160

Re: Problem Clearing Hotkeys with GUI Topic is solved

use Gui, Add, Hotkey better then Edit TemplatePreset1=^1 TemplatePreset2=^2 TemplatePreset3=^3 gui, add, Hotkey, x25 y25 w350 vTemplatePreset1, ^1 gui, add, Hotkey, y+10 w350 vTemplatePreset2, ^2 gui, add, Hotkey, y+10 w350 vTemplatePreset3, ^3 Gui, Show, w500 h500 gosub, refreshhotkeys return GuiCl...
by YoucefHam
11 Jun 2019, 14:46
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 5539

Re: Solved:Need simple example,real time calculating and output the result

"150*50%" ==> give 50% of 150 = 75 "150/50%" ==> give 1/50% = 200% of 150 = 300 "150+50%" ==> add (50% of 150 = 75) to 150 = 225 "150*150%" ==> same as above add (50% of 150 = 75) to 150 = 225 "150-50%" ==> sub (50% of 150 = 75) to 150 = 75 MsgBox, % calc_Percent( "25.2%" ) MsgBox, % calc_Percent( "...
by YoucefHam
11 Jun 2019, 14:31
Forum: Gaming
Topic: Disable LAlt & Tab, keep native functions of BOTH keys when pressed TOGETHER
Replies: 6
Views: 1134

Re: Disable LAlt & Tab, keep native functions of BOTH keys when pressed TOGETHER

you would KeyWait on Alt because if you don't you are going to release Alt with your hand.
by YoucefHam
11 Jun 2019, 10:14
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 5539

Re: Solved:Need simple example,real time calculating and output the result

wolf_II wrote:
11 Jun 2019, 02:27
Thanks, YoucefHam for the code. This is a very good example how to handle unary operators. (or whatever it is, but I think that's right)
I trimmed the code a bit:
Thanks @wolf_II, I am a noob in RegEx codes.

Go to advanced search