Jump to content
Sign in to follow this  
sloniu

Window randomly gets focus

Recommended Posts

sloniu

Hello,

I've made simply script which sends key to a window which works fine... but window sometimes gets focus (window is a full screen app, so it maximizes, which is annoying). Do you have any idea why this happenes and how can I prevent it?

HotkeySet("{NUMPADADD}","StartPause1")
$pause1=False
While 1
Sleep(1000)
WEnd

Func Startpause1()
$pause1=Not $pause1
While $Pause1=True
Sleep(1000)
ControlSend ( "XXX", "", "", "9")
Sleep(10000)
WEnd
EndFunc

Thanks in advance,

Sloniu

Share this post


Link to post
Share on other sites
MouseSpotter

Hmmm - full screen app?

Reminds me of a Terra Online request recently made.

Share this post


Link to post
Share on other sites
sloniu

In this topic I didn't mention what kind of app is this.

Will any other question I'll ask on this forum (whatever will it be about) will be treated as a hack request?

Edit. This question is not a provocation, I just want to know if my account is forever suspicious.

Edited by sloniu

Share this post


Link to post
Share on other sites
Melba23

sloniu,

Will any other question I'll ask on this forum (whatever will it be about) will be treated as a hack request?

This question is not a provocation, I just want to know if my account is forever suspicious

You did not bother to read the Forum rules before posting the first time which led to a locked thread.  When your next thread is deliberately vague and has similar overtones, what do you expect us to think?  If you ask clear, unambiguous, permissable questions you will get help - if you post unclear, evidently camouflaged questions such as the one above you will get suspicious looks, as indeed was the case here.

So the short answer to your question is: Quite possibly.

The longer answer is: If you prove yourself to the forum your account will become just another among the many here - we do not hold grudges against those who make early mistakes.  In fact we try very hard to keep people here and many who started in a similar manner to you have become respected members of our community.

So the ball is entirely in your court - your future here depends entirely on your future behaviour. :)

M23

 


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
spudw2k

Accounts are not suspicious, behavior is suspicious.

When you say something like

In this topic I didn't mention what kind of app is this.

but do not clarify what the intent is it doesn't bode well.

Melba spelled it out quite nice.


edit: Oh, and a none-of-your-business attitude won't get you anywhere either (in case you were going to play that card). We have rules for a reason.

Funny how I say "we" as I don't have any authority, but I'd like to think of myself as being a decent (relative term) contributing member.

Edited by spudw2k

Share this post


Link to post
Share on other sites
sloniu

Thanks for the answer.

Yeah, I should have read the forum rules before making the first post, but I'm one of those ppl who don't read ToS :)

From what I've noticed now, I had a wrong image of AutoIt scripts. I always thought it was made (or rather mostly used) for easy making bots for games. Now I see that it was a 'little' mistake.

So again, sorry for my ignorance and my behaviour :)

Share this post


Link to post
Share on other sites
Melba23

sloniu,

No problem - now you know what AutoIt can do, i hope it will give you some ideas of more interesting projects than just botting games. ;)

See you around soon I hope - asking about something with which we can help you! :D

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Blue_Drache

Check your fullscreen app's video options for a "Run in a window" mode.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×