Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:44

  • Please register to post and access all features, it's quick, easy and FREE!




Need help Converting AutoHotKey Script to AutoIt

Discussion on Need help Converting AutoHotKey Script to AutoIt within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2019
Posts: 2
Received Thanks: 0
Need help Converting AutoHotKey Script to AutoIt

Is there a similar command in AutoIt that would be the equivalent of AutoHotKey's #persistent? I have Googled but only found a script that is somewhat suspect.

Thank you in advance for any help,
yeto



yetoyeto is offline  
Old 08/08/2019, 17:28   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 266
Received Thanks: 92
Persistent is to continue loop, you could do the same with a while loop and exit condition.
Code:
HotKeySet("{ESC}","stop")

$running = False

Func stop()
	$running = False
EndFunc

Func mainLoop()
	$running = True
	While $running
	;Your program logic here
	ToolTip("script running " & @HOUR & ":" &@MIN & ":" &@SEC,0,0)
	Sleep(5);add delay to prevent high CPU ussage
	WEnd
EndFunc

mainLoop()


elmarcia is offline  
Thanks
1 User
Old 08/08/2019, 17:54   #3
 
elite*gold: 0
Join Date: Aug 2019
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by elmarcia View Post
Persistent is to continue loop, you could do the same with a while loop and exit condition.
Code:
HotKeySet("{ESC}","stop")

$running = False

Func stop()
	$running = False
EndFunc

Func mainLoop()
	$running = True
	While $running
	;Your program logic here
	ToolTip("script running " & @HOUR & ":" &@MIN & ":" &@SEC,0,0)
	Sleep(5);add delay to prevent high CPU ussage
	WEnd
EndFunc

mainLoop()
Thank you for taking time to reply. This is very helpful.

Thank you,
yetoyeto
yetoyeto is offline  
Reply



« d3d window cabal online client | - »

Similar Threads
need help....wallhack autohotkey script.
07/15/2017 - Cabal Online - 2 Replies
_I searched a lot of topics,But still do not find what i need.So I need to create this topic for help.Wallhack scripts have a lot in the forum.But I need the code written in autohotkey (https://autohotkey.com).Does anyone know about autohotkey, please help me this problem. thank you very much this luascript Works well with me. function WallhackClick(sender) start=readInteger("CabalMain.exe+B85AD0" )+0x40814 for i=0,0x3ffff,4 do writeBytes(start+i,0) end
[help]Autohotkey Rewrite Script
07/06/2017 - General Coding - 3 Replies
Hallo liebe EPVP User, Vorab das ist nicht mein Script, ich versuche es umzuschreiben bekomme es aber nicht hin und hoffe jetzt, das ihr mir weiterhelfen könnt :) Also ich versuche dieses Script so zu ändern , dass es auf die Farbe Rot Reagiert #ff0000 und nicht auf eine andere. Zurzeit läuft es so: Man hält mouse 4 button -> Nimmt die derzeitige farbe sobald eine neue Farbe drüberläuft Drückt er links klick. Dies sollte aber durch eine Rote Farbe ersetzt werden. Hoffentlich könnt ihr mir...
Need a Autohotkey Script or a macro for my Finger Offensive
04/19/2013 - Ragnarok Online - 0 Replies
I want to spam my finger offensive fast. I'm wearing 3 kiels and also has 192 aspd. But my problem is, I cannot spam it fast. Server has no delay and maybe there is just a little bit. Dangerous soul collect = W Finger offensive = 4. And I just want to press 4 to spam it fast. Thank you in advance for those who want to help me. :D
Need Script for autohotkey in Spamming key 2 button
02/05/2013 - Ragnarok Online - 2 Replies
Delete me!



All times are GMT +2. The time now is 18:44.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.